Skip to content

CeWL

60 commands

Spiders a website and builds a custom wordlist from the words it finds — great for targeted password guesses.

  • wordlists
  • spidering
  • OSINT

Install CeWL

sudo apt install cewl

Basic Wordlist Generation3

cewl http://example.com

Standard crawl of a URL to generate a wordlist printed to stdout.

cewl http://example.com -w wordlist.txt

Crawls the target and saves the generated wordlist to a specific file.

cewl http://example.com -v

Runs the crawl in verbose mode to see processing details in real-time.

Depth Control3

cewl -d 0 http://example.com

Spiders only the specified page without following any links.

cewl -d 2 http://example.com

Crawls the target URL to a depth of 2 links deep.

cewl -d 5 http://example.com

Deep crawl up to 5 levels suitable for large corporate sites.

Word Length Filtering3

cewl -m 5 http://example.com

Extracts only words that are at least 5 characters long.

cewl -m 8 http://example.com

Extracts words with a minimum length of 8 chars for stronger password policies.

cewl -m 12 http://example.com

Targets passphrases by filtering for words 12 characters or longer.

Case Handling2

cewl --lowercase http://example.com

Normalizes all discovered words to lowercase format.

Link
cewl --lowercase -w lower.txt http://example.com

Saves a lowercase-only wordlist to a file for case-insensitive attacks.

Link

Character Handling2

cewl --with-numbers http://example.com

Includes words containing numbers which are usually ignored by default.

Link
cewl --convert-umlauts http://example.com

Converts German umlauts to standard ASCII characters.

Link

Word Counting2

cewl -c http://example.com

Displays the frequency count of each word found on the site.

Link
cewl -c -w counts.txt http://example.com

Writes the word frequency counts to a file for analysis.

Link

Offsite Crawling2

cewl -o http://example.com

Allows the spider to visit external sites linked from the target.

Link
cewl -o -d 2 http://example.com

Crawls external links up to a depth of 2 for broader reconnaissance.

Link

Authentication2

cewl --auth_type Basic --auth_user admin --auth_pass secret http://example.com/protected

Crawls a page protected by HTTP Basic Authentication.

Link
cewl --auth_type Digest --auth_user admin --auth_pass secret http://example.com/protected

Crawls a page protected by HTTP Digest Authentication.

Link

Proxy Configuration1

cewl --proxy_host 127.0.0.1 --proxy_port 8080 http://example.com

Routes traffic through a local proxy like Burp Suite or ZAP.

Link

User Agent Customization2

cewl --ua "Googlebot/2.1" http://example.com

Spoofs the User-Agent string to mimic a Google crawler.

Link
cewl --ua "Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X)" http://example.com

Spoofs a mobile device user agent to capture mobile-specific content.

Link

Email Harvesting3

cewl -e http://example.com

Extracts email addresses found within the page content.

Link
cewl -e --email_file emails.txt http://example.com

Extracts emails and saves them to a separate dedicated file.

Link
cewl -e -n http://example.com

Collects emails but suppresses the generation of the wordlist.

Link

Meta Data Extraction2

cewl -a http://example.com

Extracts metadata from discovered files during the crawl.

Link
cewl -a --meta_file metadata.txt http://example.com

Writes extracted metadata information to a specific file.

Link

Debug Mode1

cewl --debug http://example.com

Runs in debug mode providing extensive internal execution details.

Link

Advanced Filtering1

cewl --no-words http://example.com

Performs the crawl without outputting any words useful for dry runs.

Link

N-Grams Generation2

cewl -g 2 http://example.com

Generates 2-word phrases (bigrams) instead of single words.

Link
cewl -g 3 http://example.com

Generates 3-word phrases (trigrams) for phrase-based dictionary attacks.

Link

Red Team Recon Workflow3

cewl -d 3 -m 5 --lowercase -w target_recon.txt http://example.com

Standard red team setup for a deep, case-insensitive wordlist.

Link
cewl -d 2 -o -w external_scope.txt http://example.com

Gathers words from the target and immediate external links for wider context.

Link
cewl -d 2 -e --email_file targets.txt -n http://example.com

Targeted phishing list generation focusing solely on emails.

