# In Kali
hash-identifier
# Copy /etc/shadow and /etc/passwd into text files and combine them
unshadow passwd.txt shadow.txt > passwords.txt
# Crack with john the ripper
john --wordlist=/usr/share/wordlists/rockyou.txt --rules passwords.txt
# Check if cracked once session finishes
john --show passwords.txt
# Save your password in a file called temp
john temp --wordlist=/usr/share/wordlists/rockyou.txt --fork=4
# Get password hash for zip file
zip2john filename.zip > hash.txt
john --format=zip hash.txt
# Get password hash for rar file
rar2john filename.rar > hash.txt
john --format=rar hash.txt
john /etc/shadow
# Copy just the hashes from /etc/shadow into a file called hashes.txt
hashcat -m 500 -a 3 /usr/share/wordlists/rockyou.txt hashes.txt