| View previous topic :: View next topic |
| Author |
Message |
Firemonkey5 How do I cheat?
Reputation: 0
Joined: 16 Oct 2006 Posts: 1
|
Posted: Sun Oct 14, 2007 8:14 pm Post subject: Skipping a step... |
|
|
Alright all I want to do is skip the jump to the address part...
| Code: |
005153e8 - cmp byte ptr [ebp-03],00
005153ec - je 005153f5
|
The 2nd line goes to the death sequence, while the 1st checks health against 0...
Help would be appreciated.[/code]
|
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Sun Oct 14, 2007 8:40 pm Post subject: Re: Skipping a step... |
|
|
| Firemonkey5 wrote: | Alright all I want to do is skip the jump to the address part...
| Code: |
005153e8 - cmp byte ptr [ebp-03],00
005153ec - je 005153f5
|
The 2nd line goes to the death sequence, while the 1st checks health against 0...
Help would be appreciated. |
NOP it.
| Code: | 005153e8 - cmp byte ptr [ebp-03],00
005153ec - NOP (0x90)
005153ed - NOP
005153ee - NOP
005153ef - NOP
005153f0 - NOP |
This causes the jump not to be executed, and a NOP to the CPU basically just tells it to continue, it doesn't do anything.
Last edited by Flyte on Sun Oct 14, 2007 8:40 pm; edited 1 time in total |
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Sun Oct 14, 2007 8:40 pm Post subject: |
|
|
| Change je to jne?
|
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Sun Oct 14, 2007 8:41 pm Post subject: |
|
|
| Wiccaan wrote: | | Change je to jne? |
No, because if the health isn't 0 (aka alive) it will jump to the death sequence.
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Thu Oct 18, 2007 2:10 pm Post subject: |
|
|
How about:
| Code: | | 005153e8 - cmp byte ptr [ebp-03],FFFFFFFF |
Or -1.
|
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Thu Oct 18, 2007 2:17 pm Post subject: |
|
|
| Code: | 005153e8 - cmp byte ptr [ebp-03],00
005153ec - jl 005153f5
|
There it wont jump unless it is less then 0.
|
|
| Back to top |
|
 |
Xanatos I post too much
Reputation: 18
Joined: 06 May 2007 Posts: 2559 Location: US
|
Posted: Thu Oct 18, 2007 2:21 pm Post subject: |
|
|
Super long explanation time.
| Code: | | 005153e8 - cmp byte ptr [ebp-03],00 |
This line of code compares the ebp-03 with 00, I bet you know that.
So if ebp-03 is your health and you wanted to hack it, a easy thing to do is... Nop both the jump and compare codes.
| Code: | 005153e8 - cmp byte ptr [ebp-03],00
005153ec - jl 005153f5 |
The effect is that you will never die since it will never go to the death sequence.
_________________
|
|
| Back to top |
|
 |
|