Python on Windbg

Wouldn't it be nice if you could automate this task when using windbg to analyze dumps or perform live debugging? I have However, I was wondering if I could learn the scripting function of windbg, but I found an extension that can use python on windbg, so I will introduce it.

Python extension for WinDbg https://pykd.codeplex.com/

The flow from installation to hello world is described below.

1. Download and execute the installer that suits your environment from the following

https://pykd.codeplex.com/releases/view/116361

--I used setup.exe

--The windbg extension folder in the windbg installation folder? You will be asked for the path during installation --If you don't have python, it will download python msi from the net and execute it.

2. Start windbg

3. Try attaching windbg to an appropriate process for the time being

--Notepad.exe is fine

4. Load the python extension

0:001>.load pykd.pyd

5. Launch the python interpreter

0:001>!pycmd

6. Try to output hello world

>>>print "hello world"

But I don't really know python. Well, I will play with it while googled appropriately.

Recommended Posts

Python on Windbg
Python on Windows
twitter on python3
python on mac
Python conda on cygwin
Install python on WSL
PyOpenGL setup on Python 3
Install Python on Pidora.
Install Scrapy on python3
Install Python on Mac
Installing pandas on python2.6
python basic on windows ②
Install python on windows
Install Python 2.7.3 on CentOS 5.4
Install Python 3.3 on Ubuntu 12.04
Install Python 3.4 on Mac
Install Python 3.6 on Docker
Set-enable Python virtualenv on Windows
Set up Python 3.4 on Ubuntu
Run Openpose on Python (Windows)
Install Python 3.8 on RHEL 8 (AppStream)
Use matplotlib on Ubuntu 12 & Python
Install watchdog on Windows + Python 3.3
Python on Ruby and angry Ruby on Python
Python
Install pygame on python3.4 on mac
Python + Kivy development on Windows
Real-time graphs on Plotly (Python)
Made python available on macOS
Sphinx-autobuild (0.5.2) on Windows7, Python 3.5.1, Sphinx 1.3.5
Put Python 3.x on Ubuntu
Fastest Python installation on Windows
[Python] Notes on data analysis
Build Python environment on Windows
Run Tensorflow 2.x on Python 3.7
Update python on Mac to 3.7-> 3.8
Install pandas 0.14 on python3.4 [on Mac]
Install OpenCV on Ubuntu + python
Notes on installing Python on Mac
Twitter posts on Python 3 etc.
Run unix command on python
Build python environment on windows
Python --Install MySQLDB on EC2
Install Python 3.8 on CentOS 8 (AppStream)
I ran python on windows
Broadcast on LINE using python
[Python] [Chainer] [Windows] Install Chainer on Windows
Use Python on Windows (PyCharm)
Notes on installing Python on CentOS
docker build python based on alpine
Building a Python environment on Mac
Install Python Pillow on Amazon Linux
Install Python 3.8 on Ubuntu 18.04 (OS standard)
Looking back on Python 2020 around me
Python environment construction memo on Windows 10
If python on mac goes missing
Python 3.4 pyvenv fails on Ubuntu 14.04 LTS
Notes on Python and dictionary types
Python 3.6 on Windows ... and to Xamarin.
Installing Kivy on Windows10 64bit Python3.5
Install Python3 on Sakura server (FreeBSD)