Posted: Tue Nov 23, 2021 6:43 am Post subject: aobscan a specific region of memory
Currently I have a aobscan script that nops a health function. my problem is this takes around 30 seconds or longer to enable. would like to put a specific region in this scrip to hopefully cut down the time.
If you know it's in a specific module, use the aobscanmodule AA function.
Otherwise, more advanced logic can be done in Lua. e.g. only scan through executable read-only regions instead of everything. See celua.txt for documentation.
Lua code can be run when the script is enabled/disabled with {$lua} blocks like so:
Code:
[ENABLE]
{$lua}
if syntaxcheck then return 'define(foo,0)' end
local result = assert(AOBScan('0F 38 F1 44...', '+X-C-W'))
local addr = getAddress(result[0])
result.destroy()
return ('define(foo,%08X)'):format(addr)
{$asm}
registersymbol(foo)
...
_________________
I don't know where I'm going, but I'll figure it out when I get there.
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