In this tutorial we will show you how to create a list of MD5 password hashes and crack them using hashcat.
We will perform a dictionary attack using the rockyou wordlist on a Kali Linux box.
Creating a list of MD5 hashes to crack
Password Cracking with Hashcat. Hello Friends, Today I’m going to explain the Hashcat password Cracking Tool, As I learn from my cybersecurity classes and reading some blogs doing practices and the help of infosec boy’s able to explain it, so obviously the credits goes to Armour Infosec. Hashstack ™ is the ultimate password cracking software stack, designed and developed by the world's top password crackers for true password cracking professionals, and exclusively available on Terahash ® turn-key password cracking appliances. Optimized Workflow. Modeled after Team Hashcat's own workflows, Hashstack ™ works the way you work and is designed with team collaboration at the.
Hashes.com is a hash lookup service. This allows you to input an MD5, SHA-1, Vbulletin, Invision Power Board, MyBB, Bcrypt, Wordpress, SHA-256, SHA-512, MYSQL5 etc hash and search for its corresponding plaintext ('found') in our database of already-cracked hashes. It's like having your own massive hash-cracking cluster - but with immediate results! Hashcat is a very versatile password cracking tool and has been proven to be the fastest password cracker that utilizes a GPU. My setup: CPU: https://amzn.to. Hashes.com is a hash lookup service. This allows you to input an MD5, SHA-1, Vbulletin, Invision Power Board, MyBB, Bcrypt, Wordpress, SHA-256, SHA-512, MYSQL5 etc hash and search for its corresponding plaintext ('found') in our database of already-cracked hashes.
To create a list of MD5 hashes, we can use of md5sum command.
The full command we want to use is:
Here we are piping a password to md5sum so a hash is produced. Unnecessary output is then stripped and it is stored in a file in a file called 'hashes'.
'echo -n 'Password1' is used to print the phrase 'Password1'. The -n portion removes the new line added to the end of 'Password1'. This is important as we don't want the new line characters to be hashed with our password.
The part “tr –d ‘ -‘ “ removes any characters that are a space or hyphen from the output like so:
Before:
Hashcat Online Cracker
After:
For demonstration purposes, we'll create multiple MD5 hashes containing different strength passwords and output them to a file called hashes:
Once you have run these commands will look something like this:
If you already have a list of words then the following bash script can be used to automate the MD5 generation, reading each line in a file, then generating a file off the resulting hashes. Replace 'wordlist' with the file path of your word list.
If you do not have md5sum on your machine, you can copy and paste the hashes above and save it in a file called 'hashes'. If you want to hash different passwords than the ones above and you don't have md5sum installed, you can use MD5 generators online such as this one by Sunny Walker.
Running hashcat to Crack MD5 Hashes
Now we can start using hashcat with the rockyou wordlist to crack the MD5 hashes. The rockyou wordlist comes pre-installed with Kali. If you are not using Kali you can use another wordlist, or download it from here.
The command to start our dictionary attack on the hashes is:
Argument | Function |
-m 0 | Tells hashcat which mode to use. 0 is MD5. |
Hashes | Our file containing the our MD5 password hashes. |
/usr/share/wordlists/rockyou.txt | Points hashcat to the wordlist containing the passwords to hash and compare. |
When you run the command, you should get an output like below:
Towards the top of the output you can see the hashes that were cracked side-by-side with the plaintext password and hash.
From the output we can determine the following passwords we hashed were not in the rockyou wordlist:
Install Hashcat Windows
- GuessMe3
- S3CuReP455Word
- HighlyUnlik3lyToB3Cr4ck3d
Hashcat Windows 10
Unless told otherwise, any hash that hashcat cracks will be stored in a hashcat.pot file. This will be created in directory where you ran hashcat.
Hashcat Online Crackers
The contents of your 'hashcat.pot' file from this tutorial should look like the following:
Summary
This has been a basic tutorial on how to crack MD5 hashes using hashcat. We've MD5 hashed passwords and using hashcat, cracked five out of the total eight. The attack technique that we used within hashcat was a dictionary attack with the rockyou wordlist.