Cracking rar, 7z and zip archives
Everyone comes across password protected archives every now and then.
But what when you can’t remember the password or never knew it?
The easiest thing would be to ask the creator of the archives, but if that’s not possible, it’s time to do a brute force attack on the archive.
I would like to state that this is 100% legal. Don’t presume just because you read “crack” and “brute force” you are doing something illegal.
The maker(s) of the program defined it as following:
This program uses a brute force algorithm to guess your encrypted compressed file’s password. If you forget your encrypted file password, this program is the solution. This program can crack zip,7z and rar file passwords.
After you downloaded the file, open up a terminal (applications -> accessories) and copy/paste the following.
sudo apt-get install libxml2-dev build-essential
Ok, now it’s time to install the program.
First right-click the downloaded archive and select “extract here”.
Use the cd command to navigate to your folder.
Change “username” to real username. Every folder is case sensitive (desktop is not the same as Desktop).
Then copy/paste this command
make ; sudo make install
The program should be installed.
Then to crack the file, open a terminal and use the following command.
sudo rarcrack /home/folder/archive.rar
(replace /home/folder/archive.rar with the real path to the archive)
The amount of time it takes to crack an archive can variate from very quick to very long.
I tested the program to crack an archive, the job was done in about 3 minutes.