Giter Club home page Giter Club logo

windbgtool's Introduction

windbgtool

This is a WinDbg Toolbox package. This tool runs more complicated operations based upon PyKD package.

Installation

Python 3.x

wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py

Python Modules

  • Install dependencies:
pip install pykd
pip install capstone
pip install pyvex
pip install archinfo
pip install cffi
pip install git+https://github.com/ohjeongwook/idatool

PyKD + WinDbg Integration

  1. Locate Python installation folder.
%LOCALAPPDATA%\Programs\Python\Python37-32\python.exe
  1. Locate pykd site-packages folder:
%LOCALAPPDATA%\Programs\Python\Python37-32\Lib\site-packages\pykd
  1. Locate WinDbg extension folders

64 bit WinDbg Installation:

"%ProgramFiles%\Debugging Tools for Windows (x64)\winext"

32 bit WinDbg in 64 bit WinDbg Installation:

"%ProgramFiles%\Debugging Tools for Windows (x64)\Wow64\winext"

32 bit WinDbg Installation:

"%ProgramFiles%\Debugging Tools for Windows (x86)\winext"

PyKD from WinDbg

Install pykd-ext to run pykd from WinDbg prompt.

  1. Download last version
  2. Copy pykd.dll to Windbg winext folder
copy x64\pykd.dll "%ProgramFiles%\Debugging Tools for Windows (x64)\winext"
copy x86\pykd.dll "%ProgramFiles%\Debugging Tools for Windows (x64)\Wow64\winext"
copy x86\pykd.dll "%ProgramFiles%\Debugging Tools for Windows (x86)\winext"
  1. Run following command to verify pykd
0:000> .load pykd

The following command will show the current Python interpreter in use.

0:005> !pykd.info

pykd bootstrapper version: 2.0.0.22

Installed python:

Version:        Status:     Image:
------------------------------------------------------------------------------
* 3.7 x86-32    Unloaded    C:\Users\tester\AppData\Local\Programs\Python\Python37-32\python37.dll
  1. Intall PyKD, if ".load pykd" command fails
0:000> !pykd.install

PyKD

  • Source folder: 64 bits: "%ProgramFiles(x86)%\Windows Kits\10\Debuggers\x64" "%ProgramFiles%\Windows Kits\10\Debuggers\x64" "%ProgramFiles%\Debugging Tools for Windows (x64)"

32 bits: "%ProgramFiles(x86)%\Windows Kits\10\Debuggers\x86" "%ProgramFiles%\Debugging Tools for Windows (x64)\Wow64"

  • Target folders:

64 bits: C:\python27-x64\Lib\site-packages\pykd %LOCALAPPDATA%\Programs\Python\Python37\Lib\site-packages\pykd

32 bits: C:\Python27\Lib\site-packages\pykd %LOCALAPPDATA%\Programs\Python\Python37-32\Lib\site-packages\pykd

  • Files dbgeng.dll dbghelp.dll DbgModel.dll msdia140.dll srcsrv.dll symsrv.dll winext*.dll

  • Use install_windbg_files.py to copy dependencies.

Installing windbgtool

Run pip to install windbgtool from this repository:

pip install git+https://github.com/ohjeongwook/windbgtool

For upgrading existing modules.

pip install git+https://github.com/ohjeongwook/windbgtool --upgrade

windbgtool's People

Contributors

ohjeongwook avatar

Stargazers

 avatar  avatar

Forkers

dolbylee

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.