hashid <hash value>
hash-identifier
haiti 'hash' # Gives hashcat ID as well
Hashcat
hashcat -m <ID> hash /usr/share/wordlists/rockyou.txt --force # Google hash ID
hashcat -a 0 <hash.txt> /usr/share/wordlists/rockyou.txt —show
John the Ripper (Windows hashes)
john --wordlist=/usr/share/wordlists/rockyou.txt hash.txt --format=NT
john --rules --wordlist=/usr/share/wordlists/rockyou.txt hash.txt --format=NT # Rules
John the Ripper (Linux hashes)
-> First combine shadow and password and use a tool called unshadow.
unshadow passwd-file.txt shadow-file.txt > unshadowed.txt
john --rules --wordlist=/usr/share/wordlists/rockyou.txt unshadowed.txt
PDF or ZIP
# Cracking the hash of PDF
pdf2john test.pdf > hash
OR
zip2john test.zip > hash
# Cracking the hash that was found
john --wordlist=/usr/share/wordlists/rockyou.txt hash