ZipRarHunter is a command-line password cracking tool designed to crack passwords for ZIP and RAR archive files using a wordlist. It supports displaying password attempts with colored output and helps automate the process of password recovery from encrypted archive files.
- Support for ZIP and RAR Files: ZipRarHunter works with both ZIP and RAR archives.
- Wordlist-based Cracking: The tool uses a wordlist (a file containing potential passwords) to attempt cracking the password.
- Colored Output: Password attempts and results are displayed with color using ANSI codes for easy readability. (Optional flag to disable colors)
- Real-time Feedback: It shows the current password being attempted in real time, so you can track the progress.
- Cross-platform: This tool works on Linux, macOS, and Windows (with Python installed).
- Python 3.x: Ensure that Python 3 is installed on your system.
- Dependencies:
zipfile
(for handling ZIP files)rarfile
(for handling RAR files) You can install the required Python packages usingpip
:
pip install rarfile
1.Clone the repository:
git clone https://github.com/s-r-e-e-r-a-j/ZipRarHunter.git
- Navigate into the directory:
cd ZipRarHunter
- Ensure all dependencies are installed. If not, run:
pip install -r requirements.txt
- install the tool
cd ZipRarHunter
sudo python3 install.py
then enter y
for install
ZipRarHunter uses command-line arguments to specify the target file, wordlist, and file type (ZIP or RAR).
ziprarhunter -f /path/to/archive.zip -w /path/to/wordlist.txt -t zip
ziprarhunter -f /path/to/archive.rar -w /path/to/wordlist.txt -t rar
-f
or--file
: The path to the ZIP or RAR file you want to crack.-w
or--wordlist
: The path to the wordlist file that contains potential passwords.-t
or--type
: The type of archive. Acceptable values are zip or rar.--no-color
: Disable colored output. By default, the output will include color for easier readability.
- Crack a ZIP file with a wordlist:
ziprarhunter -f /path/to/archive.zip -w /path/to/wordlist.txt -t zip
- Crack a RAR file with a wordlist:
ziprarhunter -f /path/to/archive.rar -w /path/to/wordlist.txt -t rar
- Disable colored output:
ziprarhunter -f /path/to/archive.zip -w /path/to/wordlist.txt -t zip --no-color
Trying password: password123
Password found for ZIP file: password123
-
ZIP File Cracking: The program opens the ZIP file using the zipfile module and sets the password for each attempt. It then uses testzip() to check if the password is correct. If the password is valid, it prints the success message and exits.
-
RAR File Cracking: The program opens the RAR file using the rarfile module and attempts to extract the first file in the archive using each password from the wordlist. If the extraction succeeds, the password is deemed correct, and the program exits.
-
Real-Time Feedback: Each password attempt is displayed on the screen in real time. The current password is shown with color-coded output to indicate progress.
cd ZipRarHunter
cd ZipRarHunter
sudo python3 install.py
Then Enter n
for uninstall
This project is licensed under the MIT License - see the LICENSE file for details.
This tool is intended for educational purposes only. It should be used responsibly and legally. Unauthorized use of this tool to crack passwords without permission is illegal and unethical.