| View previous topic :: View next topic |
| Author |
Message |
ctpsolo Newbie cheater
Reputation: 0
Joined: 14 Jan 2010 Posts: 10
|
Posted: Thu Jan 14, 2010 9:05 am Post subject: [Help]Scanning/retrieving adresses |
|
|
Ok I have started to code hacks in c++, I know how to alter memory, how to make an dll/create a loader that injects it and so on. But I'm having problem with dynamic memory adresses because I have no idea how to deal with that. Just to clearify, I find some adress with cheat engine and next time I load the process into ce, the hack has a different adress (you get it).
So, if anyone could give me some pointers how to do this, it would be great.
|
|
| Back to top |
|
 |
Xenico Advanced Cheater
Reputation: 0
Joined: 27 Dec 2009 Posts: 94
|
Posted: Thu Jan 14, 2010 12:03 pm Post subject: |
|
|
You know how to add a pointer in CE?
In C++ its in a way as easy as in CE:
ReadProcessMemory()-Function for reading an address, then adding the offset then ReadProcessMemory() until you are at the point you wanted to be and then if you want to change something use the WriteProcessMemory()-Function.
I believe you know how the pointer-stuff works.
_________________
|
|
| Back to top |
|
 |
ctpsolo Newbie cheater
Reputation: 0
Joined: 14 Jan 2010 Posts: 10
|
Posted: Thu Jan 14, 2010 1:03 pm Post subject: |
|
|
I never dealt with pointers in CE, pointers in c++ I know about though. Thanks for your answer, I got kinda unsure since the only thing i have done so far is messing with statical adresses.
So to make sure I did not missunderstand anything, basically I just go through memory until I find what I want? How can I make sure I have found the correct adress, given that many of them will contain the value I am looking for?
Also, write/readprocessmemory is kinda unneccessary since I will be injecting a dll so I have shared memory with the process. If it's not too much trouble, could you perhaps show an example or maybe if you got some good link to give me on how to do the stuff above but without using readprocessmemory?
I believe myself to be a decent google user and still it took me many hours before I found some help on how to properly write to memory from within a dll, just because I was missusing the VirtualProtect function =)
|
|
| Back to top |
|
 |
Jesper Grandmaster Cheater Supreme
Reputation: 9
Joined: 21 Feb 2007 Posts: 1156
|
Posted: Thu Jan 14, 2010 6:09 pm Post subject: |
|
|
| Do the build in tutorial that comes with CE to get an idea on how to create and use pointers.
|
|
| Back to top |
|
 |
iPromise Grandmaster Cheater
Reputation: -1
Joined: 27 Jun 2009 Posts: 529 Location: Canada
|
Posted: Thu Jan 28, 2010 7:21 pm Post subject: |
|
|
Search up these functions / topics:
| Code: | (Dll)
- VirtualQuery()
- VirtualProtect() // If needed to protect the address to read / write with access
- How to read / write on addresses as if its your own |
| Code: | (Exe)
- VirtualQueryEx()
- VirtualProtectEx() // If needed to protect the address to read / write with access
- ReadProcessMemory()
- WriteProcessMemory() // If you wan't to also write on addresses |
|
|
| Back to top |
|
 |
|