Skip to content
/ Pybag Public
forked from dshikashio/Pybag

CPython module for Windbg's dbgeng plus additional wrappers.

Notifications You must be signed in to change notification settings

point3/Pybag

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pybag


Introduction
============

Pybag combines MS DebugEngine bindings with additional helper functions for a
powerful Windows debugging module.


Install
=======

Prerequisites must already be installed.  Paths might need to be
adjusted in __init__.py and setup.py

    
    python setup.py install

Or download a release package and install.

Requires
========

* Python 2.7
* Distorm3
* Windows Software Development Kit (SDK) for Windows 8.1
** Debugging Tools
** Headers and Libraries
* Visual Studio 9 (only if building from source)



Run
===

c:\>python 
>>> import pybag
>>> dbg = pybag.pywindbg.Userdbg()
>>> dbg.create('calc.exe')
>>> dbg.cmd('.symfix')
>>> dbg.cmd('.reload')
>>> dbg.go()
    
    *** hit contrl-c to break ***

>>> dbg.peb()
>>> help(dbg)




TODO
====

- Dynamically resolve install path for SDK
- Replace pefile
- Add some tests
- Kernel debugging
- Remote debugging using dbgsrv
- More helper functions
- Better examples


About

CPython module for Windbg's dbgeng plus additional wrappers.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 68.1%
  • Python 30.4%
  • C 1.5%