|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
在折腾了很久一段时间之后,终于在python3上成功安装scapy了。但是在使用的时候出现如下报错:
=================== RESTART: C:/Users/H3C/Desktop/test.py ===================
WARNING: No route found for IPv6 destination :: (no default route?). This affects only IPv6
Begin emission:
Finished to send 1 packets.
Traceback (most recent call last):
File "C:/Users/H3C/Desktop/test.py", line 6, in <module>
p=sr(IP(dst="www.baidu.com",ttl=1))
File "C:\Users\H3C\AppData\Local\Programs\Python\Python36-32\lib\site-packages\scapy\sendrecv.py", line 327, in sr
a,b=sndrcv(s,x,*args,**kargs)
File "C:\Users\H3C\AppData\Local\Programs\Python\Python36-32\lib\site-packages\scapy\arch\windows\__init__.py", line 382, in sndrcv
os.write(1, b".")
OSError: [Errno 9] Bad file descriptor
源代码如下:
#coding=utf-8
from scapy.all import *
from scapy.error import Scapy_Exception
p=sr(IP(dst="www.baidu.com",ttl=1))
我的系统是windows10的系统,想问一下这个报错要如何解决呢? |
|