Last active
February 21, 2022 19:43
-
-
Save jesux/2a851ab195ab1e02c1ddab5e508aec77 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
toggles-lm-ntlm.rule can be found at https://github.com/DidierStevens/DidierStevensSuite/blob/master/toggles-lm-ntlm.rule