Cracking password protected Zip file using John The Ripper:-

Aman Chauhan
3 min readMar 18, 2022

fig- 1.0

Hi,

In this post we will see how we can crack password protected Zip file by using John The Ripper.

So lets start. First lets create a password protected .zip file using following command(fig-2.0):

$ zip — — password [password] [file_name.zip] [your file]

fig 2.0

Now we have password protected zip file so lets assume we don’t know the password of that file so lets crack the password of the zip file.

First of all we need a tool called John The Ripper. In Kali its comes pre-installed but if you using any other linux distro you can simply install it by following command:-

$ sudo apt install john

After installation you can use it by simply typing following command(fig 3.0):

$ John -h

fig- 3.0

Lets start cracking:

First of all we need the zip file password hashs we can get in by following command(fig 4.0):

$ zip2john [file_name.zip] > pass.hash

fig- 4.0

Now this is you password hash, so we will crack it,but we need a password lists you can use your own password but for this I will use rockyou.txt password list you can download it here.We will use following command(fig 5.0):-

$ john — — format=PKZIP [hash_file] — — wordlists [password list]

fig- 5.0

Wow! we cracked the zip file password its “qwerty”so we can unzip it by following command(fig 6.0):-

$ unzip file_name.zip

fig- 6.0

Next time if we need no see password of that hash you can use following command(fig 7.0):

john [hash_file] — — show

fig- 6.0

OSM! now we know how to crack zip file password. Thank for be here and read this post.

See you in another Article………

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response