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 


AOB offset and bytes asserted

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
IamNosa
How do I cheat?
Reputation: 0

Joined: 02 Apr 2021
Posts: 3
Location: dk

PostPosted: Fri Apr 02, 2021 7:45 am    Post subject: AOB offset and bytes asserted Reply with quote

i dont know to use these but i know i need them i need the offset bcause that aob is two more then i am going to edit and as for the bytes aserted i dont even know what that does. i just want figuring out how aob offset script is like made you know how to works, and yes this is the turtorial but its not telling me how to code that offset or the other thing


[/code]


define(step8WrtBytes, D9 5F 30 83 EC 0C 68)
////
//// ------------------------------ ENABLE ------------------------------
[ENABLE]
//aobScanModule(aobStep8WrtHook, Tutorial-i386.exe, 8Bxxxx89xxxx8Bxxxx8Bxxxx8DxxxxE8xxxxxxxx8Bxxxx8Bxxxx8Bxxxxxxxxxx)
//// or with aobScan
aobScan(aobStep8WrtHook, D95F3083EC0C68xxxxxxxxE8xxxxxxxx83C4100FB605F23Exxxx85C00F84C9000000)

define(injStep8WrtHook, aobStep8WrtHook+3)
//// Here the offset is set, to be used for enabling and disabling. <-- i dont know what to put here

assert(injStep8WrtHook, step8WrtBytes)
//// Here the bytes are asserted to be compatable with the process version. <-- dont know about this aither

registerSymbol(injStep8WrtHook)
alloc(memStep8WrtHook, 0x400, injStep8WrtHook)
//...

////
//// ---------- Injection Point ----------

newmem:

code:
fstp dword ptr [edi+30]
sub esp,0C
jmp return

INJECT:
jmp newmem
nop
return:


////
//// ------------------------------ DISABLE ------------------------------
[DISABLE]
////
//// ---------- Injection Point ----------
injStep8WrtHook:
db step8WrtBytes
unregisterSymbol(injStep8WrtHook)
unregisterSymbol(ptrStep8WrtHook)
dealloc(memStep8WrtHook)
Back to top
View user's profile Send private message AIM Address MSN Messenger
TheyCallMeTim13
Wiki Contributor
Reputation: 50

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Fri Apr 02, 2021 10:50 am    Post subject: Reply with quote

If you take the first 3 bytes from the AOB then then offset would be 0. Basically the AOB starts 3 bytes before the wanted injection point. So it depends where you started the AOB. If the AOB starts before the injection point then you can take the injection points address and subtract the AOBs start address from it (i.e.: injAddress - aobAddress = offset).
_________________
Back to top
View user's profile Send private message Visit poster's website
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