您的位置:首页 > 编程语言 > Python开发

scapy 安装与测试

2017-07-26 17:32 155 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  scapy python