所以我试图按照this guide找到亚马逊破折号按钮的mac地址。我在运行Python 2.6和scapy的Windows机器上。我非常确定我正确地关注了these directions如何在Windows上安装Scapy,所以我认为这不是问题。
我的问题是,每当我在第一个链接的第2步中运行代码来嗅探ARP探测器时,我收到此错误消息:
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "C:\ ... \scapy\arch\windows\__init__.py", line 523, in sniff.
r = prn(p)
File "<console>", line 3, in arp_display
File"C:\ ... \scapy\packet.py", line 789, in ___getitem___
raise IndexError("Layer [%s] not found" % lname)
IndexError: Layer [ARP] not found.
我对scapy不太熟悉,但看起来它没有正确判断数据包是否有ARP层?另外,当我开始scapy时,我收到一条错误消息,说明无法找到IPV6目的地的路由(这显然是正常的?)和一些警告,我没有安装可选的scapy功能,如Crypto Lib,gnuplot wrapper或PvX。虽然我不认为那些应该真的有所作为。
有什么建议吗?