angr:基于python的二进制分析框架 安装与使用
来源:互联网 发布:37传奇霸业魂珠数据 编辑:程序博客网 时间:2024/06/05 03:08
1.安装教程
请参考http://blog.csdn.net/xiaosatianyu/article/details/51586498
简单列举下命令:
sudo pip install virtualenvwrapperexport WORKON_HOME=$HOME/Python-workhomesource /usr/local/bin/virtualenvwrapper.shmkvirtualenv angrsudo pip install angr
安装过程报错:
1.安装pyvex 报错
Collecting pyvex>=6.7.4.12 (from angr) Downloading pyvex-6.7.4.12.tar.gz (52kB) 100% |████████████████████████████████| 61kB 386kB/s Complete output from command python setup.py egg_info: Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found c/_cffi_backend.c:15:17: fatal error: ffi.h: 没有那个文件或目录 compilation terminated. Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-j1RkZM/pyvex/setup.py", line 147, in <module> 'pyvex': ['lib/*', 'include/*'] File "/usr/lib/python2.7/distutils/core.py", line 111, in setup _setup_distribution = dist = klass(attrs) File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 318, in __init__ self.fetch_build_eggs(attrs['setup_requires']) File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 375, in fetch_build_eggs replace_conflicting=True, File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 851, in resolve dist = best[req.key] = env.best_match(req, ws, installer) File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1123, in best_match return self.obtain(req, installer) File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1135, in obtain return installer(requirement) File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 443, in fetch_build_egg return cmd.easy_install(req) File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 673, in easy_install return self.install_item(spec, dist.location, tmpdir, deps) File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 699, in install_item dists = self.install_eggs(spec, download, tmpdir) File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 880, in install_eggs return self.build_and_install(setup_script, setup_base) File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1119, in build_and_install self.run_setup(setup_script, setup_base, args) File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1107, in run_setup raise DistutilsError("Setup script exited with %s" % (v.args[0],)) distutils.errors.DistutilsError: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
解决办法:
sudo pip install cffi
剩下的就一路顺风了。
2.使用教程
注意:angr似乎只能在linux 64位系统下运行
参看这里:https://github.com/angr/angr-dev/issues/14
32位会一直报段错误
使用:
workon angr //似乎会 找不到命令直接进入angr-doc-master/examples/defcamp_r100python solve.py就可以看到答案了
0 0
- angr:基于python的二进制分析框架 安装与使用
- 二进制符号执行分析框架angr的Windows安装教程
- 二进制分析框架angr基本信息
- 二进制分析框架angr基本信息
- 使用angr和Radare解决CMU的二进制炸弹
- 利用angr进行二进制静态分析
- Angr:一个具有动态符号执行和静态分析的二进制分析工具
- Angr:一个具有动态符号执行和静态分析的二进制分析工具
- Windows下Python爬虫框架pyspider的安装与使用
- Python nose单元测试框架的安装与使用
- 基于Flask框架的python微博数据分析
- C/C++/Python等 使用二进制模式打开文件与不使用二进制模式的区别
- 使用python进行汉字与二进制之间的转换
- (逆向)angr 执行二进制函数
- 用angr解二进制题目1
- vLang-基于模型的微信开发框架,使用Python
- 【python】python redis的安装与使用
- 【python】python redis的安装与使用
- LeetCode刷题(C++)——Convert Sorted List to Binary Search Tree(Normal)
- 1052. 卖个萌 (20)
- 初识HTML/CSS之CSS篇
- 地毯填补问题(分治)(AOJ 859)
- Thymeleaf教程(一)简介
- angr:基于python的二进制分析框架 安装与使用
- POJ
- 生活
- 14通信工程光健+电赛FPGA作业
- 回收gprs装置总结
- Ubuntu安装anaconda
- C++——NOIP模拟题——猴子
- 自定义Adapter的接口,方便回调。Adapter与Activity之间的回调
- Qt5为应用程序添加帮助文档