Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. game.dll:
  2.  
  3. call PrepareMenu
  4.  
  5.  
  6. PrepareMenu:
  7. push "prepareMenu( %x %x %x )"
  8. call luaFunction
  9. retn
  10.  
  11.  
  12. luaFunction:
  13. // Check return address to be inside game.dll
  14. // Execute command if so
  15. retn
  16.  
  17.  
  18.  
  19. hack.dll:
  20. push _ContinueHere // push proper return address to stack first
  21. push "restrictedCommand( hacky stuff )"
  22. jmp PrepareMenu + 5 ( == call luaFunction )
  23. _ContinueHere
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement