Posted: Thu Jul 21, 2016 8:16 am Post subject: Calling IsBadReadPtr from Lua?
I would like to set up a breakpoint condition with this windows api function.
I figured out how to get the address of the function with getAddress("KERNEL32.IsBadReadPtr") but I have no idea how cast the integer to a function i can use with synchronize()?
so is this the correct way to do it, by using synchronize()?
Regardless, synchronize() is documented in main.lua:
Quote:
Called from inside the thread. This will cause the tread to get the main thread to execute the given function and wait for it to finish.
Usually for GUI access
So it's not what you want. Use the executeCode function for executing assembly code.
Code:
autoAssemble([[globalalloc(checkPtr,128)
checkPtr:
push 4
push [esp+8]
call kernel32.IsBadReadPtr
ret 4]])
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