我有一个非常简单的python脚本,试图从nmap_fp
scapy
模块
from scapy.all import *
ip = 'just.an.ip.range'
print(nmap_fp(ip))
现在,当我跑步时,我得到以下错误:
Begin emission:
...Finished to send 8 packets.
*......
Received 10 packets, got 1 answers, remaining 7 packets
Traceback (most recent call last):
File "scapy_.py", line 7, in <module>
ans = nmap_fp(my_phone_ip_2)
File "/usr/lib/python2.7/dist-packages/scapy/modules/nmap.py", line 189, in nmap_fp
sigs = nmap_sig(target, oport, cport)
File "/usr/lib/python2.7/dist-packages/scapy/modules/nmap.py", line 144, in nmap_sig
ans += map(lambda x: (x,None), unans)
File "/usr/lib/python2.7/dist-packages/scapy/plist.py", line 89, in _add_
return self.__class__(self.res+other.res,
AttributeError: 'list' object has no attribute 'res'
修改
使用scapy Version: 2.3.3