I am working on a scapy tool, where at some point I need to sniff a protocol-based packet and the destination ip address
I would like to learn about ways to use the filter option in the sniff () function. I tried using the format in the documentation, but most of the time it leads to such problems. The sciff function sniff filter does not work properly .
The one I used was
a=sniff(filter="host 172.16.18.69 and tcp port 80",prn = comp_pkt,count = 1)
Thanks in advance!
python linux networking ethernet scapy
Venkat ramana
source share