Exetools

Exetools (https://forum.exetools.com/index.php)
-   Source Code (https://forum.exetools.com/forumdisplay.php?f=46)
-   -   Pointers in Delphi (https://forum.exetools.com/showthread.php?t=15706)

chessgod101 04-06-2014 02:11

Pointers in Delphi
 
1 Attachment(s)
This is a simple example of how one can use pointers in delphi to read variables as a different data type. In this example, we will take an array of 12 bytes and read it as 3 different integers. By using pointers, you can overcome delphi's strict data type limitations and manipulate and write data more flexibly. This example is from a keygen for Unit Converter Pro 3.1.


I have done my best to document this source code in a way that makes it easy to understand. If you have trouble understanding the code, feel free to ask a question and I will do my best to answer it.

Product Website:
Code:

hxxp://www.unitconverterpro.com/download.html

giv 04-06-2014 23:54

Yep.
Thank you!
I have looked also in the program verification routine.
The serial have 16 chars.
First 8 characters generates the next 8 trough a loop of XOR/AND/SHIFT of bytes of the inverted first 8 bytes .
The resulted DWORD from the function that "translate" the first 8 chars is the second part of the serial.
Nice protection.
:)


All times are GMT +8. The time now is 17:52.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX