Your problem is a bug in version 2.3.3 scapy (loaded 18/10/16). This will probably be fixed in the next version, meanwhile you can install the previous version by doing
pip install scapy==2.3.2
I checked in commits and this error was not in this version. However, I did not test it so that it could contain other errors (since 2.3.3 must have changed something for the better, at least I hope so), so if you should use 2.3.3, for some reason you can fix it like this:
from scapy.arch.windows import compatibility
from scapy.all import log_runtime, MTU, ETH_P_ALL, PcapTimeoutElapsed, plist
compatibility.log_runtime = log_runtime
compatibility.MTU = MTU
compatibility.PcapTimeoutElapsed = PcapTimeoutElapsed
compatibility.ETH_P_ALL = ETH_P_ALL
compatibility.plist = plist
compatibility.sniff(1)
source
share