Crack the Hash
This guide contains the answer and steps necessary to get to them for the Crack the Hash room.
Level 1
In this task we will start with some easier hashes which can be cracked with online tools such as crackstation. However, I used a combination of online and local tools.
- 48bb6e862e54f2a795ffc4e541caed4d
This looks like the classic MD5 hash. We can use multiple ways to identify the right hash. In this case I used 'hash-identifier' and the 'hashcat' auto detect function:
It is indeed MD5. This is mode 0 in hashcat.
Click for answer
easy
- CBFDAC6008F9CAB4083784CBD1874F76618D2A97
This time using 'hashcat' it seems this is a SHA-1 hash. This is mode 100 in hashcat.
Click for answer
password123
- 1C8BFE8F801D79745C4631D09FFF36C82AA37FC4CCE4FC946683D7B336B63032
Using hashcat auto detect we can find the hash type.
hashcat 1C8BFE8F801D79745C4631D09FFF36C82AA37FC4CCE4FC946683D7B336B63032 /usr/share/wordlists/rockyou.txt
Looks like a SHA-256 hash which is mode 1400 in hashcat.
hashcat -m 1400 1C8BFE8F801D79745C4631D09FFF36C82AA37FC4CCE4FC946683D7B336B63032 /usr/share/wordlists/rockyou.txt
Click for answer
letmein
- $2y$12$Dwt1BZj6pcyc3Dy1FWZ5ieeUznr71EeNkJkUlypTsgbX1H68wsRom
This time neither hashcat nor hash-identifier could give me any hints. So I looked at the hashcat example page.
It looks very similar to a bcrypt hash. Running this takes a long time, so I filtered the wordlist per the hint given.
Click for answer
bleh
- 279412f945939ba78ce0758d3fd83daa
This password appeared to be MD4. Unfortunately, however, neither hashcat nor john could crack it.
I therefore used crackstation.
Click for answer
Eternity22
Level 2
In this task we will face some more challenging hashes which could be solved with hashcat and the hashcat example page.
- Hash: F09EDCB1FCEFC6DFB23DC3505A882655FF77375ED8AA2D1C13F640FCCC2D0C85
Using hashcats auto detect mode, it looks to be a SHA-256 hash.
This would be mode 1400 in hashcat.
hashcat -m 1400 F09EDCB1FCEFC6DFB23DC3505A882655FF77375ED8AA2D1C13F640FCCC2D0C85 /usr/share/wordlists/rockyou.txt
Click for answer
paule
- Hash: 1DFECA0C002AE40B8619ECF94819CC1B
This hash was a little trickier. I got the following suggestions.
I had to try multiple types. Eventually, NTLM seemed to do the trick. NTLM is mode 1000 in hashcat.
Click for answer
n63umy8lkf4i
- Hash: $6$aReallyHardSalt$6WKUTqzq.UQQmrm0p/T7MPpMbGNnzXPMAXi4bJMl9be.cfi3/qxIf.hsGpS41BqMhSrHVXgMpdjS6xeKZAs02.
Salt: aReallyHardSalt
This time I used the hashcat example page to find out which hash type this was. It was similar to SHA-512crypt which is mode 1400 in hashcat.
However, it would take a long time to crack, so I filtered the list again as per the hint.
Click for answer
waka99
- Hash: e5d8870e5bdd26602cab8dbe07a942c8669e56d6
Salt: tryhackme
The last hash was the most difficult and took some trail and error.
Hash-identifier didn't produce any correct suggestions.
Looking at the example page, multiple candidates were found and tried.
Eventually, it appeared to be a HMAC-SHA1 hash.
hashcat -m 160 e5d8870e5bdd26602cab8dbe07a942c8669e56d6:tryhackme /usr/share/wordlists/rockyou.txt --force
Click for answer
481616481616