This is a WinDbg Toolbox package. This tool runs more complicated operations based upon PyKD package.
-
Install python 3.x on the target system from Python Releases for Windows
-
Install pip if it is not installed
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
- 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
- Locate Python installation folder.
%LOCALAPPDATA%\Programs\Python\Python37-32\python.exe
- Locate pykd site-packages folder:
%LOCALAPPDATA%\Programs\Python\Python37-32\Lib\site-packages\pykd
- 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"
Install pykd-ext to run pykd from WinDbg prompt.
- Download last version
- 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"
- 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
- Intall PyKD, if ".load pykd" command fails
0:000> !pykd.install
- 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.
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