本机已安装Python2.7.2
一,安装Paimei中的pydbg
1).Download paimei : https://github.com/OpenRCE/paimei
2).Download pydbg : https://github.com/OpenRCE/pydbg
3).分别解压到指定目录,copy pydbg\ to paimei\
4).cmd cd to paimei
.运行"setup.py build"
.运行"setup.py install"
.运行Python
.在Python提示符下"import pydbg".提示出错,出错的原因是找不到pydasm。二,安装pydasm
1).Download libdasm-1.5.tar.gz :http://code.google.com/p/libdasm/downloads/list
2).修改C:\Python27\Lib\distutils\msvc9compiler.py,修改get_build_version函数,直接return 10.0。原因是python使用VS2008 (8.0)编译,而我系统里装的VS2010 (10.0),这貌似是python的bug。
3)进入VS2010的编译环境,Visual Studio Command Prompt (2010)
4)cd到 libdasm-1.5\pydasm目录下
.运行"setup.py build_ext"
.运行"setup.py install"
5)将新编译出的pydasm.pyd拷贝到C:\Python27\Lib\site-packages\pydbg\ps: pydbg 依赖于 pydasm, pydasm 又需要 libdasm