Skip to content

Commit 29542db

Browse files
authored
Release v3.6 (#27)
* Added new rule stacking58.rule * Update VERSION.md * Added new processor 20-stacker.sh * Update hash-cracker.sh * Freed up -m * Added hardware monitoring parameter * Changed --hwmon-disable to HWMON variable param * Version * Update README.md * Update VERSION.md * VERSION.md
1 parent 1fdd262 commit 29542db

25 files changed

+203
-74
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,15 @@ Note: flags are optional, by default hash-cracker will run with optimized kernel
3737

3838
```plain
3939
-l / --no-loopback
40-
Disable loopback functionality
40+
Disable loopback functionality
4141
-n / --no-limit
42-
Disable the use of optimized kernels (un-limits password length)
42+
Disable the use of optimized kernels (un-limits password length)
43+
--hwmon-enable
44+
Enable hashcat to do hardware monitoring
4345
-m / --module-info
44-
Display information around modules/options
46+
Display information around modules/options
4547
-s [hash-name] / --search [hash-name]
46-
Will search local DB for hash module. E.g. '-s ntlm'
48+
Will search local DB for hash module. E.g. '-s ntlm'
4749
```
4850

4951
## Example Hashes

VERSION.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Version log
22

3+
## v3.6 - World Password Day
4+
5+
* New rule - [stacking58](https://github.com/hashcat/hashcat/blob/master/rules/stacking58.rule)
6+
* Added Stacker based on new rule
7+
* Hashcat hardware monitoring can be enabled from now upon
8+
39
## v3.5 - New hashes
410

511
* Updated supported hash types, based on hashcat `v6.2.6-420-gdc51a1a97`

hash-cracker.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright crypt0rr
33

44
function hash-cracker () {
5-
echo -e "hash-cracker v3.5 by crypt0rr (https://github.com/crypt0rr)\n"
5+
echo -e "hash-cracker v3.6 by crypt0rr (https://github.com/crypt0rr)\n"
66
echo -e "Mandatory modules:"
77
source scripts/mandatory-checks.sh
88
echo -e "\nOptional modules:"
@@ -29,7 +29,8 @@ function menu () {
2929
echo "16. Username iteration (only complete NTDS)"
3030
echo "17. Markov-chain passwords generator"
3131
echo "18. CeWL wordlist generator"
32-
echo -e "19. Digit remover\n"
32+
echo "19. Digit remover"
33+
echo -e "20. Stacker\n"
3334

3435
read -p "Please enter job number: " START
3536
if [[ "$START" = "0" ]] || [[ "$START" = "exit" ]]; then
@@ -72,6 +73,8 @@ function menu () {
7273
source scripts/processors/18-cewl.sh
7374
elif [[ $START = '19' ]]; then
7475
source scripts/processors/19-digitremover.sh
76+
elif [[ $START = '20' ]]; then
77+
source scripts/processors/20-stacker.sh
7578
else
7679
echo -e "Not valid, try again\n"; menu
7780
fi

scripts/parameters.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ if [ "$1" == '-h' ] || [ "$1" == '--help' ]; then
77
echo -e "\nFlags:"
88
echo -e "\t-l / --no-loopback\n\t\t Disable loopback functionality"
99
echo -e "\t-n / --no-limit\n\t\t Disable the use of optimized kernels (un-limits password length)"
10+
echo -e "\t--hwmon-enable\n\t\t Enable hashcat to do hardware monitoring"
1011
echo -e "\t-m / --module-info\n\t\t Display information around modules/options"
1112
echo -e "\t-s [hash-name] / --search [hash-name]\n\t\t Will search local DB for hash module. E.g. '-s ntlm'"
1213
exit 1
13-
elif [ "$1" == '-m' ] || [ "$1" == '--module-info' ]; then
14+
elif [ "$1" == '--module-info' ]; then
1415
echo "Information about the modules"
1516
echo "1. Brute force: A commonly known set of brute force tasks"
1617
echo "2. Light rules: A wordlist + a set of non-heavy rules is ran agains the hashlist"
@@ -31,6 +32,7 @@ elif [ "$1" == '-m' ] || [ "$1" == '--module-info' ]; then
3132
echo "17. Markov-chain password generator will generate new password sets based on Time-Space Tradeoff - https://www.cs.cornell.edu/~shmat/shmat_ccs05pwd.pdf"
3233
echo "18. Custom Word List Generator - CeWL - Spiders a given URL and creates a custom wordlist."
3334
echo "19. Will take the potfile, strip the digits from the cleartexts and perform a hybrid attack accordingly, thereafter some rules to finish the job."
35+
echo "20. Stacker"
3436
exit 1
3537
elif [ "$1" == '-s' ] || [ "$1" == '--search' ]; then
3638
TYPELIST="scripts/extensions/hashtypes"
@@ -43,6 +45,7 @@ while [[ "$#" -gt 0 ]]; do
4345
case $1 in
4446
-n|--no-limit) KERNEL=' ' ;;
4547
-l|--no-loopback) LOOPBACK=' ' ;;
48+
--hwmon-enable) HWMON=' ';;
4649
*) echo "Unknown parameter passed: $1"; exit 1 ;;
4750
esac
4851
shift
@@ -63,4 +66,11 @@ if [ "$LOOPBACK" = ' ' ]; then
6366
else
6467
echo "[+] Loopback enabled"
6568
LOOPBACK='--loopback'
69+
fi
70+
71+
if [ "$HWMON" = ' ' ]; then
72+
echo "[+] Hardware monitoring enabled"
73+
else
74+
echo "[-] Hardware monitoring disabled"
75+
HWMON='--hwmon-disable'
6676
fi

scripts/processors/1-bruteforce.sh

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,30 @@ source scripts/selectors/hashtype.sh
66
source scripts/selectors/hashlist.sh
77

88
# Logic
9-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?a?a?a?a?a' --increment
10-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?l?l?l?l?l?l?l?l' --increment
11-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?u?u?u?u?u?u?u?u' --increment
12-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?d?d?d?d?d?d?d?d?d?d' --increment
13-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?1?1?1?1?1?1?1' -1 '?l?d?u' --increment
14-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?1?1?1?1?2?2?2?2?a' -1 '?l?u' -2 '?d' --increment
15-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?1?1?1?1?2?2?2?2' -1 '?d' -2 '?l?u' --increment
16-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?1?1?1?1?1?1?d?d' -1 '?l?u' -2 '?d' --increment
17-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?l?l?l?l?l?d?d?d?d' --increment
18-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?u?u?lul?u?d?d?d?d' --increment
19-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?l?l?l?l?l?d?d?d?d' --increment
20-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?u?u?u?u?u?d?d?d?d' --increment
21-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?l?l?l?l?l?l?d?d?d' --increment
22-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?u?u?u?u?u?u?d?d?d' --increment
23-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?d?d?d?d?d?l?l?l?l' --increment
24-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?d?d?d?d?d?u?u?u?u' --increment
25-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?l?l?d?d?d?d?d?d?d' --increment
26-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?u?u?d?d?d?d?d?d?d' --increment
27-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?l?l?d?d?d?d?l?l' --increment
28-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?u?u?d?d?d?d?u?u' --increment
29-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?l?d?d?l?d?d?l?d?d' --increment
30-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?u?d?d?u?d?d?u?d?d' --increment
31-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?d?d?d?d?d?d?d?d?l?l' --increment
32-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?d?d?d?d?d?d?d?d?u?u' --increment
33-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?d?d?l?d?d?l?d?d?l' --increment
34-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?d?d?u?d?d?u?d?d?u' --increment
9+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?a?a?a?a?a' --increment
10+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?l?l?l?l?l?l?l?l' --increment
11+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?u?u?u?u?u?u?u?u' --increment
12+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?d?d?d?d?d?d?d?d?d?d' --increment
13+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?1?1?1?1?1?1?1' -1 '?l?d?u' --increment
14+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?1?1?1?1?2?2?2?2?a' -1 '?l?u' -2 '?d' --increment
15+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?1?1?1?1?2?2?2?2' -1 '?d' -2 '?l?u' --increment
16+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?1?1?1?1?1?1?d?d' -1 '?l?u' -2 '?d' --increment
17+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?l?l?l?l?l?d?d?d?d' --increment
18+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?u?u?lul?u?d?d?d?d' --increment
19+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?l?l?l?l?l?d?d?d?d' --increment
20+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?u?u?u?u?u?d?d?d?d' --increment
21+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?l?l?l?l?l?l?d?d?d' --increment
22+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?u?u?u?u?u?u?d?d?d' --increment
23+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?d?d?d?d?d?l?l?l?l' --increment
24+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?d?d?d?d?d?u?u?u?u' --increment
25+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?l?l?d?d?d?d?d?d?d' --increment
26+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?u?u?d?d?d?d?d?d?d' --increment
27+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?l?l?d?d?d?d?l?l' --increment
28+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?u?u?d?d?d?d?u?u' --increment
29+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?l?d?d?l?d?d?l?d?d' --increment
30+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?u?d?d?u?d?d?u?d?d' --increment
31+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?d?d?d?d?d?d?d?d?l?l' --increment
32+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?d?d?d?d?d?d?d?d?u?u' --increment
33+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?d?d?l?d?d?l?d?d?l' --increment
34+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a3 '?d?d?u?d?d?u?d?d?u' --increment
3535
echo -e "\nmBrute force processing done\n"

scripts/processors/10-prefixsuffix.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ tmp4=$(mktemp /tmp/hash-cracker-tmp.XXXX)
2222
# Logic
2323
cat $POTFILE | awk -F: '{print $NF}' | tee $tmp &>/dev/null
2424
cat $tmp | awk -F: '{print $NF}' | sort | tee $tmp2 &>/dev/null && ./scripts/extensions/common-substr -n -p -f $tmp2 > $tmp3 && ./scripts/extensions/common-substr -n -s -f $tmp2 > $tmp4 && rm $tmp2 $tmp
25-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a1 $tmp3 $tmp4
26-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a1 $tmp4 $tmp3
25+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a1 $tmp3 $tmp4
26+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a1 $tmp4 $tmp3
2727
rm $tmp3 $tmp4; echo -e "\nPrefix suffix processing done\n"

scripts/processors/11-commonsubstring.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ tmp4=$(mktemp /tmp/hash-cracker-tmp.XXXX)
2222
# Logic
2323
cat $POTFILE | awk -F: '{print $NF}' | tee $tmp &>/dev/null > $tmp2; rm $tmp
2424
cat $tmp2 | awk -F: '{print $NF}' | sort | tee $tmp3 &>/dev/null && ./scripts/extensions/common-substr -n -f $tmp3 > $tmp4 && rm $tmp3 $tmp2
25-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a1 $tmp4 $tmp4
25+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a1 $tmp4 $tmp4
2626
rm $tmp4; echo -e "\nSubstring processing done\n"

scripts/processors/12-pack-rule.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ rm analysis-sorted.word analysis.word analysis-sorted.rule
2323

2424
source scripts/selectors/wordlist.sh
2525

26-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST $WORDLIST -r analysis.rule $LOOPBACK
26+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST $WORDLIST -r analysis.rule $LOOPBACK
2727
rm analysis.rule $tmp
2828
echo -e "\nPACK rule processing done\n"

scripts/processors/13-pack-mask.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ tmp3=$(mktemp /tmp/hash-cracker-tmp.XXXX)
2222
cat $POTFILE | awk -F: '{print $NF}' | sort -u | tee $tmp &>/dev/null
2323
python2 scripts/extensions/pack/statsgen.py $tmp -o $tmp2
2424
python2 scripts/extensions/pack/maskgen.py $tmp2 --targettime 1000 --optindex -q --pps 14000000000 --minlength=2 -o $tmp3
25-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a 3 $tmp3
25+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a 3 $tmp3
2626
rm $tmp $tmp2 $tmp3
2727
echo -e "\nPACK mask processing done\n"

scripts/processors/14-fingerprint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ tmp2=$(mktemp /tmp/hash-cracker-tmp.XXXX)
2020
# Logic
2121
cat $POTFILE | awk -F: '{print $NF}' | sort -u | tee $tmp &>/dev/null
2222
./scripts/extensions/hashcat-utils/bin/expander.bin < $tmp | sort -u > $tmp2 && rm $tmp
23-
$HASHCAT $KERNEL --bitmap-max=24 --hwmon-disable --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a 1 $tmp2 $tmp2
23+
$HASHCAT $KERNEL --bitmap-max=24 $HWMON --potfile-path=$POTFILE -m$HASHTYPE $HASHLIST -a 1 $tmp2 $tmp2
2424
rm $tmp2
2525
echo -e "\nFingerprint attack done\n"

0 commit comments

Comments
 (0)