John the Ripper — versatile password cracker with hash extraction helpers for common file formats.
john hash.txt
john hash.txt --wordlist=/usr/share/wordlists/rockyou.txt
john hash.txt --wordlist=rockyou.txt --rules
john hash.txt --format=NT
john hash.txt --format=sha512crypt
john hash.txt --format=bcrypt
john --show hash.txt
john --list=formats
unshadow /etc/passwd /etc/shadow > hash.txt
zip2john archive.zip > zip_hash.txt && john zip_hash.txt --wordlist=rockyou.txt
rar2john archive.rar > rar_hash.txt && john rar_hash.txt --wordlist=rockyou.txt
pdf2john document.pdf > pdf_hash.txt && john pdf_hash.txt --wordlist=rockyou.txt
ssh2john id_rsa > ssh_hash.txt && john ssh_hash.txt --wordlist=rockyou.txt
office2john protected.docx > docx_hash.txt && john docx_hash.txt --wordlist=rockyou.txt
keepass2john database.kdbx > kp_hash.txt && john kp_hash.txt --wordlist=rockyou.txt
7z2john archive.7z > 7z_hash.txt && john 7z_hash.txt --wordlist=rockyou.txt
john hash.txt --incremental
john hash.txt --incremental=digits
john hash.txt --mask=?u?l?l?l?l?d?d
john hash.txt --fork=4
john hash.txt --pot=custom.pot
john hash.txt --restore
john hash.txt --session=mysession