我最近开始探索 Scapy。确实是一个很棒的工具!
我有一个问题...当我使用 Wireshark 监控我的网卡并使用标准 PING 安装从系统命令提示符执行常规 ping 操作时,wireshark 会弹出“Ping 请求”,然后显示“Ping 回复”指示它已发送一个答复。但是当我在 Scapy 中手动执行此操作时,它没有发送任何回复。这是怎么回事?我花了很多时间试图解决这个问题,所以我真的希望有人能够阐明我的这个问题...
这是我使用的代码:
>>> from scapy.all import IP, ICMP, send
>>> IP = IP(dst="127.0.0.1")
>>> Ping = ICMP()
>>> send(IP/Ping)
数据包已成功发送,Wireshark 显示收到了 Ping 请求,但不是那个它已发回回复。
I recently began exploring Scapy. A wonderful tool indeed!
I have a problem... When I monitor my network card using Wireshark and I do a regular ping from the systems command prompt with the standard PING installation, wireshark pops up with "Ping request" and then "Ping reply" indication that it sent a reply. But when i do it manually in Scapy, it sends no reply back.. How can this be? I spent alot of time trying to figure this out so i really hope someone can shed some light on this issue of mine...
Here is the code i used:
>>> from scapy.all import IP, ICMP, send
>>> IP = IP(dst="127.0.0.1")
>>> Ping = ICMP()
>>> send(IP/Ping)
The packet is sent successfully and Wireshark shows a Ping request received, but not that it has sent a reply back.
发布评论
评论(2)
这是常见问题解答项 :
This is an FAQ item:
试试这个
你没有正确存储回复
Try this
Your not storing the reply properly