![crack password with john the ripper](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSXz9uUDaHFCcb0vfD22v6a3kFBqAd6rWWYV_CZjM1IC2zZ1XTF5esQ7ygce41a_m4t6Bx6OZtMs4T1S6harJUNMckZAZy634sWkb2_NhHiPT1N9ztSsRGdUPMpLHQdgVBSV-6LXWSIvSP/s0/how-to-crack-a-password-with-john-the-ripper.png)
In this tutorial, we will learn how to crack a password using the most famous password cracking tool john the ripper.
John the ripper supports many attacks like wordlist attack, brute-force attack, incremental attack, etc. It is capable of cracking passwords of pdf, 7z, zip, rar, bitcoin, blockchain, truecrypt, etc.
Ever downloaded a file from the internet and forgot the password? Yes, it happens to me a lot of times. Then I have to look up my browser history to find out from where I downloaded the file for the correct password.
Installation Of John The Ripper
Before getting started make sure you have downloaded and installed john the ripper on your system.
[button href="https://ouo.io/qUFr33"]32 bit[/button] [button href="https://ouo.io/zNgxqgV"]64 bit[/button]Locate the folder where john.exe is present, usually, it is present in the run folder.
![john the ripper folder structure](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwneBtHZU5Zvqyi87Nw9w4LKAAw1pixkJR9rn7CI8CNht4BzTaCF1gnNkkxvGBsZe3xhD7RhWlezLsoefppzUwwdka5L4nU3lWwuMo0hcLYLiuUf9O3aUmBB7rogk77R0gSzACmUSdHNj6/s0/john-the-ripper-folder-structure.png)
Open the command prompt in that folder and type the below command.
john -h
If you got a bunch of options, It means john the ripper is working and installed correctly.
![john the ripper command line](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhowi7FOA4URv5zYeuZzXTIpg-ETJLhwBa1_5Qh231JrvrP8IrlS6q6LH3tz7EJLfWBYiFHCb5JwQy1xhBE3hSwZllbCpXunSMC748c-O0uoeaz4EmmZLr9ake3iP3es-mJRMWe05Qmm8YT/s0/john-the-ripper-command-line.png)
Tutorial Of John The Ripper
For demonstration purposes, we will be cracking the password of a zip file.
![password of a zip file](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjP_NJqXbC9B7tjO_a1rsusAd6nEB-m8EdE9nV6KACc4VRV7OuDv_E_NUYHvP9Qh4BsYnx1jSejxPqim3Luf2-5E2YEeVKdwEGM_vJVX_e90_fRmBo3mEqdqcc1fQ0qhK3v4zS_kqiAVMi3/s0/password-of-a-zip-file.png)
-
Open command prompt in the folder where john the ripper is present (as did previously).
-
First we need to calculate the hash of the file. We will use zip2john for this operation.
zip2john password.zip > zip.hash
You can calculate the hash of any file using *2john. For example: to calculate the hash of the 7z file I would have used
7z2john password.7z > 7z.hash
-
Hash of the file will be stored in the zip.hash.
-
At last we will calculate the password using the hash generated.
john zip.hash
You can use any hash here. Example: for 7z hash I would have used
john 7z.hash
-
Have tea with cookies and wait for the task to get completed.
-
Voila! we got the password.
This is how we can crack the password of the file using john the ripper. I hope you all understood the steps we need to follow. If any query comment below.
0 Comments