sdbg (simple debugger) is a really minimal Windows debugger written in python for educational purposes. Much of his architecture is based on Pedram Amini's PyDbg.
If you are looking for something more powerful and/or versatile please have a look at PyDbg or Immunity Debugger
- Soft breakpoints
- Hardware breakpoints
- Memory breakpoints
- Custom callbacks
#!/usr/bin/env python import sdbg dbg = sdbg.debugger() pid = raw_input("Enter PID: ") dbg.attach(int(pid)) printf = dbg.func_resolve("msvcrt.dll", "printf") dbg.bp_set(printf_add) dbg.run() dbg.bp_del(printf_add) dbg.detach()