Skip to content

Instantly share code, notes, and snippets.

@gprudhomme-x
Forked from jesux/crack-lm-ntlm.sh
Created March 4, 2021 18:46
Show Gist options
  • Save gprudhomme-x/fe8343ab3162d17bb6e1df107703c46f to your computer and use it in GitHub Desktop.
Save gprudhomme-x/fe8343ab3162d17bb6e1df107703c46f to your computer and use it in GitHub Desktop.
Hashcat Script to Crack LM + NTLM hashes
#/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