Skip to content

Commit dad4d1a

Browse files
authored
Release v3.8 (#32)
* Added WORDLIST and WORDLIST2 * Version bump * Update README.md * Update VERSION.md * Added display of static parameters * Multiple wordlists checking based on staticconfig * Wordlists checking based on staticconfig * Update README.md * Update VERSION.md
1 parent b3403f6 commit dad4d1a

File tree

7 files changed

+56
-18
lines changed

7 files changed

+56
-18
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# hash-cracker
22

3-
Simple script to get some hash cracking done effectively.
3+
Simple script to get some hash cracking done effectively. In [this blog](https://sensepost.com/blog/2023/hash-cracker-password-cracking-done-effectively/) you can read some background on hash-cracker.
44

55
Some sites where you can find wordlists:
66

@@ -58,6 +58,8 @@ By default, hash-cracker will run in 'ask you all variable' mode. When specifyin
5858
- `HASHTYPE` - mode hashcat will run in (e.g. 1000 (NTLM))
5959
- `HASHLIST` - file containing target hashes
6060
- `POTFILE` - specify the potfile you want to use / create
61+
- `WORDLIST` - specify the first static word list
62+
- `WORDLIST2` - specify the second static word list
6163

6264
## Example Hashes
6365

VERSION.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Version log
22

3+
## v3.8 - Keep it static
4+
5+
* Even more ability to set static parameters
6+
* Added link to new [blog](https://sensepost.com/blog/2023/hash-cracker-password-cracking-done-effectively/)
7+
38
## v3.7 - Just before
49

510
* Introduced `hash-cracker.conf` to set a static config yourself

hash-cracker.conf

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@ HASHTYPE=1000
88
HASHLIST=input
99

1010
# Potfile you want to use
11-
POTFILE=hash-cracker.pot
11+
POTFILE=hash-cracker.pot
12+
13+
# Wordlist(s)
14+
WORDLIST=wordlists/ignis-1M.txt
15+
WORDLIST2=wordlists/ignis-1K.txt

hash-cracker.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Author: crypt0rr - https://github.com/crypt0rr/
33

44
function hash-cracker () {
5-
echo -e "\nhash-cracker v3.7 by crypt0rr (https://github.com/crypt0rr)"
5+
echo -e "\nhash-cracker v3.8 by crypt0rr (https://github.com/crypt0rr)"
66
}
77

88
function menu () {

scripts/parameters.sh

+9
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,13 @@ if [ "$HWMON" = ' ' ]; then
128128
else
129129
echo "[-] Hardware monitoring disabled"
130130
HWMON='--hwmon-disable'
131+
fi
132+
133+
if [[ "$STATICCONFIG" = true ]]; then
134+
echo -e "\nStatic parameters:"
135+
echo "[+] Potfile:" $POTFILE
136+
echo "[+] Hashlist:" $HASHLIST
137+
echo "[+] Hashtype:" $HASHTYPE
138+
echo "[+] Wordlist 1:" $WORDLIST
139+
echo "[+] Wordlist 2:" $WORDLIST2
131140
fi

scripts/selectors/multiple-wordlist.sh

+21-11
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,27 @@ if ! [[ $START = '8' ]]; then
1010
echo "File does not exist, try again."; $RESTART
1111
fi
1212
fi
13+
1314
if [[ $START = '8' ]]; then
14-
read -e -p "Enter full path to first wordlist: " WORDLIST
15-
if [ -f "$WORDLIST" ]; then
16-
echo "Wordlist" $WORDLIST "selected."
17-
else
18-
echo "File does not exist, try again."; $RESTART
19-
fi
20-
read -e -p "Enter full path to second wordlist: " WORDLIST2
21-
if [ -f "$WORDLIST2" ]; then
22-
echo "Wordlist" $WORDLIST2 "selected."
15+
if [[ "$STATICCONFIG" = true ]]; then
16+
if [ -f "$WORDLIST" ] && [ -f "$WORDLIST2" ]; then
17+
echo "Wordlist 1:" $WORDLIST
18+
echo "Wordlist 2:" $WORDLIST2
19+
else
20+
echo "Wordlist 1 and/or 2 does not exist, edit static configuration in 'hash-cracker.conf'."; exit
21+
fi
2322
else
24-
echo "File does not exist, try again."; $RESTART
23+
read -e -p "Enter full path to first wordlist: " WORDLIST
24+
if [ -f "$WORDLIST" ]; then
25+
echo "Wordlist" $WORDLIST "selected."
26+
else
27+
echo "File does not exist, try again."; $RESTART
28+
fi
29+
read -e -p "Enter full path to second wordlist: " WORDLIST2
30+
if [ -f "$WORDLIST2" ]; then
31+
echo "Wordlist" $WORDLIST2 "selected."
32+
else
33+
echo "File does not exist, try again."; $RESTART
34+
fi
2535
fi
26-
fi
36+
fi

scripts/selectors/wordlist.sh

+12-4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,17 @@
22
# Author: crypt0rr - https://github.com/crypt0rr/
33
RESTART="source scripts/selectors/wordlist.sh"
44

5-
read -e -p "Enter full path to wordlist: " WORDLIST
6-
if [ -f "$WORDLIST" ]; then
7-
echo "Wordlist" $WORDLIST "selected."
5+
if [[ "$STATICCONFIG" = true ]]; then
6+
if [ -f "$WORDLIST" ]; then
7+
echo "Wordlist" $WORDLIST "selected."
8+
else
9+
echo "Wordlist 1 does not exist, edit static configuration in 'hash-cracker.conf'."; exit
10+
fi
811
else
9-
echo "File does not exist, try again."; $RESTART
12+
read -e -p "Enter full path to wordlist: " WORDLIST
13+
if [ -f "$WORDLIST" ]; then
14+
echo "Wordlist" $WORDLIST "selected."
15+
else
16+
echo "File does not exist, try again."; $RESTART
17+
fi
1018
fi

0 commit comments

Comments
 (0)