Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.dll:
- call PrepareMenu
- PrepareMenu:
- push "prepareMenu( %x %x %x )"
- call luaFunction
- retn
- luaFunction:
- // Check return address to be inside game.dll
- // Execute command if so
- retn
- hack.dll:
- push _ContinueHere // push proper return address to stack first
- push "restrictedCommand( hacky stuff )"
- jmp PrepareMenu + 5 ( == call luaFunction )
- _ContinueHere
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement