Skip to content

Instantly share code, notes, and snippets.

@MartinTintin3
Last active February 17, 2022 03:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MartinTintin3/53829e5b177f10683f94091b2545cb35 to your computer and use it in GitHub Desktop.
Save MartinTintin3/53829e5b177f10683f94091b2545cb35 to your computer and use it in GitHub Desktop.
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/local/bin/airport
sudo airport -s
export BSSID=
networksetup -listallhardwareports
# example: en0
export INTERFACE=
sudo airport -z
sudo airport -cCHANNEL
sudo tcpdump "type mgt subtype beacon and ether src $BSSID" -I -c 1 -i $INTERFACE -w beacon.cap
sudo tcpdump "ether proto 0x888e and ether host $BSSID" -I -U -vvv -i en0 -w handshake.cap
tar -cvzf data.tar.gz handshake.cap beacon.cap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment