Cracking ZIP file passwords
In this recipe, we will try and crack a ZIP file password.
Sometimes, you will come across ZIP files that have a password on them. Normally, you can easily crack these passwords with a simple dictionary attack.
Getting ready
Let's ensure the following prerequisites:
- Your Kali machine is powered up
How to do it...
We will now crack a ZIP files password and recover it's contents:
- Open a terminal window in Kali by clicking the icon.
- Enter the following commands to create an encrypted ZIP file:
cd mkdir 6.10 cd 6.10 touch one two three zip -e numbers.zip one two three
- When asked for a password, let's use a simple one such as
password
. - We will use our
rockyou.txt
dictionary file from the past recipes along withfcrackzip
:
fcrackzip -u -D -p '/usr/share/wordlists/rockyou.txt' numbers.zip

fcrackzip output