Do not receive echo-reply from ping request with scapy

断了今生、忘了曾经 提交于 2019-12-08 07:17:16

问题


I use scapy and try to make a ping and receive the reply.

my_ping = Ether() / IP(dst='8.8.8.8') / ICMP() rep,no_rep = srp(my_ping)

The problem is that I don't receive any answer. The ping 8.8.8.8 works well using the terminal. I've this problem on my Mac (OS X 10.10 Yosemite) and also on the Ubuntu VM installed on my Mac. However, those commands work on my AWS Ubuntu machine.

If somebody has a clue... feel free to answer

来源:https://stackoverflow.com/questions/27167069/do-not-receive-echo-reply-from-ping-request-with-scapy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!