john hashes.txtRuns John in default mode with automatic format detection and Single crack mode.
A versatile password cracker (use the “jumbo” build) with automatic hash detection and *2john helpers for files, archives and keys.
sudo apt install johnjohn --testBenchmarks the system performance for all supported algorithms to verify installation.
john --list=formatsLists all hash formats supported by the installed version of John the Ripper.
john --format=NAME hashes.txtForces John to use a specific hash format avoiding auto-detection errors.
Example
john --format=Raw-MD5 hashes.txtjohn --wordlist=FILE hashes.txtPerforms a standard dictionary attack using the provided wordlist file.
Example
john --wordlist=rockyou.txt hashes.txtjohn --wordlist=FILE --format=NAME hashes.txtCombines a wordlist attack with a specific format specification for efficiency.
Example
john --wordlist=rockyou.txt --format=sha512crypt hashes.txtcat words.txt | john --stdin hashes.txtReads candidate passwords from standard input instead of a file.
Example
cat custom_words.txt | john --stdin hashes.txtjohn --wordlist=FILE --rules hashes.txtApplies the default set of rules from john.conf to mutate words in the wordlist.
Example
john --wordlist=rockyou.txt --rules hashes.txtjohn --rules:Jumbo --wordlist=FILE hashes.txtUses the extensive Jumbo rule set for deeper mutation and variation coverage.
Example
john --rules:Jumbo --wordlist=rockyou.txt hashes.txtjohn --single hashes.txtUses login names and GECOS information to guess passwords based on user data.
john --incremental hashes.txtStarts a powerful brute-force mode trying all possible character combinations.
john --incremental:Alpha hashes.txtRestricts incremental brute-force to alphabetic characters only.
john --incremental:Digits hashes.txtRestricts incremental brute-force to numeric digits only.
john --wordlist=FILE --mask=MASK hashes.txtAppends a mask to each word in the wordlist (e.g., password12).
Example
john --wordlist=rockyou.txt --mask=?w?d?d hashes.txtjohn --shells=LIST hashes.txtTargets accounts that use specific valid login shells.
Example
john --shells=/bin/bash,/bin/sh hashes.txtjohn --status=NAMEPrints the current status and progress of a running or paused session.
Example
john --status=job1john --pot=FILE hashes.txtUses a custom pot file path instead of the default ~/.john/john.pot.
Example
john --pot=secure.pot hashes.txtjohn --loopback hashes.txtUses previously cracked passwords in the pot file as a dictionary for new hashes.
john --config=FILE hashes.txtLoads settings and rules from a custom configuration file.
Example
john --config=my_john.conf hashes.txtjohn --rules:Wordlist --wordlist=FILE hashes.txtUses the complex 'Wordlist' rule section defined in john.conf.
Example
john --rules:Wordlist --wordlist=rockyou.txt hashes.txtjohn --markov=MODE hashes.txtUses Markov chains to generate candidates based on statistical character frequency.
Example
john --markov=200 hashes.txtjohn --make-charset=FILEGenerates a custom charset file based on current pot file statistics.
Example
john --make-charset=custom.chrjohn --incremental=MODE --min-length=N --max-length=N hashes.txtForces incremental mode to focus strictly on a specific password length range.
Example
john --incremental=Alpha --min-length=8 --max-length=8 hashes.txtjohn --stdout --wordlist=FILE --rulesOutputs generated password candidates to stdout without cracking (for piping).
Example
john --stdout --wordlist=rockyou.txt --rulesjohn --stdout --incrementalOutputs brute-force candidates to stdout to pipe into other tools like Hashcat.
Example
john --stdout --incremental:Alphajohn --show --format=NAME --users=LIST hashes.txtShows cracked credentials filtered by format and specific username.
Example
john --show --format=Raw-MD5 --users=admin hashes.txtjohn --test --format=NAMEBenchmarks a specific algorithm to check speed and stability on the host.
Example
john --test --format=bcryptjohn --prince=FILE hashes.txtUses the PRINCE algorithm (PRobability INfinite Chained Elements) for candidate generation.
Example
john --prince=words.txt hashes.txtjohn --save-memory=LEVEL hashes.txtAdjusts memory usage logic (1-3) for memory-constrained environments.
Example
john --save-memory=1 hashes.txtjohn --regex=PATTERN hashes.txtGenerates candidates based on a specific regular expression pattern.
Example
john --regex='[a-z]{5}[0-9]{2}' hashes.txtjohn --salts=N hashes.txtProcesses only if the number of salts meets the specified threshold.
Example
john --salts=10 hashes.txtjohn --costs=MIN:MAX hashes.txtFilters hashes based on cost factors (e.g., bcrypt rounds) to skip slow hashes.
Example
john --costs=10:12 hashes.txtjohn --show --left hashes.txtDisplays only the uncracked hashes remaining in the file.
john --mask=?d?d?w?d?d --wordlist=FILE hashes.txtInjects the dictionary word into the middle of the mask pattern.
Example
john --mask=?d?d?w?d?d --wordlist=words.txt hashes.txtjohn --wordlist=FILE --mem-file-size=N hashes.txtControls buffer size for loading wordlists to optimize large file handling.
Example
john --wordlist=huge.txt --mem-file-size=10000000 hashes.txtjohn --show --format=NAME hashes.txt > report.txtExports cracked NTLM hashes to a file for lateral movement analysis.
Example
john --show --format=nt hashes.txt > cracked_ntlm.txtjohn --rules --wordlist=FILE --stdout | headPreviews the first 20 outputs of a rule set to verify mutation logic.
Example
john --rules --wordlist=pass.txt --stdout | head -n 20john --list=build-optionsChecks how the binary was compiled (e.g., SIMD, OpenMP) for optimization.
john --mask=MASK --min-length=N hashes.txtOverrrides config defaults to force an exact mask length.
Example
john --mask=?l?l?l?l?l?l?l?l --min-length=8 hashes.txtjohn --restore-timer=N hashes.txtSets the interval for writing the restore file to prevent data loss on crash.
Example
john --restore-timer=60 hashes.txtjohn --list=formats --format=dynamicLists only generic dynamic formats (useful for custom hash construction).
john --format=NAME --dev=N hashes.txtTargets a specific OpenCL device ID for cracking.
Example
john --format=descrypt-opencl --dev=1 hashes.txtjohn --wordlist=FILE --dupe-suppression hashes.txtSuppresses duplicate candidates generated from an unsorted wordlist.
Example
john --wordlist=messy.txt --dupe-suppression hashes.txtjohn --pot=new.pot --loopback=old.pot hashes.txtFeeds cracks from a master pot file into a specific session pot file.
Example
john --pot=session.pot --loopback=master.pot hashes.txtqSafely aborts the current session and saves the restore point state.
Example
Press 'q' during executionThe world’s fastest GPU password cracker: hundreds of hash types with dictionary, rule, mask and hybrid attack modes.
Generates wordlists from character sets and patterns — every combination of a given length, or a precise mask.
Takes a wordlist and produces mangled variations — reversals, leetspeak, case changes, appended years — for password attacks.