 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Blackvz Newbie cheater
Reputation: 0
Joined: 08 Jul 2012 Posts: 19
|
|
Back to top |
|
 |
TsTg Master Cheater
Reputation: 5
Joined: 12 Dec 2012 Posts: 340 Location: Somewhere....
|
Posted: Thu Apr 04, 2013 9:58 am Post subject: Re: [C++]Calculating a Multiply Pointer [HELP] |
|
|
First, you are using ReadProcessMemory call wrong, the output value is in the Buffer and not in the function's return, so copy what's inside 'Buffer' to your variable,or assign your variable pointer instead:
DWORD Buffer = 0x0;
DWORD result = ReadProcessMemory(hproc,(LPCVOID)erg1,&Buffer,sizeof(Buffer),NULL);
DWORD Pointer1 = Buffer
or
DWORD Pointer1 = 0x0;
DWORD result = ReadProcessMemory(hproc,(LPCVOID)erg1,&Pointer1,sizeof(Pointer1),NULL);
Second,Don't assume that 0x518F80 will not change, read the value from your 'HackMe2+......' address, then assign the output to your BaseAddress value
DWORD BaseAddress = 0x0;
DWORD result = ReadProcessMemory(hproc,(LPCVOID)HackMe2+Address_Here,&BaseAddress,sizeof(BaseAddress),NULL);
Last edited by TsTg on Thu Apr 04, 2013 10:19 am; edited 1 time in total |
|
Back to top |
|
 |
Blackvz Newbie cheater
Reputation: 0
Joined: 08 Jul 2012 Posts: 19
|
Posted: Thu Apr 04, 2013 10:18 am Post subject: |
|
|
Thanks for your answer.
@Edit: Question to the Baseadress thing.
Code: | DWORD base1 = ReadProcessMemory(hproc,(LPCVOID)HackMe2+Address_Here,&BaseAddress,sizeof(BaseAddress),NULL); |
How do i write that in the right way ?
I mean the Base, which CE for example shows to me ,change every time I start up "HackMe2.exe".
I mean that (LPCVOID)HackMe2+Address_Here don't work for me :/
|
|
Back to top |
|
 |
TsTg Master Cheater
Reputation: 5
Joined: 12 Dec 2012 Posts: 340 Location: Somewhere....
|
Posted: Thu Apr 04, 2013 3:40 pm Post subject: |
|
|
It's JUST an explanation by saying (LPCVOID)HackMe2+Address_Here and NOT A CODE TO USE, i mean you put the address value there AS A DWORD INTEGER, this is not even a variable defined so how would it work??!! ,...to view the address as a number,...in your cheat engine table, copy the HackMe2+..... to clipboard, then open cheat engine's memory view window, press ctrl+G and paste it there and press enter, then press ctrl+C, you will see the corresponding address to it in the first text field.
|
|
Back to top |
|
 |
m0us Newbie cheater
Reputation: 0
Joined: 25 Apr 2013 Posts: 11
|
Posted: Thu Apr 25, 2013 12:22 pm Post subject: |
|
|
okay, i suppose u r know how to scan remote address space with VirtualQuery/ReadProcessMemory?
first we are founding a value. of course after that - we knows its address. then we scanning memory again, to find this address lying in some other variable - when hit - it will be pointer. now we know pointer address, scanning again and again until we wont find anything. then we will have something like a tree. probably the top address will be found in the .data section of one from executable modules
|
|
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
|
|