Scapy - Function 'sr1()' doesn't Return Response-Packet

て烟熏妆下的殇ゞ 提交于 2020-07-23 07:24:25

问题


Hello guys I have a problem with Scapy in Python 3 on Windows 10. I tried to send a Ping (ICMP) request to my default-gateway. This is the packet command:

p = IP(dst='10.0.0.138')/ICMP(type='echo-request')/Raw('Hello')

But after I write r = sr1(ping) the program is stuck on this output:

Begin emission:
Finished sending 1 packets.

I used Wireshark to check the packets and I saw the both packets: Request and response. What do I do wrong? This has been working for me for whole life until now.

Edit: I am using the Scapy-Shell right now.


回答1:


the problem is solved, I just needed to give networks privileges to the Python Interpreter. Thanks for all your help.



来源:https://stackoverflow.com/questions/62286343/scapy-function-sr1-doesnt-return-response-packet

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