Installing Aircrack-ng, Airoscript-ng, Airdrop-ng, Besside-ng on Ubuntu
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.
Update your OS and install these ESSENTIAL and recommended package
NOTE:
Before continuing, make sure NOT to be active in Synaptic the Repositories "Proposed" and "Backports"
Code:
sudo dpkg --configure -a && sudo apt-get install -f && sudo apt-get update
Code:
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
Install/update "IW"
(Wireless Configuration Utility for drivers based on Stacks-mac80211)
[Firt option] Install iw from Ubuntu repository through Synaptic
Code:
sudo apt-get install iw
[RECOMMENDED OPTION] Alternatively compiling the latest version available from IW source
Code:
sudo mkdir /usr/src/drivers && cd /usr/src/drivers/
sudo wget http://linuxwireless.org/download/iw/iw-3.4.tar.bz2 -O - | sudo tar -jxv
cd iw*
sudo make && sudo make install
If present, before you continue, uninstall Aircrack-ng and delete the old directory
If installed from Ubuntu repositories through "Synaptic" package manager, use this procedure:
Code:
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:
Code:
cd ~/aircrack-ng && sudo make uninstall
rm -rf ~/aircrack-ng
Installing Aircrack-ng with Airolib-ng support on Ubuntu
(requires SQlite3 installed)
[Firt option] Installation/upgrade SQlite3 from Ubuntu repository through Synaptic
Code:
sudo apt-get install sqlite3
[RECOMMENDED OPTION] Alternatively compiling the latest version available from Sqlite3 source
Code:
sudo mkdir /usr/src/drivers && cd /usr/src/drivers/
sudo wget http://www.sqlite.org/sqlite-3.7.3.tar.gz -O - | sudo tar -xvz
cd sqlite*
./configure --disable-tcl
sudo make && sudo make install
To check the version of sqlite3 installed
Code:
sqlite3 --version
Compiling Aircrack-ng + Airolib-ng without unstable programs
This takes time to download, do not stop/exit from your terminal to completion
Code:
cd ~/ && svn co http://trac.aircrack-ng.org/svn/trunk aircrack-ng
cd ~/aircrack-ng && make sqlite=true
sudo make sqlite=true install
Recommended installation
Install the entire Suite of Aircrack-ng
including programs in development such us: Tkiptun-ng, Wesside-ng, Besside-ng, Easside-ng/Buddy-ng.
NOTA:
In the last month, unstable programs and scripts are updated frequently to be improved.
So I suggest install this working release and installable with the usual method, pending the final changes.
Codice:
rm -rf ~/aircrack-ng/scripts/airdrop-ng ~/aircrack-ng/scripts/airgraph-ng ~/aircrack-ng/scripts/airoscript-ng && cd ~/aircrack-ng/scripts/
svn co -r 2084 http://trac.aircrack-ng.org/svn/trunk/scripts/airdrop-ng/ airdrop-ng && svn co -r 2084 http://trac.aircrack-ng.org/svn/trunk/scripts/airgraph-ng/ airgraph-ng && svn co -r 2084 http://trac.aircrack-ng.org/svn/trunk/scripts/scripts/airoscript-ng
make sqlite=true unstable=true
sudo make sqlite=true unstable=true install
Installing Airoscript-ng on Ubuntu
Build Airoscript-ng
Code:
cd ~/aircrack-ng/scripts/airoscript-ng
sudo make
NOTE:
Airoscript-ng requires opening with the privileges of "root".
Code:
sudo airoscript-ng
Installing Airgraph-ng on Ubuntu
This tool creates an file image of network received with Airodump-ng
Code:
cd aircrack-ng/scripts/airgraph-ng
sudo make install
For uninstall Airgraph-ng
Codice:
cd aircrack-ng/scripts/airgraph-ng
sudo make uninstall
Examples of the image file created using Airgraph-ng
Installing Airdrop-ng on Ubuntu
Building Airdrop-ng
NOTE FOR UBUNTU:
requires installation of "python-dev" of your Python version installed
Code:
cd ~/aircrackng/scripts/airdrop-ng
sudo python install.py
Update IEEE's OUI public database
Code:
cd ~/aircrackng/scripts/airdrop-ng
sudo airdropng -u
Useful Commands
For update IEEE's OUI public database (from release 1.0 rc4 r1616)
Code:
sudo airodump-ng-oui-update
To check the installed version of Aircrack-ng
Code:
aircrack-ng --help | head -n 5
To verify the correct installation and compatibility with new SSE2-SHA1 support
Code:
aircrack-ng -u
To run the WPA cracking speed test
Code:
aircrack-ng -S
To limit the CPU usage if you reach too high temperatures
(if you have a multiprocessor PC)
Code:
aircrack-ng -p number_CPU
To export the capture file/Handshake in oclHashcat format
Codice:
aircrack-ng -J Test-OCL Your_Captured_File.cap
Error Aircrack-ng fixed channel mon0: -1
To mitigate the Aireplay-ng issue --> "mon0 is on channel -1" without patching drivers using the option "--ignore-negative-one"
Code:
sudo aireplay-ng -0 2 -a 00:16:XX:XX:XX:XX -c 00:46:XX:XX:XX:XX --ignore-negative-one mon0
To mitigate the Airodump-ng issue --> "Monitor Mode: Fixed channel mon0: -1" without patching drivers using the option "--ignore-negative-one"
Code:
sudo airodump-ng --ignore-negative-one mon0
Update Aircrack-ng on BackTrak 5
For update Aircrack-ng SVN
Follow the same procedure as for Ubuntu without remove/uninstall Aircrack-ng, changing only the installation directory/path.
(correct directory --> "/pentest/wireless/")
Code:
cd /pentest/wireless
Click on the images attached below for enlarge
Configuring the CPU Frequency Scaling Monitor on Ununtu
(to optimize the CPU-clock)
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".
Reconfigure gnome-applets
Code:
sudo dpkg-reconfigure gnome-applets
Select --> "YES" to question, for enable the permissions of "root".
Click the image
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
Updated: 30/Mar/2012
Disclaimer