简体   繁体   English

发送数据包时未找到默认路由(scapy)

[英]No default route found while sending the packets (scapy)

this is my error这是我的错误

I need help in this.No route found (scapy) error我在这方面需要帮助。没有找到路线(scapy)错误

The no route found message is a warning not an error. no route found消息是警告而不是错误。 This should not be a problem anyway since you're trying to send to 127.0.0.1.这应该不是问题,因为您正在尝试发送到 127.0.0.1。 The exception raised is a PermissionError .引发的异常是PermissionError That's because sending the packet requires the administrator privilege.那是因为发送数据包需要管理员权限。 On a unix like system you must be logged as root to do this.在类似 unix 的系统上,您必须以 root 身份登录才能执行此操作。 This is what I get on my Linux:这是我在 Linux 上得到的:

>>> send(IP(dst='127.0.0.1'), return_packets=True)
.
Sent 1 packets.
<PacketList: TCP:0 UDP:0 ICMP:0 Other:1>

(Don't post images. Post code instead. This makes it easier for SO contributors to help you.) (不要发布图片。而是发布代码。这让 SO 贡献者更容易帮助你。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM