The links covered in the article have been shared as follows:
- mona.py Click here
- PYKD Click here
- windbglib.py Click here
Install
- Install Python
- Install PYKD, unzip after download is complete, select the corresponding operating system, installvcredist_x86.exe. After execution, it will bepykd.pydplaced under the folder under the WinDbg installation directorywinext.
-
Open cmd, switch toC:\Program Files\Common Files\Microsoft Shared\VC,Execute registration commandregsvr32 msdia90.dllsystem will pop window display success.
-
will bewindbglib.py和mona.pyplaced in the root directory of the WinDbg file.
At this point, the installation operation has been completed.
Usage
First Test if the installation was successful
To use Mona, you must do it first.load pykd.pyd, and WinDbg does not have feedback after this operation is complete.
. Load Pykd.pyd
Then execute the!py mona.py
0:000>. Load Pykd.pyd
0:000>!py Mona
Hold on ...
[+] Command used:
!py mona.py
' Mona '-Exploit development Swiss Army knife-windbg (32bit)
Plugin version:2.0 r557
PYKD version 0.2.0.29
Written by corelan-https://www.corelan.be
Project Page:https://github.com/corelan/mona
|------------------------------------------------------------------|
| _ __ ___ ___ _ __ __ _ _ __ _ _ |
| | ‘_ ` _ \ / _ \ | ‘_ \ / _` | | ‘_ \ | | | | |
| | | | | | || (_) || | | || (_| | _ | |_) || |_| | |
| |_| |_| |_| \___/ |_| |_| \__,_|(_)| .__/ \__, | |
| |_| |___/ |
| |
|------------------------------------------------------------------|
Because csdn do not know why upload pictures, so far here.
by the
Three effects of files:
In order for WinDbg to support Python (Mona Python), you need to install PYKD, because Mona uses Pycommand to write, Immlib is used, so windbglib.py support is required.
When you use it,!py mona + command you can. Help is very detailed, casually turn over.
Finally send the most official installation instructions, mainly written too cumbersome (the starting point is of course good) install Mona for WinDbg
Installing mona.py for WinDbg