Scapy不捕获任何数据包

时间:2017-04-22 06:07:28

标签: python-2.7 scapy sniffing

我在python解释器中尝试以下命令,但它没有捕获任何数据包。

a = sniff(prn = prnp0f)

1 个答案:

答案 0 :(得分:0)

You probably should try add callback in sniff

sniff(iface == "mon0", prn == PacketHandler())

Where PacketHandler YOUR callback