Home » Developing U++ » UppHub » Protect packages - split code encryption,client and server
Re: Protect packages - split code encryption,client and server [message #40488 is a reply to message #40487] |
Wed, 07 August 2013 23:18 |
mdelfede
Messages: 1307 Registered: September 2007
|
Ultimate Contributor |
|
|
So, we can try this, but it mus be done on your friend's machine.
1) Remove PROTECT_START_FUNC and END_FUNC macros from your protected function and replace them with the code in Protect.h (remove the backslashes, of course), so you can step inside macros with debugger.
2) Build the app, but do NOT run the ProtectEncrypt on it. Step up to protected function beginning, note the code range of the function, dump it on a file. Name it as UNENCRYPTED.BIN. The difficult part is to find the end of he cunction inside binary code, but you can search for PROTECT_END_MARKER byte sequence.
3) Run ProtectEncrypt on app, then do the same as before. Beware to stop BEFORE the call to Decrypt function.
Store the code area inside ENCRYPTED.BIN file. Take care it has the SAME length as former one.
4) Without exiting debugger, step OVER the decrypt function call, and re-save the binary code inside DECRYPTED.BIN file.
As before, the file should have same length as 2 former files.
5) You can send me the 3 binary files, if you trust. Otherwise, compare the UNENCRYPTED.BIN file with the DECRYPTED.BIN file. They should be identical, besides the marker (PROTECT_START_MARKER and PROTECT_END_MARKER which gets overwritten by ProtectEncrypt.
If there are other differences besides markers, try to locate them.... if they're near end marker, the decrypt routine is missing some parts.
You could also check if ProtectEncrypt do its job on the whole code between both markers, by comparing UNENCRYPTED and ENCRYPDET files. That could give some hints too.
[Updated on: Wed, 07 August 2013 23:23] Report message to a moderator
|
|
|
|
|
Protect packages - split code encryption,client and server
|
|
|
Re: Protect packages - split code encryption,client and server
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Wed, 31 July 2013 17:07
|
|
|
Re: Protect packages - split code encryption,client and server
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Wed, 31 July 2013 18:16
|
|
|
Re: Protect packages - split code encryption,client and server
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Wed, 31 July 2013 20:46
|
|
|
Re: Protect packages - split code encryption,client and server
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Wed, 31 July 2013 23:01
|
|
|
Re: Protect packages - split code encryption,client and server
|
|
|
Re: Protect packages - split code encryption,client and server
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Wed, 31 July 2013 23:38
|
|
|
Re: Protect packages - split code encryption,client and server
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Thu, 01 August 2013 10:22
|
|
|
Re: Protect packages - split code encryption,client and server
By: mdelfede on Thu, 01 August 2013 10:26
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Thu, 01 August 2013 13:59
|
|
|
Re: Protect packages - split code encryption,client and server
By: mdelfede on Thu, 01 August 2013 14:02
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Thu, 01 August 2013 14:06
|
|
|
Re: Protect packages - split code encryption,client and server
By: mdelfede on Thu, 01 August 2013 14:10
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Thu, 01 August 2013 14:13
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Thu, 01 August 2013 14:57
|
|
|
Re: Protect packages - split code encryption,client and server
By: mdelfede on Thu, 01 August 2013 15:41
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Thu, 01 August 2013 16:25
|
|
|
Re: Protect packages - split code encryption,client and server
By: mdelfede on Mon, 05 August 2013 01:39
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Mon, 05 August 2013 10:36
|
|
|
Re: Protect packages - split code encryption,client and server
By: mdelfede on Tue, 06 August 2013 19:26
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Wed, 07 August 2013 02:44
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Wed, 07 August 2013 03:31
|
|
|
Re: Protect packages - split code encryption,client and server
By: mdelfede on Wed, 07 August 2013 09:33
|
|
|
Re: Protect packages - split code encryption,client and server
By: mdelfede on Wed, 07 August 2013 09:56
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Wed, 07 August 2013 13:01
|
|
|
Re: Protect packages - split code encryption,client and server
By: mdelfede on Wed, 07 August 2013 13:07
|
|
|
Re: Protect packages - split code encryption,client and server
By: mdelfede on Wed, 07 August 2013 18:49
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Wed, 07 August 2013 22:00
|
|
|
Re: Protect packages - split code encryption,client and server
By: mdelfede on Wed, 07 August 2013 23:18
|
|
|
Re: Protect packages - split code encryption,client and server
By: mdelfede on Wed, 07 August 2013 23:21
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Wed, 07 August 2013 23:43
|
|
|
Re: Protect packages - split code encryption,client and server
By: mdelfede on Wed, 07 August 2013 23:46
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Wed, 07 August 2013 23:54
|
|
|
Re: Protect packages - split code encryption,client and server
By: mdelfede on Wed, 07 August 2013 23:56
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Wed, 07 August 2013 23:57
|
|
|
Re: Protect packages - split code encryption,client and server
By: mdelfede on Thu, 08 August 2013 00:02
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Thu, 08 August 2013 00:05
|
|
|
Re: Protect packages - split code encryption,client and server
By: mdelfede on Thu, 08 August 2013 00:07
|
|
|
Re: Protect packages - split code encryption,client and server
By: mdelfede on Thu, 08 August 2013 00:10
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Thu, 08 August 2013 00:10
|
|
|
Re: Protect packages - split code encryption,client and server
By: mdelfede on Thu, 08 August 2013 00:14
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Thu, 08 August 2013 00:13
|
|
|
Re: Protect packages - split code encryption,client and server
By: mdelfede on Thu, 08 August 2013 00:15
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Thu, 08 August 2013 00:20
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Thu, 08 August 2013 13:39
|
|
|
Re: Protect packages - split code encryption,client and server
By: mdelfede on Thu, 08 August 2013 13:43
|
|
|
Re: Protect packages - split code encryption,client and server
By: mdelfede on Thu, 08 August 2013 14:04
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Fri, 09 August 2013 23:55
|
|
|
Re: Protect packages - split code encryption,client and server
By: mdelfede on Sat, 10 August 2013 07:37
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Thu, 08 August 2013 13:41
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Thu, 08 August 2013 14:35
|
|
|
Re: Protect packages - split code encryption,client and server
By: mdelfede on Thu, 08 August 2013 14:49
|
|
|
Re: Protect packages - split code encryption,client and server
By: mdelfede on Thu, 08 August 2013 14:51
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Thu, 08 August 2013 15:04
|
|
|
Re: Protect packages - split code encryption,client and server
By: mdelfede on Thu, 08 August 2013 15:08
|
|
|
Re: Protect packages - split code encryption,client and server
By: mdelfede on Thu, 08 August 2013 15:11
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Thu, 08 August 2013 15:08
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Thu, 08 August 2013 15:14
|
|
|
Re: Protect packages - split code encryption,client and server
By: mdelfede on Thu, 08 August 2013 15:15
|
|
|
Re: Protect packages - split code encryption,client and server
By: Alboni on Sun, 11 August 2013 03:45
|
Goto Forum:
Current Time: Wed Apr 24 08:10:49 CEST 2024
Total time taken to generate the page: 0.02917 seconds
|