Linux Hashes

First grab the passwd and shadow file.

cat /etc/passwdcat /etc/shadow

We can crack the password using john the ripper like this:

# combine the passwd and shadow files to created unshadowed.txtunshadow passwd shadow > unshadowed.txt​# Use John the Ripper to crack the passwordjohn --rules --wordlist=/usr/share/wordlists/rockyou.txt unshadowed.txt

Was this helpful?