Skip to content

Instantly share code, notes, and snippets.

@ss23
Created July 20, 2020 05:37
Show Gist options
  • Save ss23/3d4653859387052646256edfba82d377 to your computer and use it in GitHub Desktop.
Save ss23/3d4653859387052646256edfba82d377 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Run this with "./crack-template.sh --show" to show cracked passwords
hashcat=/opt/hashcat/latest/hashcat.bin
# Dictionary attack (plain)
$hashcat -m 7500 ./hashes.txt /usr/share/wordlists/rockyou.txt
# Dictionary attack with rules (use base64.rule for best bang for buck -- dive.rule for exhaustive rules)
$hashcat -m 1000 ./hashes.txt --username /usr/share/wordlists/crackstation.txt -O -r /opt/hashcat/latest/rules/dive.rule $1
# Plain bruteforce (?b is every possible byte)
$hashcat -m 500 ./hashes.txt -a 3 -O --increment --increment-min 1 --increment-max 20 $1 ?b?b?b?b?b?b?b?b?b?b?b?b?b?b?b?b?b?b?b?b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment