Created
July 20, 2020 05:37
-
-
Save ss23/3d4653859387052646256edfba82d377 to your computer and use it in GitHub Desktop.
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 | |
# 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