為windbg安裝mona.py

來源:互聯網
上載者:User

標籤:windbg   mona   安裝   binary   

文章中涉及的連結已經共用如下:
  • mona.py click here
  • PYKD click here
  • windbglib.py click here
install
  1. 安裝python
  2. 安裝PyKD,下載完成之後解壓縮,選擇對應的作業系統,安裝vcredist_x86.exe. 執行之後將pykd.pyd 放置到windbg安裝目錄下的winext檔案夾下。
  3. 開啟cmd,切換到 C:\Program Files\Common Files\Microsoft Shared\VC下, 執行註冊命令 regsvr32 msdia90.dll 系統會彈窗顯示成功。

  4. 將windbglib.py和mona.py 放置到windbg檔案根目錄下。

至此,已經完成安裝操作。

Usage

首先測試一下安裝是否成功
要使用mona,必須先執行.load pykd.pyd,此操作完成之後windbg並沒有反饋。

.load pykd.pyd
接著執行!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

|------------------------------------------------------------------||        _ __ ___    ___   _ __    __ _     _ __   _   _           ||       | ‘_ ` _ \  / _ \ | ‘_ \  / _` |   | ‘_ \ | | | |          ||       | | | | | || (_) || | | || (_| | _ | |_) || |_| |          ||       |_| |_| |_| \___/ |_| |_| \__,_|(_)| .__/  \__, |          ||                                          |_|     |___/           ||                                                                  ||------------------------------------------------------------------|

由於csdn不知道為什麼上傳不了圖片,到這裡就為止吧。。

by the way

三個檔案的作用:
為了使windbg支援python(mona拿python寫的),需要安裝PYKD,由於mona使用pycommand編寫,使用了immlib,所以需要windbglib.py的支援。

平時使用的時候,!py mona +命令 就可以。協助很詳細,隨便翻一下。

最後送上最官方的安裝說明,主要是寫的太繁瑣了(出發點當然是好的)install mona for windbg

為windbg安裝mona.py

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.