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 -yClone the official GitHub repository:
git clone https://github.com/openwall/john.gitMove into the source directory:
cd john/srcBuild the tool:
./configureCreate a new Termux session and run:
make -s clean && make -sj4Move to run directory:
cd ../runRun John:
./johnCreate a global command:
ln -s $PWD/john $PREFIX/bin/johnNow you can run:
john --helpUsage Commands
Crack a password hash file:
john hash.txtShow cracked passwords:
john --show hash.txtUse a wordlist:
john --wordlist=wordlist.txt hash.txtRun incremental mode:
john --incremental hash.txt