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 check if a register points to an address/is a pointer

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
low_density
Expert Cheater
Reputation: 1

Joined: 08 Aug 2009
Posts: 156

PostPosted: Sun Aug 14, 2011 10:04 pm    Post subject: how to check if a register points to an address/is a pointer Reply with quote

hi, is there any way where you can check if a register contains a value that points to another address or not? because for the auto assembly, i tried to verify if a value is the correct value that i need, but whenever i do an opcode, for example, cmp [eax],7FFFFFFF, it crashes straight.. i think it's because eax contains a value that is not a pointer...
Back to top
View user's profile Send private message
Corruptor
Advanced Cheater
Reputation: 3

Joined: 10 Aug 2011
Posts: 82

PostPosted: Mon Aug 15, 2011 12:47 pm    Post subject: Reply with quote

afaik, there is no way. Writing [eax] would simply force him to interpret eax as a pointer.
I think he would simply try to read 4 Bytes from the address eax though, and that should be no reason to crash. Well, simple general questions:
Do other code injections work? (the ce-equivalent to "update your video card driver Very Happy ) (well, just skip it Razz )
Did you try to use push/popfd/ad? like
Code:
pushad
pushfd
//do some stuff
popfd
popad

Maybe your the cmp-instruction messes around with the flags.
Did you try to use the debugger? Use a breakpoint and the step over the code. Maybe it crashes somewhere else.
Back to top
View user's profile Send private message
low_density
Expert Cheater
Reputation: 1

Joined: 08 Aug 2009
Posts: 156

PostPosted: Mon Aug 15, 2011 9:24 pm    Post subject: Reply with quote

i didn't try to use pushfd/ad or popfd/ad, when i try to compare [eax], where eax is not a pointer, it crashes straight. my guess is that in the dissect data/structure scanner, when a value is not a pointer, it will show ????????. is the crash due to the ???????? ?
Back to top
View user's profile Send private message
Geri
Moderator
Reputation: 112

Joined: 05 Feb 2010
Posts: 5627

PostPosted: Tue Aug 16, 2011 1:03 am    Post subject: Reply with quote

Here is something that you can try.

1. Activate your script.
2. Find out what is accessed by your CMP code.
3. When the game crashed, right-click on the last value that was accessed by the code (even if it is just ????????) and check the registers. That will show you what was EAX last time before the game has crashed.

_________________
My trainers can be found here: http://www.szemelyesintegracio.hu/cheats

If you are interested in any of my crappy articles/tutorials about CE and game hacking, you can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles

Don't request cheats or updates.
Back to top
View user's profile Send private message
low_density
Expert Cheater
Reputation: 1

Joined: 08 Aug 2009
Posts: 156

PostPosted: Tue Aug 16, 2011 5:49 am    Post subject: Reply with quote

hmm ok i will take that in mind. but geri, can you tell me, is there any way to toggle breakpoint for fullscreen games? i mean there are some games that is impossible to make it run in window mode, but the toggle breakpoint option crashes fullscreen games...
Back to top
View user's profile Send private message
Corruptor
Advanced Cheater
Reputation: 3

Joined: 10 Aug 2011
Posts: 82

PostPosted: Tue Aug 16, 2011 7:51 am    Post subject: Reply with quote

U may try a programm called "dxwnd" (just google it). It can force most of the direct-x using programs into windowed mode. If you are using, for example tex mod, u may take a look at it. Im what you might call a "scaredy cat", dxwnd injects code into the target process and is thus detected by antivir etc. and this unpreventable "virus found"-noise always scares the shit out of me... anyways, im digressing... Embarassed
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 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