How to install aircrack-ng suite to your Raspberry Pi.
Installing aircrack-ng suite (for airodump-ng, airbase-ng and so on) is really easy and pretty quick:
First we want to install libssl-dev or we will have some problems with aircrack-ng:
apt-get -y install libssl-dev
Now we can install aircrack-ng (We need working internet connection here):
wget http://download.aircrack-ng.org/aircrack-ng-1.2-beta1.tar.gz tar -zxvf aircrack-ng-1.2-beta1.tar.gz cd aircrack-ng-1.2-beta1 make make install
This will download aircrack-ng package from aircrack-ng.org site and extract it to a aircrack-ng-1.2-beta1 directory and then install it from there.
Now you probably want to update OUI thingy with command:
airodump-ng-oui-update
and then you need to install iw to get your wifi card to monitor mode:
apt-get -y install iw
after that command:
airmon-ng start wlan0
Should start wlan0 on monitor mode as mon0 and we can try airodump-ng:
airodump-ng mon0
And we should see some info about current wireless networks around us.
Very good article post. Really looking forward to read more. Much obliged!.
Update, for aircrack-ng-1.3
Read the INSTALL file to see what you need to apt install
then
sudo ./autogen.sh
sudo ./configure
sudo make
sudo make install
Install libssl1.0-dev and it compiles ok.
I’m new to the terminal the thing is when i enter make and make install i get this:
_________________________________________________________________________________________
pi@raspberrypi:~/aircrack-ng-1.2-beta1 $ make
make -C src all
make[1]: Entering directory ‘/home/pi/aircrack-ng-1.2-beta1/src’
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Wno-unused-but-set-variable -Wno-array-bounds -Iinclude -c -o aircrack-ng.o aircrack-ng.c
In file included from aircrack-ng.c:65:0:
crypto.h:50:26: fatal error: openssl/hmac.h: No such file or directory
#include
^
compilation terminated.
: recipe for target ‘aircrack-ng.o’ failed
make[1]: *** [aircrack-ng.o] Error 1
make[1]: Leaving directory ‘/home/pi/aircrack-ng-1.2-beta1/src’
Makefile:18: recipe for target ‘all’ failed
make: *** [all] Error 2
pi@raspberrypi:~/aircrack-ng-1.2-beta1 $ make install
make -C src all
make[1]: Entering directory ‘/home/pi/aircrack-ng-1.2-beta1/src’
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Wno-unused-but-set-variable -Wno-array-bounds -Iinclude -c -o aircrack-ng.o aircrack-ng.c
In file included from aircrack-ng.c:65:0:
crypto.h:50:26: fatal error: openssl/hmac.h: No such file or directory
#include
^
compilation terminated.
: recipe for target ‘aircrack-ng.o’ failed
make[1]: *** [aircrack-ng.o] Error 1
make[1]: Leaving directory ‘/home/pi/aircrack-ng-1.2-beta1/src’
Makefile:18: recipe for target ‘all’ failed
make: *** [all] Error 2
_________________________________________________________________________________________
i know there is something wrong but i don’t know what it is anybody pls help
Use Sudo in front of oui-dump command it solves
When running airmon-ng start wlan0 I get the following error:
brcmfmac – [phy0]mon0: ERROR while getting interface flags
I’ve tried everything and can’t figure out what’s going on.
At first I wasn’t logged in as root and it didn’t work, but you have to use
sudo
!Most of the above errors are causing by missing libraries.
Best command to run is: sudo apt-get -y install libssl-dev libnl-3-dev libnl-genl-3-dev ethtool in place of apt-get -y install libssl-dev
this will install all required files
Hello, i am upto the tar command but it returns
tar(child): aircrack-ng-1.2-beta1: cannot open: No such file or directory.
tar(child): Error is not recoverable: exiting now
tar: child returned status 2
tar: child Error is not recoverable: exiting now
Please help!
mon0 wont work, i couldnt get airodump to work with wlan0 cause its not in monitor mode but i tested wlan0 with netsniff-ng and it works, but i also tested mon0 with netsniff-ng and theres nothing going through it. no errors just no traffic. im pretty good with aircrack and linux but i dont know how to get airodump to work with a non monitor interface of get mon0 to work. please help!!
This article is awesome , helped me a lot.
after the
sudo make
command in ~/aircrack-ng-1.2-rc3 $, the process stops with:
/usr/bin/ld: cannot find -lnl-genl-3
collect2: error: ld returned 1 exit status
Makefile:190: recipe for target ‘wpaclean’ failed
make[1]: *** [wpaclean] Error 1
make[1]: Leaving directory ‘/home/pi/aircrack-ng-1.2-rc3/src’
Makefile:25: recipe for target ‘all’ failed
make: *** [all] Error 2
Any suggestions?
Worked perfectly. Now what? It’s capturing packets and recognizing other waps. What’s next?
works perfect on 2015 thank you very much!
hello i get an error ***wireless tools not found*** when running ***airmon-ng wlan0*** command i checked it is the right interface and follow all instructions, all process went well.
I, too, when trying to execute the make command was receiving the following:
“common.mak:85: *** Cannot find development files for any supported version of libnl. install either libnl1 or libnl3.. Stop.”
I had imaged my Pi with an lean version of Kali Linux, and was banging my head on my desk trying to get the right libnl package but none seemed to work. I checked the common.mak file and saw that to determine versions it uses pkg-config, and lo and behold, this was not a package installed on my version of Kali. As soon as I installed that package, I was good to go (I had already installed libnl-genl-3-dev libnl-3-dev). Probably a super newbie problem that only applies to me, but maybe it’ll help someone out there.
ohh btw it just finish but airmon-ng command not found…….. and i have install aircrack…. and i can hack WEP… can you message me how?? on Facebook.. cause I have school and i can’t really use my laptop during schooldays
hi I’m stuck at Downloading IEEE OUI file… how many mb it is? and I’m in the philippines our connection are slow here….
@john “sudo airodump-ng wlan0mon” works well on my Pi2
Works fine on RaspPi B
RasPi 2 gives error message
Interface mon0:
ioctl(SIGCGIFINDEX) failed: No such device
Kept getting error messages in the “make install” process… All I needed to do was run it as damn superuser! “sudo make install”. Wish the error message has said permission denied or something.
Thanks for the Tut!
beta 3 is available and I have done make, make install, and it works perfectly… BUT I am trying to install another program that has aircrack-ng as a dependency, but it complains that it is unmet. When using dpkg -l, aircrack-ng is not listed! How the heck can I fix that?
Further to my previous comment, please ammend the last line. Sorry, apologies, the correct libraries to install are as follows..
sudo apt-get install libnl-genl-3-dev libnl-3-dev
Right on, Dave
“sudo apt-get install libnl-genl-3-dev libnl-3-dev” was exactly what I needed.
..everytime i create a new vm maching or live usb and get this error.. i goole the error go below youtube video, click the link to this page and search for your comment.. foe the past…….
Hi!
Great article, thanks for the write-up. Just for the notes and for others…
I got the following error when trying to ‘make’
common.mak:85: *** Cannot find development files for any supported version of libnl. install either libnl1 or libnl3.. Stop.
I installed libnl1, but that didn’t work. libnl3 worked fine. Here’s the command.
$apt-get install -y libnl-3-dev
Cheers & good luck!
After running the command “airmon-ng start wlan0” it says that it found processes that could cause trouble. After killing them it gives me an empty list. It won’t run the “airodump-ng mon0” command. It says:
Interface mon0:
ioctl (SIOCGIFINDEX) failed: No such device
I’m pretty sure that the wlan adapter was listed as wlan0.
I needed to install libnl3-dev to get it to work.
apt-get install -y libnl-3-dev
I needed this too! Apparently libnl3-dev isn’t the package, as I found out here. It’s libnl-3-dev. Thanks for helping!
So I installed aircrack-ng for the third time (the first two times I didn’t have an issue) and now I am having issues. After a fresh install of Raspbain on an SD card I did a sudo apt-get update and then followed the installation instructions from this source. I am having the same issue as above, I cannot start “airodump-oui-update” “-bash: airodump-ng-oui-update: command not found”
I cannot complete a “sudo airmon-ng start wlan0” either “command not found”
I could really use some help with this.
Did you do all that logged in as a root user? You can check that with command whoami and if that says that you are user pi then log in as a root and try again.
Great solution, everything works fine on Raspbian.
Good job :-)
Best Regards
I received the error: “airmon-ng: command not found” after make install. I then noticed I was in the src/ directory and not the root of the extracted archive. Check that you are compiling from the correct directory. It fixed my airmon-ng problem.
Sounds like that your aircrack-ng suite is not installed correctly. You should probably try that again and see if that helps.
Check do you see any errors when you are installing it.
pi@raspberrypi ~/aircrack-ng-1.2-beta1 $ airodump-ng-oui-update
-bash: airodump-ng-oui-update: command not found
pi@raspberrypi ~/aircrack-ng-1.2-beta1 $ airmon-ng start wlan0
-bash: airmon-ng: command not found
Of course I am a total noob, but i followed steps as best as I could.
Any help? :)
Did you install aircrack OK before testing those?
I had issues when first running after doing make install do a airodump-ng-oui-update
I spent hours trying to get it off stuck channel.
Worked for me but it was stuck on channel 1. I had to killall wpa_cli wpa_supplicant ifplugd. Then it scanned channels fine.
Thank you about that tip =) I actually have kill command for wpa_cli,wpa_supplicant on my other script =)
no, it appears to compile just fine, however, no airmon-ng to be found
If you give command airmon-ng start wlan0 (Change last part if your wireless interfaces is not wlan0) what happens?
I also can’t seem to get airmon-ng to compile, it seems to compile and recognize the rest of the package, but not that darn airmon…
Can you still download all packages and files ok but you get error when trying to compile? Do you get any kind of error messages?
It doesn’t work for me. I can’t get the airmon-ng start wlan0 command to work.
You have wlan0? Check what is your wireless network interfaces “name” and try airmon-ng start with that.