A silly script to crack hashs in Bash Incremental mode uses a python generator This was made as a BTS (FR) student
Find a file
2017-06-28 19:14:42 +02:00
bhash_crack.sh Imposed restriction so we avoid CPU & RAM bombing 2017-06-28 17:43:13 +02:00
changelog.md Final Version 2017-06-28 16:20:43 +02:00
incremental.py Final Version 2017-06-28 16:20:43 +02:00
license Final Version 2017-06-28 16:20:43 +02:00
output_sample Final Version 2017-06-28 16:20:43 +02:00
README.md Corrected 2017-06-28 19:14:42 +02:00
TODO.md Final Version 2017-06-28 16:20:43 +02:00

bhash_crack.sh

Bash Hash Cracker.

This script shows how hash cracking can be performed in Bash. This script isn't most efficient but works like a charm for small passwords.


Script created by Pierre Pailleux || p@i||p
pailleux.pierre@gmail.com
This script is for TESTING PURPOSES ONLY
The author is not responsible for any illegal use of this script m'kay !
This program was fully tested on ArchLinux :
  • Kernel 4.11.6-3-ARCH
  • GNU bash, version 4.4.12

Supported algorithms :

  • SHA - SHA1
  • SHA224
  • SHA256
  • SHA384
  • SHA512
  • MD5

Options


Positional arguments

-d      |   -dic                    |   Perfom a dictionnary bruteforce attack on the desired hash
-i      |   -inc                    |   Perfom an incremental bruteforce attack on the desired hash
-g      |   -gen                    |   Perfom a generated bruteforce attack on the desired hash
-h      |   -help                   |   Show this help
-v      |   -version                |   Show the version

Dictionnary

-a      |   -algo                   |   The algorithm to use
-h      |   -hash                   |   The hash to crack
-D      |   -dictionnary            |   Path to the wordlist to use
-o      |   -out-file               |   Name of the output file

Incremental

-a      |   -algo                   |   The algorithm to use
-h      |   -hash                   |   The hash to crack
-c      |   -charset                |   The charset to use
-m      |   -min-len                |   Minimum length of the password to generate
-M      |   -max-len                |   Maximum length of the password to generate
-o      |   -out-file               |   Name of the output file

Generated

-a      |   -algo                   |   The algorithm to use
-h      |   -hash                   |   The hash to crack
-c      |   -charset                |   The charset to use
-l      |   -length                 |   The length of passwords to generate
-t      |   -threads                |   The number of threads to use
-o      |   -out-file               |   Name of the output file

Exit codes :

0: Hash was cracked
1: Incorrect option
2: Help or version called
3: Thread received INT signal i.e.: ^C

Usage examples :

Generated:

bash bhash_crack.sh -g -a sha1 -h 4e1243bd22c66e76c2ba9eddc1f91394e57f9f83 -c 'tes' -l 4 -t 16 -o test.out

Dictionnary:

bash bhash_crack.sh -d -a sha1 -h 10cd6aa6105af32db54da7cf9398b25681c508e5 -D rockyou.txt -o test.out

Incremental:

bash bhash_crack.sh -i -a sha1 -h 4e1243bd22c66e76c2ba9eddc1f91394e57f9f83 -c lower -m 4 -M 4 -o test.out

pPailleux