-
-
Save gprudhomme-x/fe8343ab3162d17bb6e1df107703c46f to your computer and use it in GitHub Desktop.
Hashcat Script to Crack LM + NTLM hashes
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 | |
session=ntlmscript | |
if [ -z "$1" ]; then | |
echo "No hashfile supplied" | |
exit | |
fi | |
hashfile=$1 | |
if [ ! -f $hashfile ]; then | |
echo "[ERROR] File not exists." | |
exit | |
fi | |
hashcat -O -w 3 --session=${session} -m 3000 ${hashfile} -a 3 -1 ?u?d?s ?1?1?1?1?1?1?1 -i | |
hashcat -O -w 3 --session=${session} -m 3000 ${hashfile} --show --outfile-format 4 | tee lm-out.txt | |
hashcat -O -w 3 --session=${session} -m 1000 ${hashfile} lm-out.txt -r rules/toggles-lm-ntlm.rule --hex-wordlist | |
hashcat -O -w 3 --session=${session} -m 1000 ${hashfile} --show --username --outfile-format 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment