开发者社区> 问答> 正文

centos(linux)python-scapy模块中graph的使用?报错

环境: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....

展开
收起
爱吃鱼的程序员 2020-06-06 16:38:09 834 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB
                        <p>请问楼主的问题解决了么</p>
    
                    
    
                        <div class='ref'><h4>引用来自“Mr_JWYang”的评论</h4><p>请问楼主的问题解决了么</p>
    
    
                            我用的是Python3.6,暂时也没找到原因。不过,有人说是解析不到whois。以后解决了,请麻烦指点我一下。
    
    2020-06-06 16:38:24
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
From Python Scikit-Learn to Sc 立即下载
Data Pre-Processing in Python: 立即下载
双剑合璧-Python和大数据计算平台的结合 立即下载