I found some code on PSC that appends a CRC32 checksum to the end of a file. The interesting thing about this program is that it just verifies sections of the executable. Normally the sections that are protected are where the registration routine is located.
I converted the code to a class and find it very easy to verify the checksum once it is written. The problem I am having is identifing the locations in the executable where protection needs to be administered.
I was thinking of writing some code to automate this, but I have no idea what to look for. Basically you have to open the file in a hex editor and identify chunks of code that are important. The chunks are specified as a starting byte and number of bytes. For example I would specify a starting position of 234 and a length of 500 bytes.
Any ideas would be appreciated.
BTW, the CRC32 check is integral to a protection scenerio that I am developing.
Troy Williams B.Eng.
fenris@hotmail.com
I converted the code to a class and find it very easy to verify the checksum once it is written. The problem I am having is identifing the locations in the executable where protection needs to be administered.
I was thinking of writing some code to automate this, but I have no idea what to look for. Basically you have to open the file in a hex editor and identify chunks of code that are important. The chunks are specified as a starting byte and number of bytes. For example I would specify a starting position of 234 and a length of 500 bytes.
Any ideas would be appreciated.
BTW, the CRC32 check is integral to a protection scenerio that I am developing.
Troy Williams B.Eng.
fenris@hotmail.com