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 


Simple aobscan script for a forced jump

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Codcat
Advanced Cheater
Reputation: 0

Joined: 21 Aug 2007
Posts: 62

PostPosted: Fri Apr 11, 2014 8:31 am    Post subject: Simple aobscan script for a forced jump Reply with quote

This is my code for a simple detour forced jump, I'd do something similar for a NOP as well. Should this be done differently? eg. declaring labels etc. possible bugs.

Code:
[ENABLE]
aobscan(aob_sta_on,73 3E 83 C0 11 53 8B 5D 0C)
alloc(newmem,2048)

aob_sta_on:
db EB

[DISABLE]
aobscan(aob_sta_off,EB 3E 83 C0 11 53 8B 5D 0C)
aob_sta_off:
db 73
dealloc(newmem)
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Fri Apr 11, 2014 12:43 pm    Post subject: Reply with quote

You don't have to allocate memory.


This is enough:
Code:
[ENABLE]
aobscan(aob_sta_on,73 3E 83 C0 11 53 8B 5D 0C)
aob_sta_on:
db EB

[DISABLE]
aobscan(aob_sta_off,EB 3E 83 C0 11 53 8B 5D 0C)
aob_sta_off:
db 73

_________________
Back to top
View user's profile Send private message MSN Messenger
Codcat
Advanced Cheater
Reputation: 0

Joined: 21 Aug 2007
Posts: 62

PostPosted: Fri Apr 11, 2014 10:43 pm    Post subject: Reply with quote

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