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 


how to use AOB injection or code injection in lua script ?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Supernick
Newbie cheater
Reputation: 0

Joined: 04 Jul 2016
Posts: 15

PostPosted: Wed Jul 06, 2016 1:53 am    Post subject: how to use AOB injection or code injection in lua script ? Reply with quote

like the subject says ... i need a way that if i clicked something like a button the script in auto assembly activate
button to activate it ... other one to disable it


aobscan(INJECT, "00 00 00 00 00") // should be unique
alloc(newmem,$1000)

label(code)
label(return)

newmem:

code:
xx
xx
xx
xx
xx
jmp return

INJECT+AECE58:
jmp code
return:
registersymbol(INJECT)

[DISABLE]

INJECT+AECE58:
db 00 00 00 00 00

unregistersymbol(INJECT)
dealloc(newmem)
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Wed Jul 06, 2016 7:31 pm    Post subject: Reply with quote

Code:
autoAssemble([[

aobscan(INJECT, "00 00 00 00 00") // should be unique
alloc(newmem,$1000)

label(code)
label(return)

newmem:

code:
xx
xx
xx
xx
xx
jmp return

INJECT+AECE58:
jmp code
return:
registersymbol(INJECT)

]])
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting 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