Skip to content

Instantly share code, notes, and snippets.

@araml
Created June 10, 2020 15:48
Show Gist options
  • Select an option

  • Save araml/340f3e592a4d29120c844a2ba4d7415a to your computer and use it in GitHub Desktop.

Select an option

Save araml/340f3e592a4d29120c844a2ba4d7415a to your computer and use it in GitHub Desktop.
Identify hash types with john the ripper (usage identify_hashes.sh file_with_hashes.txt)
#!/bin/bash
cat $1 | while read line
do
echo $line > hash_test.txt
timeout 4s sh -c "john hash_test.txt 2>&1 | grep 'Loaded\|hash type'"
done
rm "hash_test.txt"
@araml
Copy link
Author

araml commented Jan 22, 2021

So this is a nifty way if you don't have hash-identifier installed to get the possible types of hashes with jtr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment