`
d63hbz
  • 浏览: 14082 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

Python2.7安装pydbg

阅读更多
一、环境
Windows XP
安装Microsoft Visual Studio 2010
安装Python2.7
设置环境变量:VS90COMNTOOLS=%VS100COMNTOOLS%
下载安装依赖包并分别解压缩:
http://libdasm.googlecode.com/files/libdasm-1.5.tar.gz
https://codeload.github.com/OpenRCE/paimei/zip/master
https://codeload.github.com/OpenRCE/pydbg/zip/master

二、安装过程:
1)安装libdasm-1.5:

C:\Documents and Settings\Administrator\My Documents\下载\libdasm-1.5>cd pydasm

C:\Documents and Settings\Administrator\My Documents\下载\libdasm-1.5\pydasm>setup.py build_ext
running build_ext

C:\Documents and Settings\Administrator\My Documents\下载\libdasm-1.5\pydasm>setup.py install
running install
running build
running build_ext
running install_lib
running install_egg_info
Removing C:\Python27\Lib\site-packages\pydasm-1.5-py2.7.egg-info
Writing C:\Python27\Lib\site-packages\pydasm-1.5-py2.7.egg-info

C:\Documents and Settings\Administrator\My Documents\下载\libdasm-1.5\pydasm>python -c "import pydasm"

C:\Documents and Settings\Administrator\My Documents\下载\libdasm-1.5\pydasm>


2)安装Pydbg:
1> 将pydbg-master内的文件拷贝到paimei-master\pydbg目录
2> 执行安装命令:
C:\Documents and Settings\Administrator\My Documents\下载>cd paimei-master

C:\Documents and Settings\Administrator\My Documents\下载\paimei-master>setup.py install
running install
running build
running build_py
running install_lib
copying build\lib\pydbg\pydasm.pyd -> C:\Python27\Lib\site-packages\pydbg
running install_egg_info
Removing C:\Python27\Lib\site-packages\PaiMei-1.2-py2.7.egg-info
Writing C:\Python27\Lib\site-packages\PaiMei-1.2-py2.7.egg-info

C:\Documents and Settings\Administrator\My Documents\下载\paimei-master>python -c "import pydbg"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "pydbg\__init__.py", line 47, in <module>
    from pydbg                   import *
  File "pydbg\pydbg.py", line 32, in <module>
    import pydasm
ImportError: DLL load failed: 找不到指定的模块。

C:\Documents and Settings\Administrator\My Documents\下载\paimei-master>del C:\Python27\Lib\site-packages\pydbg\pydasm.pyd

C:\Documents and Settings\Administrator\My Documents\下载\paimei-master>python -c "import pydbg"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "pydbg\__init__.py", line 47, in <module>
    from pydbg                   import *
  File "pydbg\pydbg.py", line 32, in <module>
    import pydasm
ImportError: DLL load failed: 找不到指定的模块。



此时需要重新打开Cmd:
C:\Documents and Settings\Administrator>python -c "import pydbg"

C:\Documents and Settings\Administrator>
</module></module></module></string></module></module></module></string>
分享到:
评论

相关推荐

    与Python2.7版本配套的pydbg和pydasm.pyd资源

    Python灰帽子环境配置需要的库和pydasm.pyd文件,根据网上相关教程安装Python2和PaiMei后会发现自身的pydasm.pyd文件无法加载dll,本zip重新编译了pydasm.pyd文件,使其能正常导入,正常使用。

    Pydasm for Python2.7

    在python2.7下安装pydbg,如果Pydasm.pyd版本不对是不行的。所以自己编译了一个pyd。贡献出来,供需要的同学下载。

    pyDbg重新编译pydasm python2.7兼容

    《pyDbg与Python2.7的兼容性挑战与解决方案》 在计算机科学的世界里,Python作为一种高级编程语言,以其简洁明了的语法和强大的库支持赢得了广大开发者的喜爱。然而,随着时间的推移,Python的版本迭代也带来了兼容...

    pydbg for python 2.7

    "pydbg for python 2.7" 是一个针对Python 2.7版本的调试库,主要功能是提供对Python程序的动态调试支持。在Python的世界里,调试是开发者日常工作中必不可少的一部分,它帮助我们查找并修复代码中的错误,优化程序...

    pydbg安装所需各种安装包

    在安装`pydbg`之前,我们需要确保系统已经安装了Python环境,通常推荐使用Python 2.7或3.x版本,因为`pydbg`可能不兼容更早的版本。接下来,我们需要安装一些依赖包,这些包是`pydbg`正常运行的基础: 1. **Python...

    pydbg.whl文件

    一旦Pydbg安装完成,您就可以开始使用它的强大功能了。Pydbg提供了丰富的API,可以实现对Python程序的断点设置、单步执行、变量查看等功能。例如: - `pydbg.attach(pid)`:附加到指定进程ID的Python进程进行调试。...

    非官方版的PyDbg--pydbg-1.2.win32-py2.7.exe

    你是否正在为安装了PyDbg后,无法导入pydasm模块而烦恼,你是否正在为无法编译pydasm模块而束手无策,那就直接下载使用这个非官方版本...不过注意这个版本仅支持Python2.7需要其它版本的站内信联系我! 祝你学习愉快。

    python逆向环境配置

    - 安装Python 2.7:按照标准流程进行安装,确保路径设置正确。 - 安装Django:下载源码包,进入目录运行`python setup.py install`命令。 - 安装MongoDB:首先启动服务,例如`C:\MONGO\BIN\MONGOD --dbpath=c:\db...

    pydbg-1.2-cp27-none-win32.whl.zip

    对于pydbg-1.2版本,这意味着需要安装Python 2.7和兼容的32位Windows操作系统。安装过程通常涉及到下载相应的whl包,然后使用pip(Python的包安装工具)进行安装。不过,由于文件信息中提醒开发者到电脑端预览后再...

    pydbg-1.2-cp27-none-win_amd64.whl.zip

    pydbg-1.2-cp27-none-win_amd64.whl.zip 这个文件名透露了几个关键信息:pydbg-1.2 指的是 PyDbg 库的版本号,cp27 表示这个库是针对 Python 2.7 版本编译的,none 表示没有特定的系统架构要求,win_amd64 则明确...

    pydbg-pydasm-paimei:Pydbg、pydasm 和 paimei 框架在一个方便的包中

    这个包的目的是方便在 Windows 机器上安装 pydbg 和 pydasm Python 模块。 该软件包带有用于 Windows x86/x64 的 Python 2.6/2.7 的预编译 pydasm.pyd 二进制文件。 多亏了的链接,该程序包才得以组装。 我的修改...

Global site tag (gtag.js) - Google Analytics