root@sparrow:~/writeups$ cat cewl.md
// cracking
CeWL
21 Jul 2026
· 3 min read
CeWL (Custom Word List generator) is a Ruby spider that crawls a website and returns a list of the words it contains. It is used to build target-tailored wordlists, far more effective against passwords based on the organization's jargon, products or proper names than generic dictionaries.
The point is not the volume of words but their relevance: a small wordlist scraped from the target itself often beats rockyou.txt because users recycle terms they see every day. Tuning -d (depth) and -m (minimum length) filters noise, and the real potential shows when you chain the output into john or hashcat with mutation rules.
1. Beginner level — crawling and basic wordlist

| Command | What it does |
|---|---|
cewl https://<t> | Generates a wordlist from the site |
cewl https://<t> -w wl.txt | Saves the wordlist |
cewl https://<t> -d 3 | Crawl depth |
cewl https://<t> -m 6 | Minimum word length |
cewl https://<t> -c | Counts the frequency of each word |
cewl https://<t> --lowercase | Converts everything to lowercase |
cewl https://<t> -e | Also extracts email addresses |
cewl https://<t> -a | Includes file metadata |
cewl https://<t> -o | Leaves the domain (offsite) |
cewl https://<t> -v | Verbose mode |
cewl -h | Shows the help |
cewl https://<t> --with-numbers | Includes words containing numbers |
cewl https://<t> -u 'Mozilla/5.0' | Customizes the User-Agent |
cewl https://<t> -d 2 -m 5 -w wl.txt | Typical combination |
2. Advanced level — metadata, auth and chaining

| Command | What it does |
|---|---|
cewl https://<t> -a -e --email_file mails.txt | Metadata + emails to a file |
cewl https://<t> --meta_file meta.txt -a | Saves the metadata found |
cewl https://<t> -d 4 -m 6 -c -w wl.txt | Deep crawl with counting |
cewl https://<t> --proxy_host 127.0.0.1 --proxy_port 8080 | Through a proxy |
cewl https://<t> -H 'Cookie: s=x' | Headers (authenticated area) |
cewl https://<t> --auth_type basic --auth_user u --auth_pass p | Basic authentication |
cewl https://<t> -w wl.txt; john --wordlist=wl.txt hash | Chains with john |
cewl https://<t> --with-numbers -w base.txt | Base for hashcat rules |
cewl https://<t> -o -d 1 | One hop outside the domain |
cewl https://<t> | grep -iv the > wl.txt | Strips very common words |
cewl https://<t> -m 8 --lowercase -w wl.txt | Long words in lowercase |
cewl file:///ruta/local.html | Generates from a local file |
cewl https://<t> -a --meta-temp-dir /tmp | Temporary directory for metadata |
hashcat -a 0 hash wl.txt -r best64.rule | Uses the wordlist with rules |
3. Details people miss
- CeWL honours the domain scope by default: without
-oit never leaves the starting host, which keeps you from crawling half the internet, but if the useful content lives on a subdomain or CDN you must point at it explicitly. - Raise the depth carefully: each
-dlevel multiplies requests and time. On large sites a-d 4can take ages or generate detectable noise; start low and only increase it if the wordlist comes out thin. - Metadata extraction (
-a) needs theexifrgem and only pays off when the site publishes documents (PDF, DOCX, images) with embedded author or software fields; on sites without office files you will get nothing. - CeWL builds the wordlist, it does not crack: its output is raw material. Always chain it into
johnorhashcatand apply rules (best64.rule) to cover the uppercase, numbers and symbols the raw list omits. - Mind TLS: sites with self-signed certificates or broken chains can make the crawl fail; also make sure the URL carries the scheme (
https://), because CeWL does not assume it.
Responsible use
These commands are for systems you own or have explicit written authorisation to test (labs, CTFs, contracted engagements). Using them against third-party infrastructure without permission is illegal in most countries.