Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ReddyyZ committed Oct 20, 2020
1 parent 80f6ea2 commit 91ff185
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 3 deletions.
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
## HashCracker v1.0.0

Hashes supported:

- md5
- sha1
- sha224
- sha256
- sha384
- sha512
- bcrypt (Cannot identify)

---

## HashCracker v1.0.1

Hashes supported:

- md5
- sha1
- sha224
- sha256
- sha384
- sha512
- bcrypt (Cannot identify)

---

- Bug fixes
- Installation script
- Documentation

---
65 changes: 65 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<h1 align="center">HashCracker</h1>

<p align="center">A simple Hash Cracking tool developed in Python 3</p>

> For educational purposes
## Libraries

- hashid >= 3.1.4
- bcrypt >= 3.2.0

[hashID](https://github.com/psypanda/hashID) used for hash identification

[bcrypt](https://pypi.org/project/bcrypt/) used for bcrypt hashs creation

## OS Support

- Windows
- Linux
- Mac? - Not tested

## Installation

- Clone the repo and cd into directory
```bash
git clone https://github.com/ReddyyZ/HashCracker.git && cd HashCracker
```

- Set permissions
```bash
chmod +x install.sh
```

- Execute installation script
```bash
sudo ./install.sh
```

- Happy Hacking!
```bash
hashcracker -h
```

## How to use

OPTIONS | EXPLANATION
------- | -----------
-w, --wordlist | Wordlist path
-m, --mode | Specify the hash type
-t, --threads | Threads count
---

- Try to identify the hash
```bash
hashcracker -w rockyou.txt 5f4dcc3b5aa765d61d8327deb882cf99
```

- Specify the hash to crack
```bash
hashcracker -w rockyou.txt -m md5 5f4dcc3b5aa765d61d8327deb882cf99
```

---

<h2 align="center">&lt;/&gt; by <a href="https://github.com/ReddyyZ">ReddyyZ</a></h2>
7 changes: 4 additions & 3 deletions hashcracker.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/env python3
import argparse, textwrap, hashlib, threading, os, sys, time
import hashid, bcrypt

__clear__ = lambda : os.system("cls" if os.name == "nt" else "clear")
__version__ = "v1.0.0"
__version__ = "v1.0.1"

hashs_ = {
"md5": lambda text : hashlib.md5(text.encode()).hexdigest(),
Expand Down Expand Up @@ -48,7 +49,7 @@ def brute(_hash,passwd,hash_type, t_num, salt=None):
print(f"[Thread: {t_num}] Testing: {_hash}:{passwd}")

if not salt:
result = hashs_[hash_type](passwd).decode()
result = hashs_[hash_type](passwd)
else:
result = hashs_[hash_type](passwd,salt).decode()

Expand Down Expand Up @@ -121,4 +122,4 @@ def main():
break

if __name__ == "__main__":
main()
main()
9 changes: 9 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
echo -e "Installing Hash Cracker...\n"

sudo apt-get install python3 python3-dev python3-pip
python3 -m pip install -r requirements.txt
mkdir -p /usr/share/hashcracker/
cp hashcracker.py /usr/share/hashcracker/hashcracker.py
ln -s /usr/share/hashcracker/hashcracker.py /usr/bin/hashcracker

echo "Hash Cracker installed!"

0 comments on commit 91ff185

Please sign in to comment.