Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.bytejmp.com/llms.txt

Use this file to discover all available pages before exploring further.

Basic Syntax

john hash.txt --wordlist=/usr/share/wordlists/rockyou.txt

Common Options

OptionDescription
--wordlist=Wordlist file
--rulesApply default rules
--format=Force hash format
--showShow cracked passwords
--list=formatsList supported formats
--singleSingle crack mode (username mangling)
--incrementalBrute-force all combos

Identify Hash Format

john --list=formats | grep -i ntlm
john --list=formats | grep -i sha
Or auto-detect:
john hash.txt

Extract Hashes (*2john Tools)

John includes tools to extract hashes from various file types.

SSH Private Key

ssh2john id_rsa > hash.txt
john hash.txt --wordlist=/usr/share/wordlists/rockyou.txt

ZIP File

zip2john protected.zip > hash.txt
john hash.txt --wordlist=/usr/share/wordlists/rockyou.txt

RAR File

rar2john protected.rar > hash.txt
john hash.txt --wordlist=/usr/share/wordlists/rockyou.txt

7-Zip

7z2john protected.7z > hash.txt

PDF

pdf2john protected.pdf > hash.txt
john hash.txt --wordlist=/usr/share/wordlists/rockyou.txt

Office Documents (Word, Excel, PowerPoint)

office2john protected.docx > hash.txt
john hash.txt --wordlist=/usr/share/wordlists/rockyou.txt

KeePass Database

keepass2john Database.kdbx > hash.txt
john hash.txt --wordlist=/usr/share/wordlists/rockyou.txt

PFX / PKCS#12

pfx2john certificate.pfx > hash.txt
john hash.txt --wordlist=/usr/share/wordlists/rockyou.txt

Kerberos TGS (Kerberoast)

kirbi2john ticket.kirbi > hash.txt
john hash.txt --wordlist=/usr/share/wordlists/rockyou.txt

BitLocker

bitlocker2john -i disk.img > hash.txt

GPG Key

gpg2john private.key > hash.txt

Mozilla Firefox

mozilla2john key4.db > hash.txt

Common Cracking Workflows

Linux /etc/shadow

unshadow /etc/passwd /etc/shadow > unshadowed.txt
john unshadowed.txt --wordlist=/usr/share/wordlists/rockyou.txt

Windows NTLM

john --format=NT hash.txt --wordlist=/usr/share/wordlists/rockyou.txt

MD5

john --format=raw-md5 hash.txt --wordlist=/usr/share/wordlists/rockyou.txt

SHA256

john --format=raw-sha256 hash.txt --wordlist=/usr/share/wordlists/rockyou.txt

bcrypt

john --format=bcrypt hash.txt --wordlist=/usr/share/wordlists/rockyou.txt

Rules

# Default rules
john hash.txt --wordlist=rockyou.txt --rules

# Specific ruleset
john hash.txt --wordlist=rockyou.txt --rules=KoreLogic

# List rule sets
john --list=rules

Show Results

john --show hash.txt
john --show --format=NT hash.txt

Potfile

# Location
~/.john/john.pot

# View
cat ~/.john/john.pot

Quick Reference — *2john Tools

ToolSource
ssh2johnSSH private keys
zip2johnZIP archives
rar2johnRAR archives
7z2john7-Zip archives
pdf2johnPDF files
office2johnMS Office docs
keepass2johnKeePass databases
pfx2johnPFX certificates
kirbi2johnKerberos tickets
bitlocker2johnBitLocker volumes
gpg2johnGPG keys
mozilla2johnFirefox key4.db

John vs Hashcat

FeatureJohnHashcat
GPU supportLimitedExcellent
*2john extractorsBuilt-inNot included
Exotic formatsBetterFewer
Speed (GPU)SlowerFaster
Default rulesBetterManual
Use John for extracting hashes and exotic formats. Use Hashcat for GPU-accelerated cracking.