在 WinXP32bit/Python2.7 裝 Pydbg


裝pydbg不再是個煎熬  這是目前試過最簡單的方法   不用compile  不用自己找dll  不用自己加環境變數

1. 下載並安裝 gcc-mingw-4.3.3-setup.exe
下載 http://beta-machon-lev.googlecode.com/files/gcc-mingw-4.3.3-setup.exe
安裝
    按照預設
    勾 "Add GCC to your system PATH. Mandatory for usage with Python"
    勾 "Set the default runtime library to use. This can be changed after
       installation by running gccmrt"
    若是Python 2.7 就勾 "Link with MSVCR90.DLL"

2.下載並安裝libdasm
下載 http://libdasm.googlecode.com/files/libdasm-1.5.tar.gz
安裝
    在command prompt 進入 \...\libdasm-1.5\pydasm>
    (1)\...\libdasm-1.5\pydasm> setup.py build
    (2)\...\libdasm-1.5\pydasm> setup.py install

3.下載並安裝PaiMei
下載 http://0rz.tw/F97Iy
安裝
    在command prompt 進入 \...\OpenRCE-paimei-d78f574>
    (1)\...\OpenRCE-paimei-d78f574> setup.py install

4. 測試
    (1) c:\Python27> python.exe
    (2) >>> import pydasm
    (3) >>> import pydbg

    若出現 ImportError: No module named pydbg 的話
        到 http://www.lfd.uci.edu/~gohlke/pythonlibs/#base 下載base package
        若是win32&python2.7 就下載並安裝 Base-12.5.25.win32-py2.7.exe

5. 再重覆一次4.(1)(2)(3) 測試成功

No comments: