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 


Best way to search for <text between 4~12 character limit

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

Joined: 22 Jun 2015
Posts: 34

PostPosted: Mon Feb 29, 2016 1:26 pm    Post subject: Best way to search for <text between 4~12 character limit Reply with quote

Heya guys. I'm trying to find a text limitation requires text to be between 4 and 12 characters.

What I'm thinking, is the best way to find this address, would be using the Assembly scan.
I'm assuming since its no less than 4 characters, itll be a cmp jl 4. and no larger than 12 would be a cmp jg 0C.

I'm not entirely sure how to search for that tho.. Might someone tell me how to best search for this?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4718

PostPosted: Mon Feb 29, 2016 4:11 pm    Post subject: Reply with quote

I'm not sure if that's a good idea.
There is a virtually infinite number of ways for a computer to do something. You could try to guess what's probable, but there's no guarantee you'll get it right.
Try searching for the number of characters your input is, then look at what accesses that. If there is no address that stores that number, finding what accesses a pointer to a string representing your input might work, but that's easier said than done. Ultimap might be a better option if you can use it, but depending on how that restriction is implemented, it might not be a good option.


Regardless, to answer your question, the easiest way is to go to Memory Viewer -> Search -> Find assembly code. Alternatively, you can try doing it yourself:

Write a short script that allocates some memory, registers it as a symbol, and writes those instructions into that block of memory. Look at that allocated memory in the disassembler to get the bytes those instructions represent. Then, set the writable and CoW checkboxes to grey, check the executable box, and scan for that AoB.
Open up those addresses in CE's disassembler and scroll up a bit. If that instruction is still there, then it's probably meant to be executed. If it's not still there, then those bytes are probably a part of another instruction and can be ignored.

However, note that neither of these may work for everything. For example, the instruction mov m32,eax can have a couple machine code representations: A3 ?? ?? ?? ?? and 89 05 ?? ?? ?? ??. CE uses the second one, but if the application uses the first one, you'll never know about it.

_________________
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
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