Password Attackspasswordcrackerbrute-forcerarzip7zarchive

rarcrack

rarcrack is a brute force password cracker for encrypted RAR, ZIP, and 7Z archives. It automatically detects archive types and supports multi-threading for faster cracking.

Description

rarcrack is a command-line tool designed to recover passwords for encrypted compressed files using a brute force algorithm. It targets RAR, ZIP, and 7Z archive formats, which are commonly used for secure file storage and transfer. The tool is particularly useful in penetration testing, forensics, and recovery scenarios where access to password-protected archives is needed.

In typical use cases, security professionals employ rarcrack to assess the strength of archive passwords during security audits or to retrieve data from forgotten passwords in incident response. The program's ability to detect archive types automatically simplifies usage, while manual type specification and thread control provide flexibility for optimized performance on multi-core systems.

As part of Kali Linux's toolkit, rarcrack integrates seamlessly into workflows involving password recovery and cracking, supporting only encrypted archives of the specified formats.

How It Works

rarcrack employs a brute force algorithm to systematically guess passwords for encrypted RAR, ZIP, and 7Z archives. It automatically detects the archive file type in most cases, falling back to user-specified types via the --type option. Multi-threading is supported through the --threads flag, allowing parallel password attempts across CPU cores to accelerate the cracking process. The tool reads the encrypted archive, generates sequential password candidates, and tests them against the archive's encryption until a match is found.

Installation

bash
sudo apt install rarcrack

Flags

--helpshow this screen.
--type rar|zip|7zyou can specify the archive program, this needed when the program couldn't detect the proper file type
--threads NUMyou can specify how many threads will be run (default: 1)

Examples

Cracks password for a RAR archive using default single thread and auto-detection.
rarcrack encrypted_archive.rar
Cracks password for a ZIP archive with automatic type detection.
rarcrack encrypted_archive.zip
Cracks password for a 7Z archive using brute force.
rarcrack encrypted_archive.7z
Explicitly specifies RAR type for cracking when auto-detection fails.
rarcrack encrypted_archive.rar --type rar
Uses 4 threads to speed up cracking of a ZIP archive.
rarcrack encrypted_archive.zip --threads 4
Specifies 7Z type and uses 8 threads for faster brute force attack.
rarcrack encrypted_archive.7z --type 7z --threads 8
Displays the help screen with usage and options.
rarcrack encrypted_archive.rar --help
Updated 2026-04-16kali.org ↗