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 


Letting number go above maximum

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

Joined: 05 Jan 2006
Posts: 6

PostPosted: Thu Jan 05, 2006 12:15 pm    Post subject: Letting number go above maximum Reply with quote

Hi

I was going to ask how to get the code list window back, but that had already been answered.

So, here's my question.

I am hacking a program I wrote, it's very simple.

Here's the C++ Win32 console code, extremely simplified.
do
waiting for keyboard input
If keyboard=+ and this < 9 then this=this + 1
if keyboard=- and this > 0 then this=this - 1
if keyboard=escape key then quit program
print this
loop

so, i get "this" displayed to me with each update. I can press keyboard + or - to increase/decrease the value by one. If the value is less than 9, it won't go above. Or maybe that code says 8, but it is, that if it's not greater than 9 already, then increase by one, and conversely, if not less than 0 already, decrease by one. You get the picture, I hope.

Let's say that I wanted to disable the check for that number 9. Roughly, what code would I be looking for inside of the debugger for CE 5.2? That is, after I find out what addresses modify it. I still want the add/subtract to take place, of course, but I just want the add to happen unconditionally, so that even if it's 11, it will still add one.

i'm thinking,
compare for 9
jump if not equal

Am I close?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Thu Jan 05, 2006 12:37 pm    Post subject: Reply with quote

find the address of "this".
then find what WRITES to "this".
then use the keyboard, and it will show the address of your routine that does the checking and editing of "this"

in that region (probably above) should be some conditional jumps.
and it doesnt have to be a jump if not equal, it is more likely a "jump if above/below"

e.g
cmp eax,9
jnb check_above0 //if not smaller than 9 (so above) then skip the increase
this=this+1
checkabove0:
cmp eax,0
jna check_escape
this=this-1
etc...

_________________
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
mercman
How do I cheat?
Reputation: 0

Joined: 05 Jan 2006
Posts: 6

PostPosted: Thu Jan 05, 2006 12:48 pm    Post subject: Reply with quote

Dark Byte wrote:
find the address of "this".
then find what WRITES to "this".
then use the keyboard, and it will show the address of your routine that does the checking and editing of "this"

in that region (probably above) should be some conditional jumps.
and it doesnt have to be a jump if not equal, it is more likely a "jump if above/below"

e.g
cmp eax,9
jnb check_above0 //if not smaller than 9 (so above) then skip the increase
this=this+1
checkabove0:
cmp eax,0
jna check_escape
this=this-1
etc...


Thank you very much. Now comes the fun part, disabling the various lines to break the check. Then I think I might find a way to counteract/detect such a modification inside of the code and then circumvent that! hahaha, what fun
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