Advertisement
Guest User

stuff

a guest
Apr 19th, 2015
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.12 KB | None | 0 0
  1. [ENABLE]
  2. {$lua}
  3. changeregaddress=0x00942B36 --change this to the address you want
  4. debug_removeBreakpoint(changeregaddress) --remove it if it was set
  5.  
  6. function debugger_onBreakpoint()
  7.   if (EIP == changeregaddress) then
  8.     hasChangedARegister=true --obsolete in 6.1
  9.     EAX=1
  10.     changedEAX=true  --obsolete in 6.1
  11.  
  12.     debug_continueFromBreakpoint(0) --run (bug in 6.0: it's always run)
  13.  
  14.     return 1 --I handled it so don't tell the user
  15.   else
  16.     return 0 --unexpected breakpoint, show the the user
  17.   end
  18. end
  19.  
  20.  
  21. debug_setBreakpoint(changeregaddress)
  22. [DISABLE]
  23. {$lua}
  24. changeregaddress=0x00942B36 --change this to the address you want
  25. debug_removeBreakpoint(changeregaddress) --remove it if it was set
  26.  
  27. function debugger_onBreakpoint()
  28.   if (EIP == changeregaddress) then
  29.     hasChangedARegister=true --obsolete in 6.1
  30.     EAX=0
  31.     changedEAX=true  --obsolete in 6.1
  32.  
  33.     debug_continueFromBreakpoint(0) --run (bug in 6.0: it's always run)
  34.  
  35.     return 1 --I handled it so don't tell the user
  36.   else
  37.     return 0 --unexpected breakpoint, show the the user
  38.   end
  39. end
  40.  
  41.  
  42. debug_setBreakpoint(changeregaddress)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement