环境:centos 7.3 python:3.6
from scapy.all import traceroute
target = ["114.114.114.114"]
dport = [80]
res,unans = traceroute(target,dport=dport,retry=-2,maxttl=5)
之后报错:
Traceback (most recent call last):
File "scapy_simple_1.py", line 14, in <module>
res.graph(target="> test.svg")
File "/usr/lib/python2.7/site-packages/scapy-2.4.0-py2.7.egg/scapy/layers/inet.py", line 1487, in graph
self.make_graph(ASres,padding)
File "/usr/lib/python2.7/site-packages/scapy-2.4.0-py2.7.egg/scapy/layers/inet.py", line 1396, in make_graph
ASNlist = ASres.resolve(*ASN_query_list)
File "/usr/lib/python2.7/site-packages/scapy-2.4.0-py2.7.egg/scapy/as_resolvers.py", line 128, in resolve
raise RuntimeError("Could not contact whois providers....")
RuntimeError: Could not contact whois providers....
<p>请问楼主的问题解决了么</p>
<div class='ref'><h4>引用来自“Mr_JWYang”的评论</h4><p>请问楼主的问题解决了么</p>
我用的是Python3.6,暂时也没找到原因。不过,有人说是解析不到whois。以后解决了,请麻烦指点我一下。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。