LinuxCommandLibrary

rarcrack

Brute-force password recovery for archives

TLDR

Crack RAR password

$ rarcrack [archive.rar]
copy
Crack ZIP password
$ rarcrack [archive.zip] --type zip
copy
Crack 7z password
$ rarcrack [archive.7z] --type 7z
copy
Set thread count
$ rarcrack [archive.rar] --threads [4]
copy
Set character set
$ rarcrack [archive.rar] --charset [abc123]
copy
Resume cracking
$ rarcrack [archive.rar]
copy

SYNOPSIS

rarcrack [--type format] [--threads n] [--charset chars] [options] archive

DESCRIPTION

rarcrack recovers passwords from encrypted RAR, ZIP, and 7Z archives using brute-force testing of all possible character combinations. It systematically tries passwords of increasing length from a configurable character set, with the archive type either auto-detected from the file extension or explicitly specified.
The tool automatically saves progress to an XML status file alongside the archive, allowing interrupted sessions to resume from the last tested position without starting over. Multi-threading distributes password testing across available CPU cores for faster throughput. Narrowing the character set with --charset significantly reduces the search space when the password composition is partially known.

PARAMETERS

--type FORMAT

Archive type (rar, zip, 7z).
--threads N
Number of threads.
--charset CHARS
Characters to try.
-h, --help
Show help.

CAVEATS

Brute-force is slow for long passwords. For authorized recovery only. Strong passwords may be impractical.

HISTORY

rarcrack was created for password recovery from encrypted archives. It provides a simple brute-force tool for RAR, ZIP, and 7Z files.

SEE ALSO

john(1), hashcat(1), zip2john(1), rar2john(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community