Cracking ZIP File

Sometimes ZIP file is protected with a password. If a password is weak then we can easily use the below method.

Step for cracking ZIP Password.

Step 1: Checking if the ZIP file is asking for credentials or not.

We can use 7z.

7z x $FileName

If asking for a password then we will run the next command.

Step 2: Make a hash of the zip file.

zip2john $FileName > ziphash

Step 3: Crack using john

john ziphash --wordlist=/usr/share/wordlists/rockyou.txt

Step 4: See hash value

john ziphash --show

You can confirm by extracting the content of ZIP.

Last updated