 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Tue Dec 04, 2007 12:30 am Post subject: [C++] Pointers |
|
|
Im almost done with auto pot function. What i need help on is that,
if i use asm directly in the dll, the ms will crash because i dont have a crc bypass. Now, what i need help on, is how do i read pointer memory?
As in,
i have the address : 0123, with pointer E5f.
and i want to read the value, how would i do that?
|
|
| Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Tue Dec 04, 2007 1:04 am Post subject: |
|
|
Inline this:
| Code: | mov eax, dword ptr ds:[0123h]
mov eax, dword ptr ds:[eax+0E5Fh]
mov dword ptr ds:[pointerBuffer], eax |
| Code: | | DWORD pointerBuffer |
I don't know C++ so well so this is all I know. Declare your variable, inline so that you load your pointer and then do whatever you want to do w/ the value.
_________________
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Tue Dec 04, 2007 1:59 pm Post subject: |
|
|
in a nutshell, find what writes to it. double click the instruction, and it will say what it figures is value of the pointer. for example...
mov [esi+00000540], edx
check hex, search what it gives you, the lowest one is usually the one you're looking for.
ReadProcessMemory to get that value from the address, then add 540 (in hex) to it and you have your address, should be straightforward and easy enough.
this is what you mean, right?
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|