Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我怎样才能捕捉到它们?是否有任何模块/库可以做到这一点?
如果是的话,请发布一个例子
如果可以安装Wireshark,则可以从 Python 中以编程方式使用它。(这在 Windows 上尚不支持,根据bug 3500。)
您还拥有PyCap,这是一个似乎与平台无关的 Python 数据包捕获和注入库。
另一个数据包嗅探模块是Scapy,虽然我没有在 Windows 上工作,但幸运的是被弄错了。