๐ Python Hash Cracker
A fast, multiprocessing brute-force hash-cracking tool written in Python. Supports multiple hashing algorithms, multiple character sets, real-time progress reporting, and efficient search-space generation.
๐ Features
๐ฅ Brute-force cracking with multiprocessing
๐ฃ 15 customizable character sets (letters, digits, punctuation, mixed variants)
๐งฎ Supports major hashing algorithms:
MD5, MD4, LM, NTLM
SHA-1, SHA-224, SHA-256, SHA-384, SHA-512
โฑ๏ธ Real-time progress output: iterations, hashes/sec, latest candidate
๐พ Efficient memory usage: generates combinations on the fly
๐ง Automatic UTF-8 / UTF-16LE encoding based on hash type
โ๏ธ Fully interactive CLI tool
๐ฆ Requirements
Python 3.x
No external dependencies (uses only Python standard library)
๐ Installation
Clone the repository:
git clone https://github.com/your-username/hash-cracker.git cd hash-cracker
Make the script executable:
chmod +x cracker.py
Run:
./cracker.py
Or:
python3 cracker.py
When running the tool, you'll be prompted for:
-
Character Set
-
Maximum Password Length
-
Hash Type
-
Hash Value
Example:
Specify the character set to use:
- abcdefghijklmnopqrstuvwxyz
- ABCDEFGHIJKLMNOPQRSTUVWXYZ
- abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ...
Specify the maximum possible length of the password: 5
Specify the hash's type:
- MD5
- MD4 ...
Specify the hash to be attacked: 5d41402abc4b2a76b9719d911017c592 Trying to crack hash 5d41402abc4b2a76b9719d911017c592
Example output:
Character set: abcdef..., iteration: 5120, trying: hell, hashes/sec: 1024 Match found! Password is hello
Took 3.21 seconds
๐ง How It Works
Generates combinations using itertools.product
Hashes each candidate string
Compares the result to the target hash
Uses multiprocessing to split workloads across character-set partitions
Reports progress at timed intervals
Stops all processes when the password is found
๐ง Supported Hash Algorithms
Code Algorithm
01 MD5 02 MD4 03 LM 04 NTLM 05 SHA-1 06 SHA-224 07 SHA-256 08 SHA-384 09 SHA-512
๐ฃ Character Sets
Code Character Set
01 a-z 02 A-Z 03 a-z + A-Z 04 0-9 05 a-z + 0-9 06 A-Z + 0-9 07 a-z + A-Z + 0-9 08 punctuation โฆ up to combined alpha-num-punct
(Full list is included in the script.)
๐ Performance Notes
Brute-forcing is exponential and extremely intensive
Long passwords and large character sets take significantly longer
Use maximum password length and character sets wisely
CPU speed directly affects cracking performance
This tool is intended for:
Educational use
Security research
Auditing your own passwords/systems
Do NOT use this tool for unauthorized access or malicious activity. You are responsible for following applicable laws and regulations.
๐ License
Licensed under the MIT License โ free to use, modify, and distribute.
๐ฌ Contributing
Pull requests are welcome! You can help improve:
Speed optimizations
New hash algorithms
Additional character-set presets
Better UI/UX printing