Skip to content

Instantly share code, notes, and snippets.

@nirinium
Created May 25, 2018 05:33
Show Gist options
  • Save nirinium/792168ae5625f061f50bf84462b9435e to your computer and use it in GitHub Desktop.
Save nirinium/792168ae5625f061f50bf84462b9435e to your computer and use it in GitHub Desktop.
luaRegister=0x00CA3890;
function debugger_onBreakpoint()
if (EIP == luaRegister) then
nameAddr=readInteger(ESP+4)
nombre=readString(nameAddr,200,false)
funcAddr=readInteger(ESP+8)
valor=readInteger(ESP+12)
print("MakeNameEx(0x"..string.format("%X",funcAddr)..", \""..nombre.."_lua\", SN_NOCHECK | SN_NOWARN);")
return 1 --I handled it so don't tell the user
else
return 0 --unexpected breakpoint, show the the user
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment