Aircrack-NG is an 802.11 WEP and WPA/WPA2-PSK keys cracking program that can recover keys once enough data packets have been captured. It can be used for auditing wireless networks.
NOTE: Before continuing, make sure NOT to be active in Synaptic the Repositories "Proposed" and "Backports":
sudo dpkg --configure -a && sudo apt-get install -f && sudo apt-get update
Copy
sudo apt-get install linux-headers-$(uname -r) build-essential make patch subversion openssl libssl-dev zlib1g zlib1g-dev libssh2-1-dev libnl1 libnl-dev gettext autoconf tcl8.5 libpcap0.8 libpcap0.8-dev python-scapy python-dev cracklib-runtime macchanger-gtk tshark ethtool
sudo apt-get install iw
sudo mkdir /usr/src/drivers && cd /usr/src/drivers/
Copy
sudo wget http://kernel.org/pub/software/network/iw/iw-3.11.tar.bz2 -O - | sudo tar -jxv
Copy
cd iw*
Copy
sudo make && sudo make install
If installed from Ubuntu repositories through "Synaptic" package manager, use this procedure:
sudo apt-get remove --purge aircrack-ng
If however you have installed aircrack-ng-1.1.tar.gz package or compiled Aircrack-NG from source code (SVN version), also use this procedure for future updates:
cd ~/aircrack-ng;sudo make uninstall && sudo make clean
Copy
rm -rf ~/aircrack-ng
sudo apt-get install sqlite3 libsqlite3-dev
sudo mkdir /usr/src/drivers && cd /usr/src/drivers/
Copy
sudo wget http://www.sqlite.org/sqlite-3.7.3.tar.gz -O - | sudo tar -xvz
Copy
cd sqlite*
Copy
sudo ./configure --disable-tcl
Copy
sudo make && sudo make install
sqlite3 --version
This download requires a bit of time, don't stop/exit from your terminal to completion.
cd ~/ && svn co http://svn.aircrack-ng.org/trunk/ aircrack-ng
Copy
cd ~/aircrack-ng && make sqlite=true
Copy
sudo make sqlite=true install
Install the entire suite of latest Aircrack-NG including experimental programs such us: Tkiptun-NG, Wesside-NG, Besside-NG, Easside-NG/Buddy-ng.
And also download external scripts such us: Airdrop-NG, Airgraph-NG, Airoscript-NG, Versuck-NG.
NOTA:
In the last month, experimental programs are frequently updated to be improved.
So I suggest to install this working release and installable with the usual method, pending the final changes.
rm -rf ~/aircrack-ng/scripts/airdrop-ng ~/aircrack-ng/scripts/airgraph-ng ~/aircrack-ng/scripts/airoscript-ng && cd ~/aircrack-ng/scripts/
Copy
svn co -r 2048 http://svn.aircrack-ng.org/trunk/scripts/airdrop-ng/ airdrop-ng && svn co -r 2048 http://svn.aircrack-ng.org/trunk/scripts/airgraph-ng/ airgraph-ng && svn co -r 1000 http://svn.aircrack-ng.org/branch/airoscript-ng/ airoscript-ng
Copy
make sqlite=true unstable=true
Copy
sudo make sqlite=true unstable=true install
cd ~/aircrack-ng/scripts/airoscript-ng
Copy
sudo make
Airoscript-NG requires opening with the privileges of "root".
sudo airoscript-ng
- This tool creates an file image of network received with Airodump-NG
cd aircrack-ng/scripts/airgraph-ng
Copy
sudo make install
cd aircrack-ng/scripts/airgraph-ng && sudo make uninstall
Examples of the image file created using Airgraph-NG
requires installation of "python-dev" of your Python version installed
cd ~/aircrackng/scripts/airdrop-ng
Copy
sudo python install.py
cd ~/aircrackng/scripts/airdrop-ng
Copy
sudo airdropng -u
########################
#
Welcome to AirDrop-ng #
########################
Going to support/ to install new oui.txt...
Writing OUI file
Completed Successfully
sudo airodump-ng-oui-update
aircrack-ng --help | head -n 5
aircrack-ng -u
aircrack-ng -S
aircrack-ng -p Number_of_CPU
aircrack-ng -J Test-OCL Your_Captured_File.cap
sudo aireplay-ng -0 2 -a 00:16:XX:XX:XX:XX -c 00:46:XX:XX:XX:XX --ignore-negative-one mon0
sudo airodump-ng --ignore-negative-one mon0
Follow the same procedure as for Ubuntu without remove/uninstall Aircrack-NG, changing only the installation directory/path.
(correct directory --> "/pentest/wireless/")
cd /pentest/wireless
After the new implementation of SH1-SSE2 code, the velocity and number of K/s is greatly increased and improved.
During the WPA crack process (brute force or dictionary attack) the CPUs present and recognized by the program, now works always at 100%, but this also increases the temperature of processors.
I suggest to use the setting "ondemand", this in order to lower the CPU temperature and improve the autonomy of the battery, when used the Notebook, but if the temperatures reach or exceed 100 degrees Celsius, select the option "powersafe".
sudo dpkg-reconfigure gnome-applets
Select --> "YES" to question, for enable the permissions of "root".
And finally, add the icon of "cpufreq-selector" in the top panel of Ubuntu: --> Click on the new icon added, and you can select different modes for single CPU.
Personally, i suggest you the setting "Ondemand", both to lower temperatures, in order to improve the battery life when used with Notebook.
IMPORTANT NOTE:Centrino Duo processor, is designed to work with critical temperatures around 100 degrees Celsius.
Do not be alarmed if the work temperatures is 85/90°, but does not exceed for a long time.
In case, the increase was higher than these values, I suggest you take the icon of CPU frequency and changing the option to "On Demand" in "POWERSAVE", or setting the CPU clock fixed at 1 GHz.
Enjoy, Jano
Written: 23/Gen/2009
For support or additional documentations refer to the Official Website of Aircrack-NG