Jun 11, 2011 06:41 AM
(This post was last modified: Feb 12, 2014 01:31 AM by Spagnum.)
Disclaimer
I know brute forcing is stupid, but I still see all these questions asking how to brutefore WPA and WAP2 passwords. So I decided to give it a try. From now on you can referee to this tread if someone wants proof of brute forcing beening stupid.🙂
What this guide will show you:
How to install and use Crunch to do a bruteforce attack against a WPA or WPA2 network.
What this guide will not show you:
How to capture a handshake file from a WPA og WPA2 network. There is plenty of other guides to show you how to do this. I recommend this one by Middle.
Getting and installing Crunch:
I'm using Backtrack 4 here, and it's pretty strate forward getting and installing Crunch.
(If you are one another distro like Ubuntu or something you might need to install the gcc compiler first)
Open the console and use the following commands one by one:
[img]http://i57.photobucket.com/albums/g207/Spagnum/e89cf38a.jpg[/img]
Crunch should now be installed and you should be in the Crunch3.0 directory.
We will need to tell Crunch the minimum and maximum characters in the password, we do this like this:
We also need to tell crunch which carters to try with. This is simply done by typing all the carters you want it to use:
Finally we need to pipe crunch to Aircrack-ng which will do the actually cracking. Aircrack-ng will need two things, path to the handshake file and the ESSID of the AP. My handshake file is called WPAtest.pcap and the name of the AP is “Wireless AP” (the quotes are only necessary if there is a space in the ESSID)
All together the command looks like this:
Aircrack-ng starts trying the all the possible password one by one:
[img]http://i57.photobucket.com/albums/g207/Spagnum/1-1.jpg[/img]
Notice that Aircrack-ng cracks around 620 k/s. Now lets take a look at how long that would take, accounting to Online Password Calculator.
[img]http://i57.photobucket.com/albums/g207/Spagnum/2-1.jpg[/img]
Okay so you see that bruteforce is stupid?🙂
Just for the fun of it, let’s help out crunch by limiting the charters to use as well as giving it the first part of the password. We need to tell crunch the first part of the password, like this:
All together the command looks like this:
[img]http://i57.photobucket.com/albums/g207/Spagnum/3-2.jpg[/img]
My first tutorial at HF, please forgive me for any grammar mistakes!
I know brute forcing is stupid, but I still see all these questions asking how to brutefore WPA and WAP2 passwords. So I decided to give it a try. From now on you can referee to this tread if someone wants proof of brute forcing beening stupid.🙂
What this guide will show you:
How to install and use Crunch to do a bruteforce attack against a WPA or WPA2 network.
What this guide will not show you:
How to capture a handshake file from a WPA og WPA2 network. There is plenty of other guides to show you how to do this. I recommend this one by Middle.
Getting and installing Crunch:
I'm using Backtrack 4 here, and it's pretty strate forward getting and installing Crunch.
(If you are one another distro like Ubuntu or something you might need to install the gcc compiler first)
Open the console and use the following commands one by one:
Code
wget http://sourceforge.net/projects/crunch-wordlist/files/crunch-wordlist/crunch-3.0.tgz/download
tar -zxvf crunch-3.0.tgz
cd crunch3.0/
gcc -c crunch.c
gcc -lm -lpthread -o crunch crunch.o[img]http://i57.photobucket.com/albums/g207/Spagnum/e89cf38a.jpg[/img]
Crunch should now be installed and you should be in the Crunch3.0 directory.
We will need to tell Crunch the minimum and maximum characters in the password, we do this like this:
Code
crunch <min-len> <max-len>We also need to tell crunch which carters to try with. This is simply done by typing all the carters you want it to use:
Code
abcdefghijklmnopqrstuvwyz1234567890Finally we need to pipe crunch to Aircrack-ng which will do the actually cracking. Aircrack-ng will need two things, path to the handshake file and the ESSID of the AP. My handshake file is called WPAtest.pcap and the name of the AP is “Wireless AP” (the quotes are only necessary if there is a space in the ESSID)
All together the command looks like this:
Code
./crunch 8 8 abcdefghijklmnopqrstuvwyz1234567890 | aircrack-ng /root/WPAtest.pcap -e "Wireless AP" -w -Aircrack-ng starts trying the all the possible password one by one:
[img]http://i57.photobucket.com/albums/g207/Spagnum/1-1.jpg[/img]
Notice that Aircrack-ng cracks around 620 k/s. Now lets take a look at how long that would take, accounting to Online Password Calculator.
[img]http://i57.photobucket.com/albums/g207/Spagnum/2-1.jpg[/img]
Okay so you see that bruteforce is stupid?🙂
Just for the fun of it, let’s help out crunch by limiting the charters to use as well as giving it the first part of the password. We need to tell crunch the first part of the password, like this:
Code
-t knownpassword@@@@All together the command looks like this:
Code
./crunch 8 8 1234 -t test@@@@ | aircrack-ng /root/WPAtest.pcap -e "Wireless AP" -w -[img]http://i57.photobucket.com/albums/g207/Spagnum/3-2.jpg[/img]
My first tutorial at HF, please forgive me for any grammar mistakes!

