scapy 安装与测试

来源:互联网 发布:mac 目录文件对比工具 编辑:程序博客网 时间:2024/06/05 09:55

windows:
sudo pip install scapy
好像也安装了 pcapy.
遇到一个错误:WindowsError: [Error 126] 这个是wpcap.dll没有安装的原因
安装方法:http://www.jb51.net/os/windows/378774.html

mac: sudo pip install scapy –user -U
参考链接:https://stackoverflow.com/questions/40272077/importerror-no-module-named-dumbnet-when-trying-to-run-a-script-that-leverage
后面还安装了两个模块:
pcapy和dumbnet(https://stackoverflow.com/questions/40272077/importerror-no-module-named-dumbnet-when-trying-to-run-a-script-that-leverage)

linux: sudo apt-get install scapy

安装完成之后,在python 中尝试 from scapy.all import *
 测试小例子:http://blog.csdn.net/hitwangpeng/article/details/49278409

原创粉丝点击