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 


Are variable lists in memory useful in hacking?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
ScottySR
How do I cheat?
Reputation: 0

Joined: 04 Sep 2018
Posts: 9

PostPosted: Sat Mar 21, 2020 9:45 pm    Post subject: Are variable lists in memory useful in hacking? Reply with quote

I found something that looks like a variable list in memory. Are these in any way useful in hacking/memory editing? There seems to be some space between variables, so I guess those values might point to something (variable value? address of variable?). I also found filepaths elsewhere in memory. Are they useful?

I didn't know variable names were actually compiled in code. I thought the variables were converted to a pointer using rip register (iirc) to find the actual address.

Also, why do games seem to use so many pointers to point to one variable? It makes finding the actual variable that stays the same every time hard, but I don't think that's the reason for that many pointers.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sat Mar 21, 2020 11:47 pm    Post subject: Reply with quote

They can be useful for finding important functions/information that you are looking for. And how they are left in can be a number of different things such as:
- Simple strings used for debugging output/logging.
- Scripted string entries.
- Debug info built into the exe/dll's.
- String specific variable implementations, such as arrays, vectors, lists, maps, etc.

In terms of how useful things like this are, it ultimately depends on what you need it for if its something you plan to use. Debug info/symbol data can be very useful for locating data easily on the fly for example. If you know the name of a variable, such as a global game object/state, and the debug info is left in for it, it can be very useful to you to reverse/find information related to it that you may be interested in hacking.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
DanyDollaro
Master Cheater
Reputation: 3

Joined: 01 Aug 2019
Posts: 334

PostPosted: Sun Mar 22, 2020 3:49 am    Post subject: Reply with quote

atom0s was very clear, I wanted to add that as you have already deduced in an exe there is not only the assembly code of the executable but also of things defined as "symbols" (which as already said atom0s can indicate variables, functions etc.) normally these symbols are removed to not give information about the exe.
The reason why pointers are used and is not the only way to know for sure where a variable/function is in memory.

ScottySR wrote:
I thought the variables were converted to a pointer using rip register (iirc) to find the actual address.
The RIP/EIP register is not intended to do this, the RIP register contains the address of the next instruction to be executed if no branching is done.
Back to top
View user's profile Send private message
ScottySR
How do I cheat?
Reputation: 0

Joined: 04 Sep 2018
Posts: 9

PostPosted: Sun Mar 22, 2020 10:35 am    Post subject: Reply with quote

It was actually rbp register, not rip

Anyway, I need to look more into if I can use the values between the strings for something useful.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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