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 


Search for two adjacent pointers to same value

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

Joined: 21 Jun 2016
Posts: 1

PostPosted: Tue Jun 21, 2016 10:36 am    Post subject: Search for two adjacent pointers to same value Reply with quote

I wanna search for two adjacent pointers that point to the same value, but not the same address. Is there a builtin tool in CE to do it?

For instance:
Code:
(long *)0x00000001 -> 0x00000009 = 123
(long *)0x00000005 -> 0x0000000D = 123
Back to top
View user's profile Send private message
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Tue Jun 21, 2016 10:58 am    Post subject: Reply with quote

Do a pointerscan for each of the two addresses.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Tue Jun 21, 2016 11:38 am    Post subject: Reply with quote

Not really.

at best a customtype that dereferences pointers and use that in a groupscan (slow)

Code:

--Note: keep the function base name unique.
typename="32-bit Pointer type" --shown as the typename in ce
bytecount=4  --number of bytes of this type
functionbasename="customvaluetype"

function customvaluetype_bytestovalue(b1,b2,b3,b4,address)
--Add extra byte parameters as required
  local v=byteTableToDword({b1,b2,b3,b4})

  return readInteger(v)
end

function customvaluetype_valuetobytes(i,address)
  error('not implemented')
end
return typename,bytecount,functionbasename


with groupscan:
Code:

c(32-bit Pointer type):123 c(32-bit Pointer type):123


(if it's a 64-bit target, adjust the custom type accordingly)

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