MAC安装pwntools记录


1、使用python3安装pwntools

pip3 install pwntools

2、安装成功后测试

测试不成功提示安装

binutils
pwnlib.exception.PwnlibException: Could not find 'objcopy' installed for ContextType()
Try installing binutils for this architecture:
https://docs.pwntools.com/en/stable/install/binutils.html

3、安装binutils

binutils有多个版本,且我使用的版本需要FQ下载。

github上传下载好的内容:
https://github.com/Done163/pwntools/blob/master/binutils-amd64.rb

安装命令:

brew install binutils-amd64.rb 

brew安装过程需要下载,较慢。刚开始的brew update 可使用“control+C”暂停,不影响之后的安装。

4、成功测试

>>> from pwn import *
>>> asm("xor eax,eax")
b'1\xc0'

 

posted @ 2020-09-28 11:04  S_m_workers  阅读(1022)  评论(1编辑  收藏  举报