Last active
February 17, 2022 03:25
-
-
Save MartinTintin3/53829e5b177f10683f94091b2545cb35 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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