LinuxCommandLibrary

rar2john

TLDR

Extract hash from RAR file

$ rar2john [archive.rar] > [hash.txt]
copy
Multiple archives
$ rar2john [file1.rar] [file2.rar] > [hashes.txt]
copy
Then crack with John
$ john [hash.txt]
copy

SYNOPSIS

rar2john file...

DESCRIPTION

rar2john extracts password hashes from encrypted RAR archives for cracking with John the Ripper. It supports RAR3 and RAR5 encryption formats.
Part of John the Ripper suite.

EXAMPLES

$ # Extract hash
rar2john encrypted.rar > rar.hash

# Crack with wordlist
john --wordlist=/usr/share/wordlists/rockyou.txt rar.hash

# Show cracked password
john --show rar.hash

# Use hashcat instead
rar2john archive.rar | cut -d: -f2 > hash.txt
hashcat -m 13000 hash.txt wordlist.txt
copy

HASH FORMAT

$ archive.rar:$rar5$16$abc123...$15$...
copy

RAR VERSIONS

$ RAR3 - Older format, faster to crack
RAR5 - Modern format, stronger encryption
copy

CAVEATS

Part of John the Ripper jumbo. Strong passwords may take very long. Use legally and ethically.

HISTORY

rar2john is part of John the Ripper by Solar Designer and the Openwall community, providing RAR hash extraction.

SEE ALSO

john(1), zip2john(1), pdf2john(1), hashcat(1)

Copied to clipboard