John the Ripper

Terminal Guide & Documentation

John the Ripper in Termux - Complete Installation and Usage Guide

What is johntheripper

John the Ripper is a free password cracking software tool. Originally developed for the Unix operating system, it can run on fifteen different platforms. It is one of the most popular password testing and breaking programs as it combines a number of password crackers into one package, autodetects password hash types, and includes a customizable cracker. In Termux, it allows you to audit password security and perform brute-force or dictionary attacks on various hash formats.

Prerequisites

Ensure your Termux environment is ready for password auditing:

  • Storage Access: Essential for loading wordlists (dictionaries).
  • Processing Power: Cracking is CPU-intensive; ensure your device is charged.
  • Wordlists: You will need a wordlist file (like rockyou.txt) for dictionary attacks.

Installation Commands in Termux

Follow these commands to install John the Ripper on your Android device.

1. Update Environment

Refresh your repository index to get the latest package versions.

BASH - TERMINAL COPY CODE
pkg update && pkg upgrade -y

2. Install John

Install the John the Ripper package from the official Termux repo.

BASH - TERMINAL COPY CODE
pkg install john -y

3. Confirm Installation

Run the command without arguments to see the help menu and verify setup.

BASH - TERMINAL COPY CODE
john

Basic Usage & Examples

Here are common ways to use John the Ripper in your mobile terminal.

Simple Crack (Single Crack Mode)

Let John try to crack a hash file using its default smart rules.

BASH - TERMINAL COPY CODE
john hash_file.txt

Dictionary Attack

Use a specific wordlist (like rockyou.txt) against a hash file.

BASH - TERMINAL COPY CODE
john --wordlist=rockyou.txt hash_file.txt

Show Cracked Passwords

Display the passwords that have been successfully cracked from a file.

BASH - TERMINAL COPY CODE
john --show hash_file.txt

Incremental Mode (Brute Force)

Try every possible character combination (can take a long time).

BASH - TERMINAL COPY CODE
john --incremental hash_file.txt