John the Ripper in Termux – Installation & Usage Commands

John the Ripper in Termux – Installation & Usage Commands

John the Ripper is a powerful command-line tool used to test and recover passwords from different types of hashes. It is widely used by security researchers and learners to check password strength and understand how password cracking works.

Installation Commands

Update Termux and install required packages:

pkg update && pkg upgrade && pkg install git clang make -y

Clone the official GitHub repository:

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

Move into the source directory:

cd john/src

Build the tool:

./configure

Create a new Termux session and run:

make -s clean && make -sj4

Move to run directory:

cd ../run

Run John:

./john

Create a global command:

ln -s $PWD/john $PREFIX/bin/john

Now you can run:

john --help

Usage Commands

Crack a password hash file:

john hash.txt

Show cracked passwords:

john --show hash.txt

Use a wordlist:

john --wordlist=wordlist.txt hash.txt

Run incremental mode:

john --incremental hash.txt
SHARE THIS POST: