Wednesday, August 15, 2012

AirCrack & Reaver in *buntu 12.04 the Easy Way


I've seen many directions for installing aircrack-ng on Ubuntu 12.04, and for the mose part they are all just cut-n-paste of each other involving editing text and such.. A bit of searching and I found a PPA run by a user named PHI-RHO making it muck easier.

If you are using Ubuntu 12.04 just copy the following two lines and add them to /etc/apt/sources.list
deb http://ppa.launchpad.net/pi-rho/security/ubuntu precise main
deb-src http://ppa.launchpad.net/pi-rho/security/ubuntu precise main
Drop to a terminal:
In Unity

In Gnome Classic
In Kubuntu
In Xubuntu
In Lubuntu
Thanks to http://www.psychocats.net for the above images... BTW: Check them out for lots of cool info!
sudo nano /etc/apt/sources.list
hit PGDN until you are at the end of the file
Hit CTL-W to save the file
hit CTL-X to exit
Now copy the following line and paste it into the terminal you opened or just open another
sudo apt-get update ; sudo apt-get install aircrack-ng
With any luck that should be it, you can test to make sure it is installed by typing airmon-ng at the terminal prompt. It won't run because we didn't tell it what to do, but if you see a help screen, your install worked.
Now for installing Reaver. Go back to a terminal and cut and paste hit enter and let it go.
sudo apt-get -y install libpcap-dev sqlite3 libsqlite3-dev libpcap0.8-dev ; cd ~;  wget http://reaver-wps.googlecode.com/files/reaver-1.4.tar.gz ; tar -xzvf ~/reaver-1.4.tar.gz; cd ~/reaver-1.4/src ; ./configure; make; sudo make install; cd ~ &&  rm -rf ~/reaver-1.4 ; rm reaver-1.4.tar.gz
Now test to make sure it installed by typing reaver at the the command line and hit enter, it should give you a help screen since you didn't tell it to do anything.
Now to test reaver on your AP (or one you have permission to test on)
If you know the name of your wireless interface just skip this part
type ifconfig at the command line and look wor something like wlan0 wlan1 ath0.. anything that starts with eth is a wired connection
Put the interface into monitor mode. This will give you another interface usually mon0, but your case might be different.
sudo airmon-ng start wlan0  #or whatever your interface name is
Find the mac address of your target AP
sudo airodump-ng mon0
wait until you see your AP name show up, hit CRL-C to exit airodump-ng
Now run reaver and susbstitute the mac address of your AP for  xx:xx:xx:xx:xx:xx
sudo reaver -a -i mon0 -b xx:xx:xx:xx:xx:xx -vv
Now just go about your work and check in about 10 hours.
Hopefully everything works well for you!




No comments: