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 


How to search strings in a process? C ++

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

Joined: 20 Oct 2015
Posts: 1
Location: Perú

PostPosted: Tue Oct 20, 2015 9:05 pm    Post subject: How to search strings in a process? C ++ Reply with quote

How to search strings in a process? C ++

I would like an example of search strings in memory of a program and get your address. NO UNICODE

Sorry for my English, I speak Spanish

_________________
Programmer
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Wed Oct 21, 2015 4:30 am    Post subject: Reply with quote

Strings are stored the same way in memory as any other data type. Find the hex value of the string you want to search and use sigscan routine to search in memory.

You can use the ASCII values of characters to generate the hex value to search for if you don't already know the hex value.

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
n0psl3d
How do I cheat?
Reputation: 0

Joined: 30 Sep 2015
Posts: 6
Location: Twin Cities, MN

PostPosted: Mon Nov 09, 2015 4:51 pm    Post subject: Re: How to search strings in a process? C ++ Reply with quote

deliriun wrote:
How to search strings in a process? C ++

I would like an example of search strings in memory of a program and get your address. NO UNICODE

Sorry for my English, I speak Spanish


Literally make a char array with the desired search characters, and scan for the same byte pattern using ReadProcessMemory like you would any other value scan.

Strings are a lot easier than integers because they have a fairly limited value range per character.
Back to top
View user's profile Send private message
ulysse31
Master Cheater
Reputation: 2

Joined: 19 Mar 2015
Posts: 324
Location: Paris

PostPosted: Tue Nov 10, 2015 1:07 pm    Post subject: Reply with quote

CE has a usefull tool which will scan the code and give you all referenced strings (memory viewer -> view -> referenced strings).

This is good because for certain strings it will also give you the memory address of the code line reading the string, even if the string isn't being read at the moment you scan for it.
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 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