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 


Can someone explain how Referenced Strings works?

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

Joined: 24 Sep 2019
Posts: 3

PostPosted: Fri Dec 20, 2019 9:20 am    Post subject: Can someone explain how Referenced Strings works? Reply with quote

So I let the code dissector run and it spits out a huge list of strings, each associated with some function call.

But where do these strings actually reside? What is the relationship between that string and the code that it's pointing to?

I'm trying to use Reference Strings as a starting point to figure out which function calls are handling the behavior I want to look at. But its not really clear to me how the string is related to the code it's pointing to.

Some of the strings even seem to contain variables, for example: "file_version=%d" or "user_profile=%s". If I could figure out how those variables are being filled in it would be hugely useful.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8585
Location: 127.0.0.1

PostPosted: Sat Dec 21, 2019 12:50 am    Post subject: Reply with quote

Referenced strings are just pointers that CE has found to be used by the actual code of the given application/module. A quick example of this, say you have a basic C++ program like this:

Code:

#include <iostream>
#include <string>

int32_t main(int32_t argc, char* argv[])
{
    printf(u8"Hello world!\r\n");
    return 0;
}


Here the main function references a string "Hello world!\r\n". If you run the dissector on this app it should find that string as a reference and show the main function as what uses/references it.

For variable based strings such as "file_version=%d", you can use the referenced function information to trace back to the call that uses the string and see how it is being used. In my example above, you would see a call to printf in this case which uses the referenced string directly.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions 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