How to encrypt password with wpa2?
#1
How do I encrypt a text password into a wpa2 hash. I thought I'd have a go at then decrypting using HC?
Reply
#2
(08-13-2019, 10:01 PM)Ar76 Wrote: How do I encrypt a text password into a wpa2 hash. I thought I'd have a go at then decrypting using HC?

Open your routers web interface, change it to have WPA2 TKIP/AES encryption and enter a password. Use tools to obtain the handshake of your own routerĀ and decrypt with hashcat using either PMKID or WPA2 hashmodes.
Reply
#3
Is there no way of doing it programmatically, c++ or whatever?
Reply
#4
you could use tools/test.pl for this

Code:
echo hashcatrocks | perl tools/test.pl passthrough 2500 | base64 -d > my.hccapx

btw: tools/test.pl is within the hashcat folder (source code), but you also need the perl modules in tools/test_modules/ so I recommend just cloning the hashcat git repo with
Code:
git clone https://github.com/hashcat/hashcat/
cd hashcat
Reply
#5
I assume passthrough is the password if not wheres the password to be encrypted?
Reply
#6
In philsmd example the string 'hashcatrocks' is the password. But please, stop using the word encrypt, it hurts.
Reply
#7
(08-14-2019, 11:00 AM)atom Wrote: In philsmd example the string 'hashcatrocks' is the password. But please, stop using the word encrypt, it hurts.

So what's the correct terminology?
Reply
#8
If I use this generator I get a raw psk key, how would I convert this to a .cap or .hccapx file so it can be understood by HC?

https://www.wireshark.org/tools/wpa-psk.html
Reply
#9
Take a look at hcxtools and hcxkeys. The suite contains various converters (except converters which are able to flood online hashcrackers with fake hashes). If you would like to learn how it (PBKDF2) works, just do a code walk through the sources:
https://github.com/ZerBea
Reply
#10
(08-14-2019, 06:33 PM)Ar76 Wrote:
(08-14-2019, 11:00 AM)atom Wrote: But please, stop using the word encrypt, it hurts.

So what's the correct terminology?


to hash
Reply