Let's assume we now have the hash and have identified what type it is. In this recipe, we will see how to crack hashes with John the Ripper. John is fast and supports various cracking modes. It also has the ability to auto-detect the hash type.
Playing with John the Ripper
How to do it...
Let's perform the following steps:
- We can see the full features by using the -h command:
john –h
Once we run the preceding command, we get the following output:
- To crack the password, we use the following command:
john --format=raw-md5 --wordlist=/usr/share/wordlists/rockyou.txt /root/demo_hash.txt
- Once we run the preceding command, we will see that the password has been cracked successfully: