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 


Changing pointers such as "somefile.exe"+00A4F0AA

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Tybobobo
Cheater
Reputation: 0

Joined: 24 May 2016
Posts: 25

PostPosted: Tue May 24, 2016 9:29 pm    Post subject: Changing pointers such as "somefile.exe"+00A4F0AA Reply with quote

I have been fiddling with CE for quite some time now (and still learning) and have stumbled upon an issue. I am working on a trainer; however I am not sure how I can turn "somefile.exe"+00A4F0AA into an pointer that can be directly converted into a decimal.

The goal is to convert this (I cannot post it as an image for some reason):
i.imgur[dawt]com[slash]0n4hlIZ.png

into something I can put into two variables such as these;

string pointer;
int[] offsets;


In order to use them in some other code.

Help appreciated!
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4290

PostPosted: Tue May 24, 2016 9:45 pm    Post subject: Reply with quote

  1. Get the base address of the module somefile.exe
  2. Add 0x00A4F0AA to that dword
  3. Read the dword at that address
  4. Add the next offset (i.e. 0x3B4) to the dword just read
  5. Repeat steps 3 & 4 using however many offsets you have
  6. You are now at the final address being pointed at
If you want the value itself, just dereference that last address.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Tybobobo
Cheater
Reputation: 0

Joined: 24 May 2016
Posts: 25

PostPosted: Tue May 24, 2016 10:00 pm    Post subject: Reply with quote

ParkourPenguin wrote:
  1. Get the base address of the module somefile.exe
  2. Add 0x00A4F0AA to that dword
  3. Read the dword at that address
  4. Add the next offset (i.e. 0x3B4) to the dword just read
  5. Repeat steps 3 & 4 using however many offsets you have
  6. You are now at the final address being pointed at
If you want the value itself, just dereference that last address.



I just learned how to do it in C# by getting the base address of the module as you mentioned!

Thank you, Hopefully other newcomers can use this information in the future! Smile

Snippet C# (if someone need it in the future, who knows):

Code:
int baseAddress = (int)myProcess[0].MainModule.BaseAddress; // Address of the game.exe - which was needed to add with the other pointers

int pointerAddress = baseAddress + HexToDec(healthValuePointer); // Final pointer address
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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