Easily install Aircrack Mac OS X

If you are looking to install Aircrack on your Mac OS X installation just follow these simple instructions!

So simple and it actually works!

You will need Xcode installed to install this way, there will be no need for gmake or sqlite.

In a terminal windows run:

svn co http://trac.aircrack-ng.org/svn/trunk/ aircrack-ng

You will notice lots of files downloading, now we need to edit the common.mak file.

Browse to aircrack-ng folder by using the following command

cd aircrack-ng

Open up the file (I will be using nano to do this)

sudo nano common.mak

Enter your password to edit the file.

Look for this line:

CC = $(TOOL_PREFIX)gcc

and replace with:

CC = $(TOOL_PREFIX)gcc-4.0

Then find this line:

CFLAGS ?= -g -W -Wall -Werror -O3 -Wno-strict-aliasing

and replace with:

CFLAGS ?= -g -W -Wall -Werror -O3 -Wno-strict-aliasing -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk

Press ctrl o to write out the file, and then ctrl x to return back to terminal

Now type: The first line may error if you are already in the folder

cd aircrack-ng

make

sudo make install

All files should have been placed in /usr/local/bin/ directory

16 Responses to Easily install Aircrack Mac OS X

  1. ryan says:

    im still trying to learn how to use terminal.. i cant seem to replace anything

  2. Sebastian says:

    nicee! This method really works. Thank you.

    But now I have another problem, how can I used it? I’ve been reading about but nothing! When I use the ./aircrack-ng I’m in need of a .cap file, but I do not how to generate it. I’m also using Kismac to get the BSSID.

    If you can help me I will apreciate it.

    Thank you.

  3. Felix says:

    I’m a little confused here about a couple of things.

    1. Your instructions say to edit this line:
    CFLAGS ?= -g -W -Wall -Werror -O3 -Wno-strict-aliasing

    But in my common.mak file that line looks like this:
    CFLAGS ?= -g -W -Wall -Werror -O3

    So I added the rest of the line not knowing if what I was doing was correct. Is it?

    2. Then I wrote out the file and exited back to the terminal just like in your instructions, but when I type make and hit enter I get this error:
    -bash: make: command not found

    What am i doing wrong? I need help please.

  4. T.L. Scott says:

    Is this ONLY for Intel based MACS ? {No power PC}

  5. HELP says:

    help…i got up to the last part but when I type make and the sudo make install and hit enter I get this error:
    -bash: make: command not found
    What am i doing wrong? I need help please.

  6. HELP says:

    btw how do i open aircrack?

  7. w4n says:

    airmon-ng

    Wireless tools not found

  8. juan says:

    how i can unistall aircrack?

  9. terminal dude says:

    will aircrack be in our application folder?

  10. bob says:

    duob@wos:aircrack-ng-1.1$ uname -a
    Darwin wos 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64

    is there any way to fix the error bellow ?

    duob@wos:aircrack-ng-1.1$ make
    …. [output not shown]
    ld: library not found for -lcrt1.10.6.o
    collect2: ld returned 1 exit status
    make[1]: *** [aircrack-ng] Error 1
    make: *** [all] Error 2

    thank you for your help…

  11. bob says:

    duob@wos:aircrack-ng-1.1$ uname -a
    Darwin wos 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64

    duob@wos:aircrack-ng-1.1$ make
    …. [output not shown]
    ld: library not found for -lcrt1.10.6.o
    collect2: ld returned 1 exit status
    make[1]: *** [aircrack-ng] Error 1
    make: *** [all] Error 2

    can these be fixed?

  12. Ewen says:

    @felix You need to install the make command to your OS, do this by installing the additional developer tools on the OS disk that comes with your machine.

  13. Jacky Alcine says:

    Sweet; seems like it has a lot of success!
    I’ll see how this’ll work out.

    So just a run over, we need XCode.

  14. Kaukik01 says:

    MacBook-Air-dAudric:aircrack-ng Administrateur$ make
    make -C src all
    make -C osdep
    Building for Darwin
    gcc-4.0 -g -W -Wall -O3 -Wno-strict-aliasing -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -D_FILE_OFFSET_BITS=64 -D_REVISION=1978 -fPIC -I.. -c -o osdep.o osdep.c
    make[3]: gcc-4.0: No such file or directory
    make[3]: *** [osdep.o] Error 1
    make[2]: *** [all] Error 2
    make[1]: *** [osd] Error 2
    make: *** [all] Error 2
    MacBook-Air-dAudric:aircrack-ng Administrateur$ sudo make install
    Password:
    make -C src install
    make -C osdep
    Building for Darwin
    gcc-4.0 -g -W -Wall -O3 -Wno-strict-aliasing -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -D_FILE_OFFSET_BITS=64 -D_REVISION=1978 -fPIC -I.. -c -o osdep.o osdep.c
    make[3]: gcc-4.0: No such file or directory
    make[3]: *** [osdep.o] Error 1
    make[2]: *** [all] Error 2
    make[1]: *** [osd] Error 2
    make: *** [install] Error 2
    MacBook-Air-dAudric:aircrack-ng Administrateur$

  15. Kaukik01 says:

    MacBook-Air-dAudric:aircrack-ng Administrateur$ make
    make -C src all
    make -C osdep
    Building for Darwin
    gcc-4.0 -g -W -Wall -O3 -Wno-strict-aliasing -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -D_FILE_OFFSET_BITS=64 -D_REVISION=1978 -fPIC -I.. -c -o osdep.o osdep.c
    make[3]: gcc-4.0: No such file or directory
    make[3]: *** [osdep.o] Error 1
    make[2]: *** [all] Error 2
    make[1]: *** [osd] Error 2
    make: *** [all] Error 2
    MacBook-Air-dAudric:aircrack-ng Administrateur$ sudo make install
    Password:
    make -C src install
    make -C osdep
    Building for Darwin
    gcc-4.0 -g -W -Wall -O3 -Wno-strict-aliasing -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -D_FILE_OFFSET_BITS=64 -D_REVISION=1978 -fPIC -I.. -c -o osdep.o osdep.c
    make[3]: gcc-4.0: No such file or directory
    make[3]: *** [osdep.o] Error 1
    make[2]: *** [all] Error 2
    make[1]: *** [osd] Error 2
    make: *** [install] Error 2
    MacBook-Air-dAudric:aircrack-ng Administrateur$

    Can you tell what wrong i do ?

  16. WILL says:

    Hi We’re need to help how replace the Line,Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>