Created
June 10, 2020 15:48
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So this is a nifty way if you don't have hash-identifier installed to get the possible types of hashes with jtr.