Setting up Zip2John to crack password protected zip files on Linux Ubuntu

Zip2john is a useful tool for both extracting and cracking password protected zip files. Since it is not included in default john the ripper package, downloading it might be little bit tricky especially in Ubuntu - like Linux distributions.

Downloading Zip2John

Here is how the additional zip2john package can be installed on ubuntu using mighty terminal;

Step 1: Clone the app from github repository using following code

git clone https://github.com/openwall/john -b bleeding-jumbo john && cd john/src/ && ./configure 

If you get an error on previous step, add --without-openssl after ./configure then type the following;

make -s clean && make -sj4

Extracting hash of the zip file

Step 2: If you have succesfully completed installation, you can extract the hash file using following steps:

Move to /run file using cd/home/user/john/run

Step 3: Type the following code piece;

./zip2john ./test.zip > hash.txt 

Hash file must be be automatically exported into hash.txt file, and output must be similar to something like this:

Then you can start brute force -or mask- attack to crack password that is set for protected file.

Yorumlar

Bu blogdaki popüler yayınlar

Setting up FTK Imager on Ubuntu OS installed USB Drive

Extracting hash values from MS Office files using John The Ripper on Linux

Cracking password protected MS Office files using Hashcat