How To Install John The Ripper In Termux (Without Root ) Easily

Hi friends, In the last article, I told you guys about John The Ripper. It is a tool that can crack passwords very quickly since a lot of my subscribers use Termux. In this article, I’ll tell you how to install John The Ripper in Termux.

We can’t directly install and use John The Ripper in Termux. First, we need to install a Linux distro in our Termux. After that, we’ll install John The Ripper in that Linux distro. When I’m writing this article on the internet, no one has explained how to install and use John The Ripper in Termux correctly. The videos or articles that are currently out there do not work. So your search stops here, install and use John in your Termux with the steps given below.

Prerequisites:

Installation Procedures:

First, we need to install a Linux distro in Termux, and after that, we can begin the installation of john the ripper in Termux.

Install Linux Distro

You must install a Linux distro in Termux to install and run John the ripper in Termux. Any Linux distro will work but, I’ll install ubuntu. Follow the commands given below to set up ubuntu for installing John The Ripper completely.

Before then, give termux storage permission with the command below :

termux-setup-storage 

After that create a new folder in the storage directory with the command below :

mkdir ~/storage/shared/JohnTutorial

After that, Update termux and install Ubuntu with the commands below :

pkg update ; pkg install proot-distro ; proot-distro install ubuntu

 Login to ubuntu with the command below

proot-distro login ubuntu 

Now that you're logged in to ubuntu, update your repo with the command below :.

apt update

Now we give Ubuntu access to the JohnTutorial folder we created earlier, do that with the command below ; 

ln -s /data/data/com.termux/files/home/storage/shared/JohnTutorial

From now on, the JohnTutorial folder can be accessed from Ubuntu, you can always find it in your home directory with the ls command 

Install John The Ripper In Termux

Install recommended packages in Ubuntu that is installed in Termux. Using the command below.

apt install git build-essential libssl-dev zlib1g-dev yasm pkg-config libgmp-dev libpcap-dev libbz2-dev

Now clone John The Ripper from GitHub using the command below.

git clone https://github.com/openwall/john

Change working directory to john/src folder.

cd john/src

In this directory you’ll see so many files. This is where we  configure john the ripper in your system. It will take about 5-10 minutes to complete.

./configure

After it is completed, execute the command give below to finalize John the Ripper's installation.

make -s clean && make -sj4

Once you see the Completed prompt, you’ve successfully installed John The Ripper in your Termux

Crack Password of Zip File With John The Ripper In Termux

After installing John The Ripper . To crack any password protected file, place that file in JohnTutorial folder in your internal storage. To show you guys, I placed password protected zip file named ziptest.zip .

In Ubuntu system, that is installed in Termux. Change working directory to john/run

cd John/run

First we need to extract hash from the zip file. For the type the command given below, just change the file name to your own file name.

./zip2john /root/JohnTutorial/ziptest.zip > /root/JohnTutorial/ziphash.txt

Above command will extract hash password from the zip file and save it to the Ubuntu folder as hash.txt . Pass hash.txt file to john to find password of that zip file

./john --format=zip /root/JohnTutorial/ziphash.txt

It will take time according to the strength of the password. After finding the correct password, john will print it in the terminal. Password for ziptest.zip was 3705, so john cracked it in few seconds. Password and the file name get printed in yellow colour

Conclusion

By following the steps mentioned above, you can install and use john the ripper in Termux. If you don’t know how to use john the ripper click here to read more about it . If you get stuck somewhere while following these steps, watch my YouTube video about it.

1 Comments

Previous Post Next Post