Created
August 22, 2014 08:06
-
-
Save leonjza/dd5574bd48ba1d84dc0d to your computer and use it in GitHub Desktop.
Hashcat results to user:pass
This file contains 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 | |
# A, maybe-I-cant-read-docs script to resolve cracked NTLM | |
# hashes back to username. | |
# usage - ./resolvehash.sh hashdump cracked | |
while read LINE | |
do | |
# set the hash and password | |
HASH=$(echo "$LINE" | cut -d: -f1) | |
PASS=$(echo "$LINE" | cut -d: -f2) | |
USER=$(grep $HASH $1 | cut -d: -f1) | |
echo "$USER:$PASS" | |
done < $2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment