Course contentsShow
← Security
Lesson 2227 of 3,05243. Offensive Security ToolingFree lesson

Dictionary Attacks with Wordlists

Using pre-built and custom wordlists for dictionary-based attacks against password hashes.

Dictionary Attacks with Wordlists

What you'll learn: How to leverage pre-built and custom wordlists to crack password hashes through dictionary-based attacks.

The Core Idea

Now that you can identify hash types, it's time to crack them. A dictionary attack systematically tries every word from a wordlist against the captured hash, comparing the hash of each candidate password until a match is found. Think of it like having a huge "phone book" of common passwords—instead of guessing randomly, you test millions of real-world passwords people actually use.

Pre-Built Wordlists

Most password cracking tools come with or recommend famous wordlists:

  • rockyou.txt: 14+ million real passwords from a 2009 breach (often included in Kali Linux at /usr/share/wordlists/)
  • SecLists: Community-maintained collections for various attack types
  • CrackStation: Massive wordlists combining multiple breach datasets

These capture common passwords, patterns, and previously compromised credentials. They're your first line of attack because people reuse weak passwords constantly.

Custom Wordlists

Sometimes you need targeted wordlists based on reconnaissance:

  • Company-specific: Employee names, product names, locations from OSINT
  • Hybrid approaches: Combining words with common patterns (years, special characters)
  • Rules-based generation: Tools can mutate wordlists (capitalize, add numbers, substitute characters)

Custom wordlists are smaller but more relevant to your specific target, increasing your success rate when generic lists fail.

Why This Matters

Dictionary attacks are incredibly effective because human password behavior is predictable. Studies show that even after major breaches, millions still use "password123" or "Summer2023!". By testing known-good passwords first, you crack hashes faster than brute-forcing every possible combination.

Key Takeaway: Dictionary attacks use wordlists of real-world passwords to efficiently crack hashes—pre-built lists like rockyou.txt provide breadth, while custom wordlists offer targeted depth based on your reconnaissance.