Cybertricks
Học tậpCông cụCheatsheetsBlog
CtrlK
Web Security
Network Security
Linux Security
Windows Security
Cloud Security
Cryptography
Cybertricks
Học tậpCông cụCheatsheetsBlog
CtrlK
Web Security
Network Security
Linux Security
Windows Security
Cloud Security
Cryptography
CheatsheetsCryptographyHash Identification & Cracking Cheat Sheet
Quay lại danh mục Cryptography
CLI• 30+ Commands• Cập nhật: 2026-07-28

Hash Identification & Cracking Cheat Sheet

Nhận diện loại Hash (MD5, SHA-1, SHA-256, bcrypt) và kỹ thuật crack bằng Hashcat, John the Ripper với các attack modes phổ biến.

Tổng quan & Hướng dẫn sử dụng

Hash cracking là kỹ thuật phục hồi plaintext từ giá trị hash thông qua dictionary attack, brute-force hoặc rainbow table. Đây là bước quan trọng trong giai đoạn Post-Exploitation sau khi dump được credentials.

Nhận diện loại Hash

Xác định thuật toán băm dựa trên độ dài và ký tự đặc trưng.

Identify Hash Type with hashid

bash
hashid -m '5f4dcc3b5aa765d61d8327deb882cf99'

Common Hash Length Reference

text
MD5:     32 chars  → 5f4dcc3b5aa765d61d8327deb882cf99
SHA-1:   40 chars  → 5baa61e4c9b93f3f0682250b6cf8331b
SHA-256: 64 chars  → 5e884898da28...
bcrypt:  60 chars  → $2y$10$...

Hashcat Attack Modes

Các chế độ tấn công Hashcat phổ biến nhất.

Dictionary Attack (Mode 0) — MD5

bash
hashcat -m 0 -a 0 hash.txt /usr/share/wordlists/rockyou.txt

Dictionary + Rules (Best64)

bash
hashcat -m 0 -a 0 hash.txt rockyou.txt -r best64.rule

Brute-Force Mask Attack (Mode 3)

bash
hashcat -m 0 -a 3 hash.txt ?u?l?l?l?d?d?d?d

bcrypt Hash Cracking (Mode 3200)

bash
hashcat -m 3200 -a 0 bcrypt.txt rockyou.txt --force

John the Ripper

Crack password hash với John the Ripper.

Auto-detect & Crack

bash
john --wordlist=/usr/share/wordlists/rockyou.txt hash.txt

Show Cracked Passwords

bash
john --show hash.txt

Crack /etc/shadow File

bash
unshadow /etc/passwd /etc/shadow > combined.txt
john --wordlist=rockyou.txt combined.txt

Cheatsheets liên quan

Payload25+ Techniques

Encoding & Decoding Quick Reference

Bảng tra cứu nhanh các kỹ thuật mã hóa/giải mã Base64, URL Encoding, Hex, HTML Entity, JWT decode và Cyberchef.

Bypass WAF45+ Payloads

Cross-Site Scripting (XSS) Payloads & Bypass

Tổng hợp các payload XSS cơ bản đến nâng cao bao gồm Reflected, Stored, DOM-based XSS và kỹ thuật bypass Filter/WAF.

Payload35+ Queries

SQL Injection (SQLi) Cheat Sheet

Khai thác lỗ hổng tiêm mã SQL: UNION-based, Error-based, Blind Boolean, Time-based SQLi trên MySQL, PostgreSQL & MSSQL.

Trong trang này

  • Tổng quan Hash Cracking
  • Nhận diện loại Hash
  • Hashcat Attack Modes
  • John the Ripper