I am using Scapy and would like to filter based on the destination mac address.
However, I am getting packets displayed where the destination MAC address is not the address specified in the filter.
Here is a code snippit:
from scapy.all import *
sniff(iface="eth1", filter="ether dst host 91:e0:f0:01:00:00",
count=3, prn=lambda x: x.show())
I am running Scapy 2.2.0
Any ideas on the issue here?
Scapy requires numerous dependencies for many different systems. It is quiet possible that you don't have the required dependency for BPF filters to work.
http://www.secdev.org/projects/scapy/portability.html
Installing tcpdump solved the problem for me - now the filter on sniff works
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With