问题
What's the best way to sniff packets with the source or destination being a specific domain (for example "www.facebook.com").
And why won't this filter work?
def filter_facebook(packet):
return DNS in packet and "www.facebook.com" in packet
I'm new to Scapy so please don't kill me.
来源:https://stackoverflow.com/questions/36117913/sniffing-packets-of-communication-with-specific-domain-scapy