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