Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
tshark'n 802.11 on macos notes and cheatsheet

Prep:

Create a symlink to the AirPort command in Terminal:

ln -s /System/Library/PrivateFrameworks/Apple80211.framework/
Versions/Current/Resources/airport /Usr/bin/airport

# test utility
airport -I
airport -s

# disassociate

sudo airport -z

# set/verify channel

sudo airport --channel 36
sudo airport --channel

or

sudo airport -c36
sudo airport -c 

Basics:

tshark -v         # show version
tshark -D         # list interfaces
tshark -Ini en1   # basic catch all

Probes:

tshark -Ini en1 type mgt subtype probe-req

touch test.pcap
chmod o=rw test.pcap
sudo tshark -Ini wlan0 -w test.pcap type mgt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.