{"tool":"john","name":"John the Ripper","description":"A versatile password cracker (use the “jumbo” build) with automatic hash detection and *2john helpers for files, archives and keys.","tags":["password cracking","hashes","CPU"],"homepage":"https://www.openwall.com/john/","docs":"https://www.openwall.com/john/doc/","install":{"apt":"sudo apt install john","brew":"brew install john-jumbo","docker":"docker run -it --rm openwall/john"},"related":["hashcat","crunch"],"total_commands":60,"commands":[{"id":1,"category":"Basic Usage","command":"john hashes.txt","example":"john hashes.txt","explanation":"Runs John in default mode with automatic format detection and Single crack mode."},{"id":2,"category":"Basic Usage","command":"john --show hashes.txt","example":"john --show hashes.txt","explanation":"Displays passwords that have already been cracked and stored in the pot file."},{"id":3,"category":"Installation & Test","command":"john --test","example":"john --test","explanation":"Benchmarks the system performance for all supported algorithms to verify installation."},{"id":4,"category":"Format Identification","command":"john --list=formats","example":"john --list=formats","explanation":"Lists all hash formats supported by the installed version of John the Ripper."},{"id":5,"category":"Specific Format","command":"john --format=NAME hashes.txt","example":"john --format=Raw-MD5 hashes.txt","explanation":"Forces John to use a specific hash format avoiding auto-detection errors."},{"id":6,"category":"Dictionary Attack","command":"john --wordlist=FILE hashes.txt","example":"john --wordlist=rockyou.txt hashes.txt","explanation":"Performs a standard dictionary attack using the provided wordlist file."},{"id":7,"category":"Dictionary Attack","command":"john --wordlist=FILE --format=NAME hashes.txt","example":"john --wordlist=rockyou.txt --format=sha512crypt hashes.txt","explanation":"Combines a wordlist attack with a specific format specification for efficiency."},{"id":8,"category":"Standard Input","command":"cat words.txt | john --stdin hashes.txt","example":"cat custom_words.txt | john --stdin hashes.txt","explanation":"Reads candidate passwords from standard input instead of a file."},{"id":9,"category":"Rule Based Attack","command":"john --wordlist=FILE --rules hashes.txt","example":"john --wordlist=rockyou.txt --rules hashes.txt","explanation":"Applies the default set of rules from john.conf to mutate words in the wordlist."},{"id":10,"category":"Rule Based Attack","command":"john --rules:Jumbo --wordlist=FILE hashes.txt","example":"john --rules:Jumbo --wordlist=rockyou.txt hashes.txt","explanation":"Uses the extensive Jumbo rule set for deeper mutation and variation coverage."},{"id":11,"category":"Single Crack Mode","command":"john --single hashes.txt","example":"john --single hashes.txt","explanation":"Uses login names and GECOS information to guess passwords based on user data."},{"id":12,"category":"Incremental Mode","command":"john --incremental hashes.txt","example":"john --incremental hashes.txt","explanation":"Starts a powerful brute-force mode trying all possible character combinations."},{"id":13,"category":"Incremental Mode","command":"john --incremental:Alpha hashes.txt","example":"john --incremental:Alpha hashes.txt","explanation":"Restricts incremental brute-force to alphabetic characters only."},{"id":14,"category":"Incremental Mode","command":"john --incremental:Digits hashes.txt","example":"john --incremental:Digits hashes.txt","explanation":"Restricts incremental brute-force to numeric digits only."},{"id":15,"category":"Mask Attack","command":"john --mask=MASK hashes.txt","example":"john --mask=?a?a?a?a?a?a hashes.txt","explanation":"Attacks using a specific pattern where ?a represents all printable characters."},{"id":16,"category":"Mask Attack","command":"john --mask=?u?l?l?l?d?d hashes.txt","example":"john --mask=?u?l?l?l?d?d hashes.txt","explanation":"Targets patterns like Upper-Lower-Lower-Lower-Digit-Digit (e.g., Pass12)."},{"id":17,"category":"Hybrid Attack","command":"john --wordlist=FILE --mask=MASK hashes.txt","example":"john --wordlist=rockyou.txt --mask=?w?d?d hashes.txt","explanation":"Appends a mask to each word in the wordlist (e.g., password12)."},{"id":18,"category":"User Targeting","command":"john --users=LIST hashes.txt","example":"john --users=admin,root hashes.txt","explanation":"Restricts the attack to only the specified usernames within the hash file."},{"id":19,"category":"User Targeting","command":"john --users=!LIST hashes.txt","example":"john --users=!guest,support hashes.txt","explanation":"Excludes specific usernames from the attack scope."},{"id":20,"category":"Shell Filtering","command":"john --shells=LIST hashes.txt","example":"john --shells=/bin/bash,/bin/sh hashes.txt","explanation":"Targets accounts that use specific valid login shells."},{"id":21,"category":"Session Management","command":"john --session=NAME hashes.txt","example":"john --session=job1 hashes.txt","explanation":"Assigns a specific name to the cracking session for easier management."},{"id":22,"category":"Session Management","command":"john --restore=NAME","example":"john --restore=job1","explanation":"Resumes a previously interrupted cracking session from the exact stopping point."},{"id":23,"category":"Status Monitoring","command":"john --status=NAME","example":"john --status=job1","explanation":"Prints the current status and progress of a running or paused session."},{"id":24,"category":"Pot File Management","command":"john --pot=FILE hashes.txt","example":"john --pot=secure.pot hashes.txt","explanation":"Uses a custom pot file path instead of the default ~/.john/john.pot."},{"id":25,"category":"Loopback Attack","command":"john --loopback hashes.txt","example":"john --loopback hashes.txt","explanation":"Uses previously cracked passwords in the pot file as a dictionary for new hashes."},{"id":26,"category":"Configuration","command":"john --config=FILE hashes.txt","example":"john --config=my_john.conf hashes.txt","explanation":"Loads settings and rules from a custom configuration file."},{"id":27,"category":"Performance Tuning","command":"john --fork=N hashes.txt","example":"john --fork=4 hashes.txt","explanation":"Splits the workload across N CPU cores processes for parallel cracking."},{"id":28,"category":"Performance Tuning","command":"john --max-run-time=N hashes.txt","example":"john --max-run-time=3600 hashes.txt","explanation":"Gracefully stops the attack after N seconds (useful for time-boxed audits)."},{"id":29,"category":"Advanced Rules","command":"john --rules:Wordlist --wordlist=FILE hashes.txt","example":"john --rules:Wordlist --wordlist=rockyou.txt hashes.txt","explanation":"Uses the complex 'Wordlist' rule section defined in john.conf."},{"id":30,"category":"External Mode","command":"john --external=MODE hashes.txt","example":"john --external=Keyboard hashes.txt","explanation":"Uses an external C-like function defined in the config (e.g., keyboard walk)."},{"id":31,"category":"External Mode","command":"john --external=Repeats hashes.txt","example":"john --external=Repeats hashes.txt","explanation":"Generates candidates with repeating patterns defined in external config functions."},{"id":32,"category":"Markov Mode","command":"john --markov=MODE hashes.txt","example":"john --markov=200 hashes.txt","explanation":"Uses Markov chains to generate candidates based on statistical character frequency."},{"id":33,"category":"Custom Charset","command":"john --make-charset=FILE","example":"john --make-charset=custom.chr","explanation":"Generates a custom charset file based on current pot file statistics."},{"id":34,"category":"Custom Charset Usage","command":"john --incremental=MODE --min-length=N --max-length=N hashes.txt","example":"john --incremental=Alpha --min-length=8 --max-length=8 hashes.txt","explanation":"Forces incremental mode to focus strictly on a specific password length range."},{"id":35,"category":"Candidate Generation","command":"john --stdout --wordlist=FILE --rules","example":"john --stdout --wordlist=rockyou.txt --rules","explanation":"Outputs generated password candidates to stdout without cracking (for piping)."},{"id":36,"category":"Candidate Generation","command":"john --stdout --incremental","example":"john --stdout --incremental:Alpha","explanation":"Outputs brute-force candidates to stdout to pipe into other tools like Hashcat."},{"id":37,"category":"Output Formatting","command":"john --show --format=NAME --users=LIST hashes.txt","example":"john --show --format=Raw-MD5 --users=admin hashes.txt","explanation":"Shows cracked credentials filtered by format and specific username."},{"id":38,"category":"Hash Type Validation","command":"john --test --format=NAME","example":"john --test --format=bcrypt","explanation":"Benchmarks a specific algorithm to check speed and stability on the host."},{"id":39,"category":"Prince Integration","command":"john --prince=FILE hashes.txt","example":"john --prince=words.txt hashes.txt","explanation":"Uses the PRINCE algorithm (PRobability INfinite Chained Elements) for candidate generation."},{"id":40,"category":"Memory Tuning","command":"john --save-memory=LEVEL hashes.txt","example":"john --save-memory=1 hashes.txt","explanation":"Adjusts memory usage logic (1-3) for memory-constrained environments."},{"id":41,"category":"Regex Mode","command":"john --regex=PATTERN hashes.txt","example":"john --regex='[a-z]{5}[0-9]{2}' hashes.txt","explanation":"Generates candidates based on a specific regular expression pattern."},{"id":42,"category":"Salt Management","command":"john --salts=N hashes.txt","example":"john --salts=10 hashes.txt","explanation":"Processes only if the number of salts meets the specified threshold."},{"id":43,"category":"Cost Management","command":"john --costs=MIN:MAX hashes.txt","example":"john --costs=10:12 hashes.txt","explanation":"Filters hashes based on cost factors (e.g., bcrypt rounds) to skip slow hashes."},{"id":44,"category":"Blue Team Audit","command":"john --show --left hashes.txt","example":"john --show --left hashes.txt","explanation":"Displays only the uncracked hashes remaining in the file."},{"id":45,"category":"Red Team Analysis","command":"john --list=rules","example":"john --list=rules","explanation":"Lists all rule sections defined in the configuration for auditing attack logic."},{"id":46,"category":"Red Team Analysis","command":"john --list=opencl-devices","example":"john --list=opencl-devices","explanation":"Enumerates available OpenCL devices (GPUs) for hardware acceleration."},{"id":47,"category":"Automation","command":"john --progress-every=N hashes.txt","example":"john --progress-every=10 hashes.txt","explanation":"Emits status lines every N seconds for automated log parsing."},{"id":48,"category":"Automation","command":"john --no-log hashes.txt","example":"john --no-log hashes.txt","explanation":"Disables logging to the .log file to reduce I/O or artifacts."},{"id":49,"category":"Mask Hybrid","command":"john --mask=?d?d?w?d?d --wordlist=FILE hashes.txt","example":"john --mask=?d?d?w?d?d --wordlist=words.txt hashes.txt","explanation":"Injects the dictionary word into the middle of the mask pattern."},{"id":50,"category":"Advanced Dictionary","command":"john --wordlist=FILE --mem-file-size=N hashes.txt","example":"john --wordlist=huge.txt --mem-file-size=10000000 hashes.txt","explanation":"Controls buffer size for loading wordlists to optimize large file handling."},{"id":51,"category":"Incident Response","command":"john --show --format=NAME hashes.txt > report.txt","example":"john --show --format=nt hashes.txt > cracked_ntlm.txt","explanation":"Exports cracked NTLM hashes to a file for lateral movement analysis."},{"id":52,"category":"Rule Debugging","command":"john --rules --wordlist=FILE --stdout | head","example":"john --rules --wordlist=pass.txt --stdout | head -n 20","explanation":"Previews the first 20 outputs of a rule set to verify mutation logic."},{"id":53,"category":"Dynamic Compilation","command":"john --list=build-options","example":"john --list=build-options","explanation":"Checks how the binary was compiled (e.g., SIMD, OpenMP) for optimization."},{"id":54,"category":"Custom Mask Config","command":"john --mask=MASK --min-length=N hashes.txt","example":"john --mask=?l?l?l?l?l?l?l?l --min-length=8 hashes.txt","explanation":"Overrrides config defaults to force an exact mask length."},{"id":55,"category":"Environment Safety","command":"john --restore-timer=N hashes.txt","example":"john --restore-timer=60 hashes.txt","explanation":"Sets the interval for writing the restore file to prevent data loss on crash."},{"id":56,"category":"Format Filtering","command":"john --list=formats --format=dynamic","example":"john --list=formats --format=dynamic","explanation":"Lists only generic dynamic formats (useful for custom hash construction)."},{"id":57,"category":"Hardware Acceleration","command":"john --format=NAME --dev=N hashes.txt","example":"john --format=descrypt-opencl --dev=1 hashes.txt","explanation":"Targets a specific OpenCL device ID for cracking."},{"id":58,"category":"Dupe Suppression","command":"john --wordlist=FILE --dupe-suppression hashes.txt","example":"john --wordlist=messy.txt --dupe-suppression hashes.txt","explanation":"Suppresses duplicate candidates generated from an unsorted wordlist."},{"id":59,"category":"Pot Sync","command":"john --pot=new.pot --loopback=old.pot hashes.txt","example":"john --pot=session.pot --loopback=master.pot hashes.txt","explanation":"Feeds cracks from a master pot file into a specific session pot file."},{"id":60,"category":"Safe Termination","command":"q","example":"Press 'q' during execution","explanation":"Safely aborts the current session and saves the restore point state."}],"slug":"john","category":"credentials","url":"https://terminal.rokibulroni.com/tool/credentials/john","markdown":"https://terminal.rokibulroni.com/api/v1/tools/credentials/john.md"}