How To Crack ZIP & RAR File Password with Kali Linux
What is ZIP & RAR File ?
Zip and rar is a file compression technique, through which we can compress many of our files and folders very easily and put them inside a file. The extension name of these files is .zip or .rar. With their help, you can compress the file very easily and by using its password protection feature, you can protect all files with a password.
Cracking ZIP & RAR file Password Using John The Ripper Tools
Step 1:
Installing The John The Ripper
Installing The John The Ripper
Open your terminal from the dock and copy and paste this command and press Enter it will install John The Ripper Tool
Step 2:
Now we need a password protected zip or rar file which we will crack the password
Step 3:
Now you have to change your directory with the help of the cd command, wherever your password protected file is stored, and after that write this command for storing hash of password protected zip file.
Command Syntax for ZIP File : zip2john zip_file_name.zip > newfile.txt
Command Syntax for RAR File : rar2john rar_file_name.zip > newfile.txt
Now the hash of the password of our zip file is stored in a text file.
Step 4:
Now we are at our last step, now we have to crack this hash and get the password, for this use this command
Now it depends on the speed of computer and the difficulty of the password, how much time it takes for the password to be cracked, it may take some time.
Here we got the password now we can unlock the zip file with the help of this password.
All the passwords cracked from John are saved in the john.pot file by copying and paste this command in your terminal, you can see them.