apt-get install john mkdir john cd john
tail -4 /etc/shadow > passwd.txt
john passwd.txt #this cracks password john --show passwd.txt #this shows the cracked passwords
john --format=md5crypt passwd.txt #this cracks password john --show passwd.txt #this shows the cracked passwords
mike1:mike1:17343:0:99999:7::: mike2:mike2:17343:0:99999:7::: 2 password hashes cracked, 2 left