Skip to content

Instantly share code, notes, and snippets.

@jesux
Last active February 21, 2022 19:43
Show Gist options
  • Save jesux/2a851ab195ab1e02c1ddab5e508aec77 to your computer and use it in GitHub Desktop.
Save jesux/2a851ab195ab1e02c1ddab5e508aec77 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
@jesux
Copy link
Author

jesux commented May 30, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment