hashcrack-cli 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hashcrack_cli-0.1.1/LICENSE +21 -0
- hashcrack_cli-0.1.1/PKG-INFO +128 -0
- hashcrack_cli-0.1.1/README.md +98 -0
- hashcrack_cli-0.1.1/hashcrack/__init__.py +2 -0
- hashcrack_cli-0.1.1/hashcrack/__main__.py +4 -0
- hashcrack_cli-0.1.1/hashcrack/cli.py +700 -0
- hashcrack_cli-0.1.1/hashcrack/detector.py +223 -0
- hashcrack_cli-0.1.1/hashcrack/lookup.py +163 -0
- hashcrack_cli-0.1.1/hashcrack_cli.egg-info/PKG-INFO +128 -0
- hashcrack_cli-0.1.1/hashcrack_cli.egg-info/SOURCES.txt +15 -0
- hashcrack_cli-0.1.1/hashcrack_cli.egg-info/dependency_links.txt +1 -0
- hashcrack_cli-0.1.1/hashcrack_cli.egg-info/entry_points.txt +2 -0
- hashcrack_cli-0.1.1/hashcrack_cli.egg-info/requires.txt +3 -0
- hashcrack_cli-0.1.1/hashcrack_cli.egg-info/top_level.txt +1 -0
- hashcrack_cli-0.1.1/pyproject.toml +45 -0
- hashcrack_cli-0.1.1/setup.cfg +4 -0
- hashcrack_cli-0.1.1/tests/test_cli.py +37 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 shazeus
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: hashcrack-cli
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: Hash identification and lookup tool for CTF and security research
|
|
5
|
+
Author-email: shazeus <efeborazan07@gmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/shazeus/hashcrack
|
|
8
|
+
Project-URL: Repository, https://github.com/shazeus/hashcrack
|
|
9
|
+
Project-URL: Bug Tracker, https://github.com/shazeus/hashcrack/issues
|
|
10
|
+
Keywords: hash,ctf,security,md5,sha256,cracking,lookup,cli,hashing,cryptography
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Intended Audience :: Information Technology
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Topic :: Security
|
|
22
|
+
Classifier: Topic :: Security :: Cryptography
|
|
23
|
+
Classifier: Topic :: Utilities
|
|
24
|
+
Requires-Python: >=3.9
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
License-File: LICENSE
|
|
27
|
+
Requires-Dist: click>=8.0
|
|
28
|
+
Requires-Dist: rich>=13.0
|
|
29
|
+
Requires-Dist: requests>=2.28
|
|
30
|
+
|
|
31
|
+
<p align="center">
|
|
32
|
+
<h1 align="center">hashcrack</h1>
|
|
33
|
+
<p align="center">Hash identification and lookup tool for CTF and security research.</p>
|
|
34
|
+
<p align="center">
|
|
35
|
+
<a href="https://pypi.org/project/hashcrack-cli/"><img src="https://img.shields.io/pypi/v/hashcrack-cli?color=blue&style=flat-square" alt="PyPI"></a>
|
|
36
|
+
<a href="https://pypi.org/project/hashcrack-cli/"><img src="https://img.shields.io/pypi/pyversions/hashcrack-cli?style=flat-square" alt="Python"></a>
|
|
37
|
+
<a href="https://github.com/shazeus/hashcrack/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-MIT-green?style=flat-square" alt="License"></a>
|
|
38
|
+
<a href="https://github.com/shazeus/hashcrack/stargazers"><img src="https://img.shields.io/github/stars/shazeus/hashcrack?style=flat-square" alt="Stars"></a>
|
|
39
|
+
</p>
|
|
40
|
+
</p>
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
**hashcrack** is a fast, feature-rich CLI tool for hash analysis in CTF competitions and security research. It auto-detects hash types (MD5, SHA-1, SHA-256, bcrypt, NTLM, and 20+ more), queries public hash databases, performs wordlist attacks, generates hashes, and provides deep statistical analysis — all with beautiful terminal output powered by Rich.
|
|
45
|
+
|
|
46
|
+
- **Auto-detection** — identifies 20+ hash types from MD5 to Argon2, bcrypt, NTLM, and scrypt
|
|
47
|
+
- **Online lookup** — queries multiple public hash cracking APIs simultaneously
|
|
48
|
+
- **Wordlist attack** — crack hashes locally using any wordlist (e.g. rockyou.txt)
|
|
49
|
+
- **Hash generation** — compute MD5, SHA-1, SHA-256, SHA-512, BLAKE2 and more in one command
|
|
50
|
+
- **Batch mode** — process hundreds of hashes from a file with optional auto-lookup
|
|
51
|
+
- **Verification** — confirm plaintext/hash pairs across all supported algorithms
|
|
52
|
+
- **Deep analysis** — entropy calculation, charset analysis, and type classification
|
|
53
|
+
- **JSON output** — every command supports `--json` for scripting and piping
|
|
54
|
+
|
|
55
|
+
## Installation
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
pip install hashcrack-cli
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Or install from source:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
git clone https://github.com/shazeus/hashcrack
|
|
65
|
+
cd hashcrack
|
|
66
|
+
pip install -e .
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Usage
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
# Identify a hash type
|
|
73
|
+
hashcrack identify 5d41402abc4b2a76b9719d911017c592
|
|
74
|
+
|
|
75
|
+
# Look up plaintext via public APIs
|
|
76
|
+
hashcrack lookup 5d41402abc4b2a76b9719d911017c592
|
|
77
|
+
|
|
78
|
+
# Generate hashes
|
|
79
|
+
hashcrack generate "hello world"
|
|
80
|
+
hashcrack generate "secret" --algo md5 --algo sha256
|
|
81
|
+
|
|
82
|
+
# Crack with a wordlist
|
|
83
|
+
hashcrack wordlist rockyou.txt 5d41402abc4b2a76b9719d911017c592
|
|
84
|
+
|
|
85
|
+
# Batch process hashes from a file
|
|
86
|
+
hashcrack batch hashes.txt --lookup
|
|
87
|
+
|
|
88
|
+
# Verify plaintext against hash
|
|
89
|
+
hashcrack verify 5d41402abc4b2a76b9719d911017c592 "hello"
|
|
90
|
+
|
|
91
|
+
# Deep analysis
|
|
92
|
+
hashcrack analyze 5d41402abc4b2a76b9719d911017c592
|
|
93
|
+
|
|
94
|
+
# List all supported hash types
|
|
95
|
+
hashcrack info
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Commands
|
|
99
|
+
|
|
100
|
+
| Command | Description |
|
|
101
|
+
|---------|-------------|
|
|
102
|
+
| `identify <hash>` | Auto-detect the type(s) of a hash |
|
|
103
|
+
| `lookup <hash>` | Query public databases for the plaintext |
|
|
104
|
+
| `generate <text>` | Generate hashes for a string (all algorithms or specific ones) |
|
|
105
|
+
| `wordlist <file> <hash>` | Crack a hash using a local wordlist |
|
|
106
|
+
| `batch <file>` | Process multiple hashes from a file |
|
|
107
|
+
| `verify <hash> <plaintext>` | Confirm a hash/plaintext pair |
|
|
108
|
+
| `analyze <hash>` | Full analysis: type + lookup + entropy + charset |
|
|
109
|
+
| `info [type]` | Show details for a hash type, or list all supported types |
|
|
110
|
+
|
|
111
|
+
## Configuration
|
|
112
|
+
|
|
113
|
+
All commands support these global options:
|
|
114
|
+
|
|
115
|
+
| Flag | Description |
|
|
116
|
+
|------|-------------|
|
|
117
|
+
| `--json` | Output results as JSON for scripting |
|
|
118
|
+
| `-q / --quiet` | Minimal output (useful in scripts) |
|
|
119
|
+
| `-h / --help` | Show help for any command |
|
|
120
|
+
| `-V / --version` | Show version |
|
|
121
|
+
|
|
122
|
+
## Supported Hash Types
|
|
123
|
+
|
|
124
|
+
MD5, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, SHA3-256, SHA3-512, NTLM, LM Hash, bcrypt, Argon2, scrypt, MD5 Crypt, SHA-512 Crypt, RIPEMD-160, BLAKE2b, BLAKE2s, CRC32, Adler32, Tiger-192, Haval-256, MySQL4/5, Whirlpool, Base64
|
|
125
|
+
|
|
126
|
+
## License
|
|
127
|
+
|
|
128
|
+
MIT — see [LICENSE](LICENSE).
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<h1 align="center">hashcrack</h1>
|
|
3
|
+
<p align="center">Hash identification and lookup tool for CTF and security research.</p>
|
|
4
|
+
<p align="center">
|
|
5
|
+
<a href="https://pypi.org/project/hashcrack-cli/"><img src="https://img.shields.io/pypi/v/hashcrack-cli?color=blue&style=flat-square" alt="PyPI"></a>
|
|
6
|
+
<a href="https://pypi.org/project/hashcrack-cli/"><img src="https://img.shields.io/pypi/pyversions/hashcrack-cli?style=flat-square" alt="Python"></a>
|
|
7
|
+
<a href="https://github.com/shazeus/hashcrack/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-MIT-green?style=flat-square" alt="License"></a>
|
|
8
|
+
<a href="https://github.com/shazeus/hashcrack/stargazers"><img src="https://img.shields.io/github/stars/shazeus/hashcrack?style=flat-square" alt="Stars"></a>
|
|
9
|
+
</p>
|
|
10
|
+
</p>
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
**hashcrack** is a fast, feature-rich CLI tool for hash analysis in CTF competitions and security research. It auto-detects hash types (MD5, SHA-1, SHA-256, bcrypt, NTLM, and 20+ more), queries public hash databases, performs wordlist attacks, generates hashes, and provides deep statistical analysis — all with beautiful terminal output powered by Rich.
|
|
15
|
+
|
|
16
|
+
- **Auto-detection** — identifies 20+ hash types from MD5 to Argon2, bcrypt, NTLM, and scrypt
|
|
17
|
+
- **Online lookup** — queries multiple public hash cracking APIs simultaneously
|
|
18
|
+
- **Wordlist attack** — crack hashes locally using any wordlist (e.g. rockyou.txt)
|
|
19
|
+
- **Hash generation** — compute MD5, SHA-1, SHA-256, SHA-512, BLAKE2 and more in one command
|
|
20
|
+
- **Batch mode** — process hundreds of hashes from a file with optional auto-lookup
|
|
21
|
+
- **Verification** — confirm plaintext/hash pairs across all supported algorithms
|
|
22
|
+
- **Deep analysis** — entropy calculation, charset analysis, and type classification
|
|
23
|
+
- **JSON output** — every command supports `--json` for scripting and piping
|
|
24
|
+
|
|
25
|
+
## Installation
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
pip install hashcrack-cli
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Or install from source:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
git clone https://github.com/shazeus/hashcrack
|
|
35
|
+
cd hashcrack
|
|
36
|
+
pip install -e .
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Usage
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
# Identify a hash type
|
|
43
|
+
hashcrack identify 5d41402abc4b2a76b9719d911017c592
|
|
44
|
+
|
|
45
|
+
# Look up plaintext via public APIs
|
|
46
|
+
hashcrack lookup 5d41402abc4b2a76b9719d911017c592
|
|
47
|
+
|
|
48
|
+
# Generate hashes
|
|
49
|
+
hashcrack generate "hello world"
|
|
50
|
+
hashcrack generate "secret" --algo md5 --algo sha256
|
|
51
|
+
|
|
52
|
+
# Crack with a wordlist
|
|
53
|
+
hashcrack wordlist rockyou.txt 5d41402abc4b2a76b9719d911017c592
|
|
54
|
+
|
|
55
|
+
# Batch process hashes from a file
|
|
56
|
+
hashcrack batch hashes.txt --lookup
|
|
57
|
+
|
|
58
|
+
# Verify plaintext against hash
|
|
59
|
+
hashcrack verify 5d41402abc4b2a76b9719d911017c592 "hello"
|
|
60
|
+
|
|
61
|
+
# Deep analysis
|
|
62
|
+
hashcrack analyze 5d41402abc4b2a76b9719d911017c592
|
|
63
|
+
|
|
64
|
+
# List all supported hash types
|
|
65
|
+
hashcrack info
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Commands
|
|
69
|
+
|
|
70
|
+
| Command | Description |
|
|
71
|
+
|---------|-------------|
|
|
72
|
+
| `identify <hash>` | Auto-detect the type(s) of a hash |
|
|
73
|
+
| `lookup <hash>` | Query public databases for the plaintext |
|
|
74
|
+
| `generate <text>` | Generate hashes for a string (all algorithms or specific ones) |
|
|
75
|
+
| `wordlist <file> <hash>` | Crack a hash using a local wordlist |
|
|
76
|
+
| `batch <file>` | Process multiple hashes from a file |
|
|
77
|
+
| `verify <hash> <plaintext>` | Confirm a hash/plaintext pair |
|
|
78
|
+
| `analyze <hash>` | Full analysis: type + lookup + entropy + charset |
|
|
79
|
+
| `info [type]` | Show details for a hash type, or list all supported types |
|
|
80
|
+
|
|
81
|
+
## Configuration
|
|
82
|
+
|
|
83
|
+
All commands support these global options:
|
|
84
|
+
|
|
85
|
+
| Flag | Description |
|
|
86
|
+
|------|-------------|
|
|
87
|
+
| `--json` | Output results as JSON for scripting |
|
|
88
|
+
| `-q / --quiet` | Minimal output (useful in scripts) |
|
|
89
|
+
| `-h / --help` | Show help for any command |
|
|
90
|
+
| `-V / --version` | Show version |
|
|
91
|
+
|
|
92
|
+
## Supported Hash Types
|
|
93
|
+
|
|
94
|
+
MD5, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, SHA3-256, SHA3-512, NTLM, LM Hash, bcrypt, Argon2, scrypt, MD5 Crypt, SHA-512 Crypt, RIPEMD-160, BLAKE2b, BLAKE2s, CRC32, Adler32, Tiger-192, Haval-256, MySQL4/5, Whirlpool, Base64
|
|
95
|
+
|
|
96
|
+
## License
|
|
97
|
+
|
|
98
|
+
MIT — see [LICENSE](LICENSE).
|