#/bin/bash echo "enter location of passwd file" read passwdfile echo "enter location of shadow file" read shadowfile echo "enter output file" read outputfile unshadow $passwdfile $shadowfile > /tmp/crackedpasswd.db john /tmp/crackedpasswd.db --format=sha512crypt john -show /tmp/crackedpasswd.db > $outputfile rm -f /tmp/crackedpasswd.db exit 1