 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
lokhoi Newbie cheater
Reputation: 0
Joined: 21 Sep 2006 Posts: 20
|
Posted: Mon Apr 23, 2007 9:51 pm Post subject: nop question |
|
|
When should I add nop? What determine the amount of nop need to be added? Need some help..
here is a sample of my question..
[Enable]
alloc(test, 20)
label(exit)
6C2360:
jmp test
nop
nop
nop
exit:
test:
mov eax, 0
mov [ebp+0c],eax
call 6492ed
jmp exit
[Disable]
6C2360:
mov [ebp+0c],eax
call 6492ed
dealloc(test)
|
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Tue Apr 24, 2007 6:11 am Post subject: |
|
|
First off, If you dont know about nop, You definitely dont know what that script does.
Let me try and explain nop.
Say you found health in a game.
Then you seen what writes to the address you found.
You land here.
005BE6A8 8b c8 mov ecx,eax
So you want to have infinite lives and using a nop you can do this.
005BE6A8 90
005BE6A9 90
That will make the lives not increase nor decrease any longer.
This is the same as
nop
nop
You see the bytes you have determines the amount of nops you need.
8b c8 <--- 2 Bytes, 2 Nops
==============================================
Or you can give yourself more lives this way.
==============================================
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
005BE6A8:
jmp newmem
returnhere:
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov eax,99
originalcode:
mov ecx,eax
exit:
jmp returnhere
|
|
| 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
|
|