我按照在win64上安装Scapy for Python2.7(Running Scapy on Windows with Python 2.7)的说明,但是sniff()函数不起作用并且突然结束。我应该采取哪些措施来解决这个问题?
答案 0 :(得分:0)
这些说明非常过时。你应该删除pycap和dnet。他们很老了......
最新的dev scapy版本(https://github.com/secdev/scapy)更容易安装。请遵循最新的文档,非常明确:
http://scapy.readthedocs.io/en/latest/installation.html#windows
答案 1 :(得分:0)
查找设备名称的最简单方法:
IFACES.show() #--> will give you a table of your devices with an index
mydev = IFACES.dev_from_index(X) #---> where X is the index of your desired interface
然后在船首嗅一闻,如下所示:
sniff(iface=dev,prn=lambda x:x.summary)