Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Help]Scanning/retrieving adresses

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
ctpsolo
Newbie cheater
Reputation: 0

Joined: 14 Jan 2010
Posts: 10

PostPosted: Thu Jan 14, 2010 9:05 am    Post subject: [Help]Scanning/retrieving adresses Reply with quote

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
View user's profile Send private message
Xenico
Advanced Cheater
Reputation: 0

Joined: 27 Dec 2009
Posts: 94

PostPosted: Thu Jan 14, 2010 12:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
ctpsolo
Newbie cheater
Reputation: 0

Joined: 14 Jan 2010
Posts: 10

PostPosted: Thu Jan 14, 2010 1:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Jesper
Grandmaster Cheater Supreme
Reputation: 9

Joined: 21 Feb 2007
Posts: 1156

PostPosted: Thu Jan 14, 2010 6:09 pm    Post subject: Reply with quote

Do the build in tutorial that comes with CE to get an idea on how to create and use pointers.
Back to top
View user's profile Send private message
iPromise
Grandmaster Cheater
Reputation: -1

Joined: 27 Jun 2009
Posts: 529
Location: Canada

PostPosted: Thu Jan 28, 2010 7:21 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites