Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Platform: MACOS

I'm using the command:

tcpdump -l -I -i en0 -e -s 0 'type mgt and subtype beacon' -w beacon.pcap -c 500 -vvv

..to capture wifi beacons from my MAC. I'm looking for a way to parse detailed info from the pcap file. The details that I need:



Tag: QBSS Load Element 802.11e CCA Version
Tag Number QBSS Load Element (11)
Tag length: 5
QBSS Version: 2
Station Count: 0 <—— Need this
Channel Utilization: 39 (15%). <—— Need this
Available Admission Capacity: 0 (0 us/s)



BUT, I need to do this for a specific BSSID.

To summarize my goal:
Need to capture beacons from my MAC. Read the capture file, filtering on the BSSID. Then somehow dump out the QBSS info.

Note: I will be using the solution in a shell script that will be exported to other MACs. Tshark is not an option.

What I have tried:

Attempted to dump the output of the capture to an ASCII file:



tcpdump -l -I -i en0 -e -s 0 'type mgt and subtype beacon' -w beacon.txt -c 500 -vvv -XX

tcpdump -r beacon.txt



..but this does not dump any of the details that I need.
Posted
Updated 5-May-21 9:50am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900