So I was able to extract the SSID and Mac Address from the captured Beacon Frame stored in pkt.
I used scapy library's sniff function to capture the beacon frame.
I did this to capture the mentioned parameters as:
- pkt.addr2 #for Mac Address
- pkt.info #for SSID
Now I am stuck as I want to extract other parameters also. the list of parameters that I need are: Channel Bandwith
- Frequncy
- RSSI
- Type of Protection (WPA-psk/WPA2/etc.)
Please help me by either giving me the attributes to directly extract the above parameters or let me know the whole structure of the packet so that I can extract other parameters also if I need to in future.
Thanks.