Joined: 09 May 2003 Posts: 25804 Location: The netherlands
Posted: Wed Jul 31, 2013 11:26 am Post subject:
Well, you could use the conditional breakpoint method. After setting the breakpoint set an complex conditonal breakpoint with this code:
Code:
if readInteger(EBX+0x40)==0x70 then
print(readInteger(ECX+0x448))
end
return false --never break, just log
Or you can use a predefined onBreakpoint function
E.g if you execute this lua script before setting the breakpoint it will log it from the start
Code:
function debugger_onBreakpoint()
if (EIP==0x005B1202) then
if readInteger(EBX+0x40)==0x70 then
print(readInteger(ECX+0x448))
end
return 1 --continue and do not update the gui
else
--something else
return 0 --let the user know about this
end
end
If you wish to log to a file or something else, then replace print with a function that does that for you.
Also, all registers are defined in the global context of lua, so you don't have to pass on all the registers to subfunctions you may call _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping
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