|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
mercman How do I cheat? Reputation: 0
Joined: 05 Jan 2006 Posts: 6
|
Posted: Thu Jan 05, 2006 12:15 pm Post subject: Letting number go above maximum |
|
|
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 |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25287 Location: The netherlands
|
Posted: Thu Jan 05, 2006 12:37 pm Post subject: |
|
|
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 |
|
|
mercman How do I cheat? Reputation: 0
Joined: 05 Jan 2006 Posts: 6
|
Posted: Thu Jan 05, 2006 12:48 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|