Sniffing packets of communication with specific domain - Scapy

左心房为你撑大大i 提交于 2019-12-11 11:12:02

问题


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

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