I can't seem to access Dot11. My setup is as follows:
- Kali Linux VM image
- Installed Scapy via: pip install git+https://github.com/secdev/scapy
- Pycharm running python 3.6
from scapy.all import * def packethandler(pkt): if pkt.haslayer(Dot11): print("hello") sniff(iface="wlan0mon",prn=packethandler,store=0,monitor=True)
The Dot11 is flagged and is not found. However, I am able to do the following:
sniff(iface="wlan0mon", prn=lambda p: p.summary(), store=0)
which in turn actually works and finds 802.11 packets. Can anyone help me out?