Scapy脚本执行出现警告WARNING解决办法
2017-06-21 14:20
465 查看
安装完scapy,简单写了个脚本执行总是会警告一下:
警告:WARNING: No route found for IPv6 destination :: (no default route?)
原因是用 from scapy.all import *的时候把ipv6相关的模块也导进去了,ipv6我们用不着,所以这警告不但不起作用,还很讨厌,我们打开scapy安装目录,打开all.py文件, 把与ipv6相关的几行注释掉就OK了.
scapy-2.6.1/scapy/all.py
[root@CentOS7 scapy]# python Python 2.7.5 (default, Nov 6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux2 Type "help", "copyright", "credits" or "license" for more information >>> from scapy.all import * WARNING: No route found for IPv6 destination :: (no default route?) >>>
警告:WARNING: No route found for IPv6 destination :: (no default route?)
原因是用 from scapy.all import *的时候把ipv6相关的模块也导进去了,ipv6我们用不着,所以这警告不但不起作用,还很讨厌,我们打开scapy安装目录,打开all.py文件, 把与ipv6相关的几行注释掉就OK了.
scapy-2.6.1/scapy/all.py
#if conf.ipv6_enabled: # from utils6 import * # from route6 import *
相关文章推荐
- python脚本执行Scapy出现IPv6警告WARNING解决办法
- Scapy脚本执行出现警告WARNING解决办法
- Scapy脚本执行出现警告WARNING解决…
- 解决ant编译中出现“ warning: 'includeantruntime' was not set,”警告的问题执行ant编译时,
- osql执行SQL脚本内容包含中文时出现乱码问题的解决办法
- 执行脚本出现bin/bash: bad interpreter: No such file or directory的解决办法
- osql执行SQL脚本内容包含中文时出现乱码问题的解决办法
- MDK中编译出现warning: function "xxx" declared implicitly 警告的解决办法
- 执行脚本出现bin/bash: bad interpreter: No such file or directory的解决办法
- shell脚本执行后出现错误提示" /bin/bash^M: bad interpreter: No such file or dire"的解决办法
- osql执行SQL脚本内容包含中文时出现乱码问题的解决办法
- 执行脚本出现bin/bash: bad interpreter: No such file or directory的解决办法
- 执行脚本出现bin/bash: bad interpreter: No such file or directory的解决办法
- 执行脚本出现bin/bash: bad interpreter: No such file or directory的解决办法
- 针对Ubuntu下运行可执行文件出现的error while loading shared libraries: xxx.so的解决办法
- 解决出现的警告:Warning - secret file /etc/ppp/pap-secrets has world and/or group access Warning - secret fi
- Loadrunner脚本中出现urs.asmx请求,解决办法
- 安装rpm文件时出现“warning: rpmts_HdrFromFdno”解决办法
- Powershell中禁止执行脚本解决办法
- 启动 sendmail 的时候出现make: warning: Clock skew detected. Your build may be incomplete.的解决办法