Python - scapy timeout option not working at all
I am having an issue with scapy's timeout option when sniffing packets. From what I understand, if you use something like this : test = sniff(filter="ip and icmp ", timeout = 2) print(test) your sniffing should time out after 2 seconds. However, this is 100% not working. From what I have gathered, one of the biggest problems as well, is if you set timeout = 5 and run the sniffer, then run a ping google.com in a parallel command prompt, it will capture the 4 packets not displayed until sniff is done then sit there indefinitely, until you send or receive 1 more icmp packet, just one, then it'll
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.