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 


Re-scanning a pointerscan with a string as the target

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

Joined: 22 Oct 2014
Posts: 49

PostPosted: Wed Mar 11, 2015 7:42 pm    Post subject: Re-scanning a pointerscan with a string as the target Reply with quote

I've conducted a pointerscan on a certain address (which is the location of a string), and now I'd like to filter out values that are no longer point to that string. However, there are multiple instances of the string (11). How can I rescan with a string as the value to find?

I have a couple ideas, but I'd like your input on which I should use:

1. Convert the first 4 (or 8 if I use a double) bytes to an integer and search for that value, as it's probably fairly unique. However, this does leave the possibility of "fragmented" strings that have just been partially overwritten and therefore deallocated.

2. Use lua and have CE pass all the values to a function. I would prefer to go with this method, but I couldn't find any docs on how it works. Could anybody inform me as to how to use this? I am experienced in lua.

Or if you have any other ideas, just let me know!
Thanks!

_________________
A guy who likes memory hacking.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 473

Joined: 09 May 2003
Posts: 25900
Location: The netherlands

PostPosted: Wed Mar 11, 2015 7:55 pm    Post subject: Reply with quote

both are an option (but don't use double, rounding is an issue)

1: If you use the first 4 bytes of the string you will be left with pointers that currently point to a valid memory location where the first 4 bytes match that string.
Sure, you can get some garbage, but a few restarts later and that's cleared up

2:
first execute this lua function:
Code:

function yourfunction(base, offsets, target)
  return readString(target, 6)=="blabla"
end

and then in the field "Lua filter" in rescan fill in "yourfunction"

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
BanCheese
Cheater
Reputation: 0

Joined: 22 Oct 2014
Posts: 49

PostPosted: Wed Mar 11, 2015 11:55 pm    Post subject: Reply with quote

Thanks so much, the lua solution worked perfectly!
_________________
A guy who likes memory hacking.
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