☼
⌃
☰

CeWL

Table of Contents

Custom Wordlist Generator. Spiders a target website and extracts words to build a target-specific wordlist. Useful when attacking login portals or credentials associated with an organisation — employees often use company-related words in passwords.

Related: Wordlists Hydra Hashcat

Core Flags

Flag Description
-d Depth to spider (default 2)
-m Minimum word length (default 3)
-w Output file
--email Extract email addresses
--meta Extract metadata from documents
-a Include words from alt tags
--with-numbers Include words containing numbers

Common Workflows

SHELL
# Basic — spider target, output wordlist
cewl https://target.com -w wordlist.txt

# Deeper crawl, longer words only
cewl https://target.com -d 3 -m 6 -w wordlist.txt

# Include email addresses
cewl https://target.com --email -w wordlist.txt

# Include metadata from PDFs and Office docs found on site
cewl https://target.com --meta -w wordlist.txt

# Use the wordlist with Hydra
hydra -L users.txt -P wordlist.txt target.com http-post-form \
  "/login:username=^USER^&password=^PASS^:Invalid"

Tips

  • CeWL is most effective against corporate portals where employees are likely to use company-related words
  • Combine with rules in Hashcat (--rules-file) to generate variations — capitalisation, appended numbers, etc.
  • Run with --meta to capture words from any downloadable documents linked on the site — often contains internal terminology not on public-facing pages