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 


nop question

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
lokhoi
Newbie cheater
Reputation: 0

Joined: 21 Sep 2006
Posts: 20

PostPosted: Mon Apr 23, 2007 9:51 pm    Post subject: nop question Reply with quote

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
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Tue Apr 24, 2007 6:11 am    Post subject: Reply with quote

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
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