Link

Blue Team Validation3

cewl -m 10 -w compliance_check.txt http://example.com

Generates a list of long words to test against maximum password length policies.

Link
cewl -d 5 --with-numbers -w policy_audit.txt http://example.com

Audits site content for alphanumeric patterns that might appear in passwords.

Link
cewl -a --meta_file potential_leaks.txt http://example.com

Scans for metadata that might reveal internal software versions or user names.

Link

Complex Workflow3

cewl -d 2 -m 5 --with-numbers --lowercase -w complex.txt http://example.com

Combines numbers, lowercase normalization, and depth for a robust hybrid list.

Link
cewl -u "Baiduspider" -d 3 -v http://example.com

Deep crawl masquerading as Baidu spider with verbose logging.

Link
cewl --auth_type Basic --auth_user test --auth_pass test -w internal.txt http://192.168.1.10

Internal network scan of a basic auth protected device.

Link

Output Hygiene2

cewl http://example.com > raw_output.txt

Redirects stdout to a file using shell redirection instead of the -w flag.

Link
cewl -d 1 -m 6 http://example.com | sort -u

Pipes output to sort for immediate deduplication.

Link

Targeting Specific Assets1

cewl -d 3 --keep http://example.com

Retains the downloaded files locally for further manual analysis.

Link

Advanced Proxy Usage1

cewl --proxy_host 10.10.10.5 --proxy_port 3128 -v http://example.com

Uses an upstream corporate proxy with verbose output to debug connection issues.

Link

Custom Header Simulation1

cewl --ua "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)" http://example.com

Simulates a legacy browser to potentially trigger different server responses.

Link

Aggressive Crawl1

cewl -d 7 -m 4 http://example.com

Very deep crawl accepting short words, high noise potential.

Link

Precise Crawl1

cewl -d 1 -m 8 --lowercase --no-words --email_file targets.txt http://example.com

Shallow scan strictly for emails with no wordlist generation.

Link

Meta Analysis Direct1

cewl -a -d 3 http://example.com

Deep meta data extraction printed directly to console.

Link

Phrase Attack Prep1

cewl -g 4 -w passphrases.txt http://example.com

Creates a list of 4-word sentences for passphrase attacks.

Link

Incident Response1

cewl -d 2 -m 4 --with-numbers -w incident_context.txt http://defaced-site.com

Quickly profiles a compromised site to identify injected keywords.

Link

High Precision Wordlist1

cewl -d 2 -m 6 -c -w frequencies.txt http://example.com

Generates a frequency map of 6+ letter words to identify key topics.

Link

Bypassing WAF Detection1

cewl --ua "Bingbot/2.0" -d 2 http://example.com

Attempts to bypass WAF bot detection by mimicking Bing.

Link

Mixed Auth & Proxy1

cewl --proxy_host 127.0.0.1 --proxy_port 8080 --auth_type Basic --auth_user admin --auth_pass admin http://example.com

Routes authenticated traffic through a proxy for inspection.

Link

German Language Targeting1

cewl --convert-umlauts -d 2 -w german_words.txt http://example.de

Specialized crawl for German sites ensuring character correctness.

Link

Full Site Map Crawl1

cewl -d 10 -m 5 -w full_site.txt http://example.com

Extremely deep crawl attempting to map the entire site vocabulary.

Link

Developer Comment Hunting1

cewl -d 2 -a --meta_file comments.txt http://dev.example.com

Targets development subdomains extracting metadata and potential leaks.

Link

Single Page Profiling1

cewl -d 0 -c -v http://example.com/login

Analyzes a single login page in verbose mode for keyword frequency.

Link

Pipeline Integration1

cewl http://example.com | grep 'admin'

Pipes output to grep to filter for specific high-value keywords immediately.

Link

Strict Min Length1

cewl -m 15 -w strong_passwords.txt http://example.com

Generates a list containing only very long words for high-security targets.

Link

Ultimate Recon Combo1

cewl -d 3 -m 5 --lowercase --with-numbers -a --meta_file meta.txt -e --email_file emails.txt -w words.txt http://example.com

All-in-one command gathering words, emails, and metadata simultaneously.

Link