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
im still trying to learn how to use terminal.. i cant seem to replace anything
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.
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.
Is this ONLY for Intel based MACS ? {No power PC}
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.
btw how do i open aircrack?
airmon-ng
Wireless tools not found
how i can unistall aircrack?
will aircrack be in our application folder?
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…
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?
@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.
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.
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$
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 ?
Hi We’re need to help how replace the Line,Thanks!