Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Missing stuff from last commit

  • Loading branch information...
commit af06bab5f2744a96a81fb4a353f65b6e059e70df 1 parent d2c429e
fG authored
Showing with 29 additions and 0 deletions.
  1. +10 −0 README
  2. +19 −0 examples/64bits_calculator.py
10 README
View
@@ -0,0 +1,10 @@
+ _____ _____
+ __|__ |__ __ _ __|__ |__ ______ ______ ____ __ _
+| | |\ \ //| \ || >| ___| / /_ | | | |
+| _| | \ \// | \ || < | | || _ || |_| |
+|___| __| /__/ |______/ __||______>|______||______|'----__|
+ |_____| |_____|
+
+PyDBG64 - OS X PyDbg with 64 bits support
+
+You probably want to read MacOSX/README :-)
19 examples/64bits_calculator.py
View
@@ -0,0 +1,19 @@
+from pydbg import *
+import time
+import sys
+global debug
+# initialize instance
+debug = pydbg()
+# load our target
+debug.load("/Applications/Calculator.app/Contents/MacOS/Calculator", "")
+
+def handler_breakpoint (pydbg):
+ # we are responsible for deleting the breakpoint!
+ debug.bp_del(0x000000010000cc9a)
+ print "About breakpoint hit!"
+ return DBG_CONTINUE
+
+# insert a new breakpoint
+debug.bp_set(0x000000010000cc9a, handler=handler_breakpoint)
+# start
+debug.run()
Please sign in to comment.
Something went wrong with that request. Please try again.