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.
Source here.
Features
- Soft breakpoints
- Hardware breakpoints
- Memory breakpoints
- Custom callbacks
Examples
#!/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()