python - 运行scapy里的sr()时,一直报错,像下面那样。
ringa_lee
ringa_lee 2017-04-17 15:42:04
0
0
644

Traceback (most recent call last):
File "D:\Python27\lib\site-packages\scapy\arch\windows__init__.py", line 374, in sndrcv

pks.send(p)

File "D:\Python27\lib\site-packages\scapy\arch\pcapdnet.py", line 250, in send

ifs = dnet.eth(iff)

File "dnet.pyx", line 112, in dnet.eth.__init__ (./dnet.c:1764)
OSError: No error
INFO: --- Error sending packets
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "D:\Python27\lib\site-packages\scapy\sendrecv.py", line 317, in sr

a,b=sndrcv(s,x,*args,**kargs)

File "D:\Python27\lib\site-packages\scapy\arch\windows__init__.py", line 410, in sndrcv

h = r.hashret()

File "D:\Python27\lib\site-packages\scapy\layers\inet.py", line 371, in hashret

if ( (self.proto == socket.IPPROTO_ICMP)

AttributeError: 'NoneType' object has no attribute 'IPPROTO_ICMP'

ringa_lee
ringa_lee

ringa_lee

Antworte allen(0)
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage