Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Commit

Permalink
Release v3.8 (#19)
Browse files Browse the repository at this point in the history
* Added WORDLIST 1 and 2

* Version bump

* Added display of static parameters

* Added static config checking and behavior

* Update README.md

* Update VERSION.md

* Update README.md

* Update VERSION.md
  • Loading branch information
crypt0rr authored Sep 19, 2023
1 parent 098f43a commit 17db1d8
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 18 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# hash-cracker - Apple Silicon Edition

Simple script to get some hash cracking done effectively.
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.

Some sites where you can find word lists:

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

## Example Hashes

Expand Down
5 changes: 5 additions & 0 deletions VERSION.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Version log

## v3.8 - Keep it static

* Even more ability to set static parameters
* Added link to new [blog](https://sensepost.com/blog/2023/hash-cracker-password-cracking-done-effectively/)

## v3.7 - Just before

* Introduced `hash-cracker.conf` to set a static config yourself
Expand Down
6 changes: 5 additions & 1 deletion hash-cracker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ HASHTYPE=1000
HASHLIST=input

# Potfile you want to use
POTFILE=hash-cracker.pot
POTFILE=hash-cracker.pot

# Wordlist(s)
WORDLIST=wordlists/ignis-1M.txt
WORDLIST2=wordlists/ignis-1K.txt
2 changes: 1 addition & 1 deletion hash-cracker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Author: crypt0rr - https://github.com/crypt0rr/

function hash-cracker () {
echo -e "\nhash-cracker v3.7 Apple Silicon Edition by crypt0rr (https://github.com/crypt0rr)"
echo -e "\nhash-cracker v3.8 Apple Silicon Edition by crypt0rr (https://github.com/crypt0rr)"
}

function menu () {
Expand Down
9 changes: 9 additions & 0 deletions scripts/parameters.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,13 @@ if [ "$HWMON" = ' ' ]; then
else
echo "[-] Hardware monitoring disabled"
HWMON='--hwmon-disable'
fi

if [[ "$STATICCONFIG" = true ]]; then
echo -e "\nStatic parameters:"
echo "[+] Potfile:" $POTFILE
echo "[+] Hashlist:" $HASHLIST
echo "[+] Hashtype:" $HASHTYPE
echo "[+] Wordlist 1:" $WORDLIST
echo "[+] Wordlist 2:" $WORDLIST2
fi
32 changes: 21 additions & 11 deletions scripts/selectors/multiple-wordlist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,27 @@ if ! [[ $START = '8' ]]; then
echo "File does not exist, try again."; $RESTART
fi
fi

if [[ $START = '8' ]]; then
read -e -p "Enter full path to first wordlist: " WORDLIST
if [ -f "$WORDLIST" ]; then
echo "Wordlist" $WORDLIST "selected."
else
echo "File does not exist, try again."; $RESTART
fi
read -e -p "Enter full path to second wordlist: " WORDLIST2
if [ -f "$WORDLIST2" ]; then
echo "Wordlist" $WORDLIST2 "selected."
if [[ "$STATICCONFIG" = true ]]; then
if [ -f "$WORDLIST" ] && [ -f "$WORDLIST2" ]; then
echo "Wordlist 1:" $WORDLIST
echo "Wordlist 2:" $WORDLIST2
else
echo "Wordlist 1 and/or 2 does not exist, edit static configuration in 'hash-cracker.conf'."; exit
fi
else
echo "File does not exist, try again."; $RESTART
read -e -p "Enter full path to first wordlist: " WORDLIST
if [ -f "$WORDLIST" ]; then
echo "Wordlist" $WORDLIST "selected."
else
echo "File does not exist, try again."; $RESTART
fi
read -e -p "Enter full path to second wordlist: " WORDLIST2
if [ -f "$WORDLIST2" ]; then
echo "Wordlist" $WORDLIST2 "selected."
else
echo "File does not exist, try again."; $RESTART
fi
fi
fi
fi
16 changes: 12 additions & 4 deletions scripts/selectors/wordlist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@
# Author: crypt0rr - https://github.com/crypt0rr/
RESTART="source scripts/selectors/wordlist.sh"

read -e -p "Enter full path to wordlist: " WORDLIST
if [ -f "$WORDLIST" ]; then
echo "Wordlist" $WORDLIST "selected."
if [[ "$STATICCONFIG" = true ]]; then
if [ -f "$WORDLIST" ]; then
echo "Wordlist" $WORDLIST "selected."
else
echo "Wordlist 1 does not exist, edit static configuration in 'hash-cracker.conf'."; exit
fi
else
echo "File does not exist, try again."; $RESTART
read -e -p "Enter full path to wordlist: " WORDLIST
if [ -f "$WORDLIST" ]; then
echo "Wordlist" $WORDLIST "selected."
else
echo "File does not exist, try again."; $RESTART
fi
fi

0 comments on commit 17db1d8

Please sign in to comment.