Skip to content

Instantly share code, notes, and snippets.

@leonjza
Created August 22, 2014 08:06
Show Gist options
  • Save leonjza/dd5574bd48ba1d84dc0d to your computer and use it in GitHub Desktop.
Save leonjza/dd5574bd48ba1d84dc0d to your computer and use it in GitHub Desktop.
Hashcat results to user:pass
#!/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