Back to skills
SKILL.md
John Crack
BSecurityJohn the Ripper: format detection, rules, incremental mode
- 2 stars
- 0 votes
- 0 copies
- 0 views
- Added November 29, 2026
Security analysis
88/100- Reads or references SSH private keys
npx -y skills add blackfoxxx/kestrel --skill john-crack --agent claude-codeAre you the author of John Crack?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/blackfoxxx-john-crack)---
name: john-crack
description: "John the Ripper: format detection, rules, incremental mode"
metadata:
tags: "john,crack,password,password cracking,hash,MD5,NTLM,Kerberos,dictionary attack,rules,brute force"
category: "tool"
---
# John the Ripper Offline Password Cracking Methodology
John the Ripper is the most classic offline password cracking tool. Core strengths: **automatic hash identification** + **rich rule engine** + **the *2john extraction toolchain**. Supports 200+ hash types.
Project page: https://github.com/openwall/john
## Phase 1: Basic Cracking
```bash
# Auto-detect the hash type and crack
john hashes.txt
# Specify the hash format
john --format=Raw-MD5 hashes.txt
john --format=NT hashes.txt
john --format=Raw-SHA256 hashes.txt
# Dictionary attack
john --wordlist=rockyou.txt hashes.txt
# View already-cracked passwords
john --show hashes.txt
```
## Phase 2: Rule-Based Mutation Attacks
```bash
# Dictionary + default rules
john --wordlist=rockyou.txt --rules hashes.txt
# Dictionary + best64 rules (most common)
john --wordlist=rockyou.txt --rules=best64 hashes.txt
# Dictionary + Jumbo rules (more comprehensive)
john --wordlist=rockyou.txt --rules=Jumbo hashes.txt
# Dictionary + KoreLogic rules (most complex, slowest)
john --wordlist=rockyou.txt --rules=KoreLogic hashes.txt
# List available rules
john --list=rules
```
## Phase 3: Hash Extraction (*2john Toolchain)
```bash
# ZIP file
zip2john secret.zip > zip_hash.txt
john zip_hash.txt
# RAR file
rar2john secret.rar > rar_hash.txt
# PDF file
pdf2john.pl secret.pdf > pdf_hash.txt
# SSH private key
ssh2john id_rsa > ssh_hash.txt
# KeePass database
keepass2john database.kdbx > keepass_hash.txt
# Office document
office2john document.docx > office_hash.txt
# Kerberos TGS (Kerberoasting)
john --format=krb5tgs --wordlist=rockyou.txt tgs_hashes.txt
# Kerberos AS-REP (AS-REP Roasting)
john --format=krb5asrep --wordlist=rockyou.txt asrep_hashes.txt
# NTLM Hash
john --format=NT --wordlist=rockyou.txt ntlm_hashes.txt
```
## Phase 4: Incremental and Mask Attacks
```bash
# Incremental mode (pure brute force, automatically increasing length)
john --incremental hashes.txt
# Specify a character set
john --incremental=Digits hashes.txt # digits only
john --incremental=Alnum hashes.txt # alphanumeric
john --incremental=ASCII hashes.txt # full ASCII
# Mask attack (Hashcat-style)
john --mask='?d?d?d?d?d?d' hashes.txt # 6 digits
john --mask='?u?l?l?l?d?d?d?s' hashes.txt # uppercase+lowercasex3+digitsx3+special
```
## Phase 5: Practical Tips
```bash
# Resume an interrupted crack
john --restore
# View current progress
john --status
# Multi-core parallel
john --fork=4 --wordlist=rockyou.txt hashes.txt
# Specify a session name
john --session=my_crack --wordlist=rockyou.txt hashes.txt
# Crack only a specific user
john --users=admin hashes.txt
```
## Common Pentest Scenarios
| Scenario | Command |
|------|------|
| NTLM cracking | `john --format=NT --wordlist=rockyou.txt ntlm.txt` |
| Kerberoasting | `john --format=krb5tgs --wordlist=rockyou.txt tgs.txt` |
| SSH key cracking | `ssh2john id_rsa > h.txt && john --wordlist=rockyou.txt h.txt` |
| ZIP password cracking | `zip2john file.zip > h.txt && john h.txt` |
| Linux shadow | `john --wordlist=rockyou.txt /tmp/shadow` |
| Dictionary + rules | `john --wordlist=rockyou.txt --rules=best64 hashes.txt` |
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.