Linux下安装scapy-python3

wget https://www.python.org/ftp/python/3.5.0/Python-3.5.0.tgz
tar xvf Python-3.5.0.tgz
rm Python-3.5.0.tgz
cd Python-3.5.0
./configure --prefix=/opt/python3
make install
ln -s /opt/python3/bin/python3.5 /usr/bin/python3
ln -s /opt/python3/bin/pip3.5 /usr/bin/pip3
ln -s /opt/python3/bin/easy_install-3.5 /usr/bin/easy_install3

 

如果安装python3时出现 

Ignoring ensurepip failure:pip required SSL/TLS

因为没有安装OpenSSL,yum安装openssl-devel

yum install openssl-devel

重新编译:

make clean;make install

 

安装scapy

pip3 install scapy-python3
yum install libffi-devel
pip3 install cryptography
ln -s /opt/python/bin/scapy /usr/bin/scapy

安装完成后运行scapy:

[root@localhost ~]# scapy
INFO: Can't load Python libreadline or completer
WARNING: No route found for IPv6 destination :: (no default route?). This affects only IPv6
INFO: Please, report issues to https://github.com/phaethon/scapy
WARNING: IPython not available. Using standard Python shell instead.
Welcome to Scapy (3.0.0)
>>> 

 

解决Can't load Python libreadline or completer的问题:

yum install readline-devel
yum install patch
pip3 install readline

 

再次运行scapy,这时已经支持自动补全了:

[root@vnode33 ~]# scapy
WARNING: No route found for IPv6 destination :: (no default route?). This affects only IPv6
INFO: Please, report issues to https://github.com/phaethon/scapy
WARNING: IPython not available. Using standard Python shell instead.
Welcome to Scapy (3.0.0)
>>>

 

Session saving/loading functions require dill library:
pip3 install dill

 

转载于:https://www.cnblogs.com/z-joshua/p/6899700.html

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值