Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Test only password on rar archive

I'm trying to do a bruteforce attack on a rar archive and I need the password-check to be as fast as possible. I call rarlab's "unrar" command line utility from my program in this way:

unrar t -p[password] archive.rar

And it works, but is extremely slow. The encrypted file inside the archive is about 300MB big, and unrar utility tells me there's a CRC error (wrong password) only after testing the whole file size. (which takes 10-15 secs)

Is there a quicker way to test just the archive password?

like image 355
yggdrasil Avatar asked Mar 20 '13 12:03

yggdrasil


People also ask

Can you brute force RAR password?

KRyLack RAR Password Recovery is a free RAR password cracker tool. It makes use of the brute-force technique in finding the password. The main screen of the program lets you set all the parameters you want. You can choose a RAR file by clicking on the browse button.

Where is password in RAR file?

The password for RAR file is set by the person who created it. The easiest way to get the password is to ask the person who created the file for the password. WinRAR has no backdoor for lost/forgotten passwords, and we are unable to help you retrieve a lost/forgotten password.

Can you open a RAR file with password?

There are only two ways to open a password-locked RAR file -- having the password, or using cracking software to determine the password.

How do I fix a corrupted RAR file with wrong password?

Right-click on your corrupted RAR or ZIP file and select “Open with WinRAR” from the context menu. When WinRAR opens, click the Tools menu and select Repair archive. Click the Browse button to select the destination location where the repaired RAR/ZIP file has to be saved.


1 Answers

Look with rar l if the archive contains more files than the "main" file you'd like to extract. There are usually .txt or .nfo files contained in the archive with few KB-s. You can then execute brute force attack to extract only the smallest file in archive with rar -ppassword x <archive> <file> what should be much faster.

like image 146
Lukasz Frankowski Avatar answered Sep 17 '22 12:09

Lukasz Frankowski