1.查看python版本
[root@SmartOP-01 tmp]# python -V
Python 2.7.2
2.下载scapy
[root@SmartOP-01 tmp]# cd /tmp/
[root@SmartOP-01 tmp]# wget scapy.net
3.解压文件
[root@SmartOP-01 tmp]# unzip scapy-latest.zip
[root@SmartOP-01 tmp]# cd scapy-2.2.0/
[root@SmartOP-01 scapy-2.2.0]# python setup.py install
4.完成测试
[root@SmartOP-01 ~]# scapy
INFO: Can't import python gnuplot wrapper . Won't be able to plot.
INFO: Can't import PyX. Won't be able to use psdump() or pdfdump().
WARNING: No route found for IPv6 destination :: (no default route?)
Welcome to Scapy (2.2.0)
>>> ls()
ok 成功!!!