Password Attacks
CeWL is a custom word list generator that spiders a target URL and creates a wordlist from the content. Great for targeted password attacks.
sudo apt install cewl
cewl <url>
CeWL (Custom Word List generator) is a Ruby-based tool that spiders a target website and generates a custom wordlist from the content it finds. Unlike generic wordlists, CeWL creates dictionaries tailored to the specific target organization.
By crawling the target website to a specified depth, CeWL extracts words from page content, including company names, product terms, employee names, and industry jargon. This produces wordlists far more effective than generic lists for password attacks against that specific organization.
CeWL also supports email extraction, making it useful for username enumeration. Combined with password mutation rules in tools like John the Ripper or Hashcat, CeWL-generated wordlists significantly improve password cracking success rates.
| Command | Purpose |
|---|---|
cewl -h | Show options supported by the installed build. |
cewl -d 0 -m 6 -x 16 --lowercase -w ./cewl-words.txt https://audit.example.test/ | Process only the authorized seed page. |
cewl -d 1 -m 6 -x 16 --allowed '^/docs/' -w ./cewl-docs.txt https://audit.example.test/docs/ | Constrain collection to documented paths. |
cewl -d 1 -m 6 -x 16 -e --email_file ./cewl-emails.txt -w ./cewl-words.txt https://audit.example.test/ | Separate words and discovered email addresses. |
cewl example.comSpider a site with default settings and print a wordlist to stdoutcewl -w wordlist.txt example.comWrite the harvested wordlist to a file instead of the screencewl -d 3 example.comIncrease the spidering depth to 3 links deep (default is 2)cewl -d 0 -w page.txt example.comScrape only the single supplied page (no link following)cewl -m 6 example.comOnly keep words that are at least 6 characters longcewl -m 5 -d 2 -w wordlist.txt example.comCommon combo: depth 2, minimum length 5, output to filecewl -c example.comShow the occurrence count next to each word foundcewl --lowercase example.comConvert every parsed word to lowercasecewl --with-numbers example.comAlso accept words that contain digits, not just letterscewl -o example.comAllow the spider to follow links to other (offsite) domainscewl -k example.comKeep the downloaded pages/files on disk after spideringcewl -e example.comExtract and include email addresses found on the sitecewl -e --email_file emails.txt example.comHarvest emails and write them to a dedicated filecewl -n -e example.comSkip the wordlist and only output the discovered email addressescewl -a example.comInclude document metadata (author, software) via exiftool parsingcewl -a --meta_file meta.txt example.comCollect metadata and save it to a separate output filecewl -u "Mozilla/5.0" example.comSend a custom User-Agent string while spideringcewl -v example.comRun in verbose mode to watch the spider's progresscewl --auth_type basic --auth_user <USER> --auth_pass <PASS> example.comSpider a site protected by HTTP Basic authenticationcewl --auth_type digest --auth_user <USER> --auth_pass <PASS> example.comSpider a site protected by HTTP Digest authenticationcewl --proxy_host 10.10.10.10 --proxy_port 8080 example.comRoute all spidering traffic through an HTTP proxycewl -H "Cookie: session=abcd1234" example.comAttach a custom header (e.g. an authenticated session cookie)cewl --exclude exclude.txt example.comSkip URLs/paths listed in an exclusion file while spideringcewl --allowed ".*blog.*" example.comOnly follow links whose path matches the given regexcewl -hDisplay the CeWL usage summary and all available optionsCreate wordlists using company-specific terms, products, and jargon from their website.
Extract email addresses from websites to build username lists for brute-force attacks.
Gather words and phrases for crafting targeted phishing emails and social engineering attacks.
Generate custom dictionaries for CTF challenges based on challenge-related websites.
Build target-specific password lists for more effective credential attacks.
CeWL generates wordlists by spidering a target website, producing target-specific dictionaries. Crunch generates wordlists from character sets and patterns without needing a website. Use CeWL when you have a web target; use Crunch for pattern-based generation like PINs or specific formats.
Yes. CeWL can generate custom wordlists from target websites that work well for WPA cracking. Spider the target's public website, then feed the output into aircrack-ng: aircrack-ng -w cewl_output.txt capture.cap. Target-specific words often yield better results than generic WPA wordlists.
The -d flag controls how many links deep the spider follows from the starting URL. Depth 0 scrapes only the initial page, depth 1 follows one level of links, depth 2 follows two levels, and so on. Higher depths capture more content but take longer and may produce very large wordlists.
First generate the wordlist with CeWL: cewl http://example.com -w wordlist.txt. Then crack with Hashcat using rules for mutations: hashcat -m 0 hashes.txt wordlist.txt -r rules/best64.rule. The rules append numbers, symbols, and capitalization variations to base words.
CeWL works on live websites only, but you can save pages offline and process them with the -f flag: cewl -f saved_page.html -w wordlist.txt. This is useful for creating phishing target wordlists from previously downloaded content or archived pages.
Not necessarily. Quality matters more than size. A focused wordlist from depth 2-3 with -m 5 filtering often cracks more passwords than an unfiltered list with thousands of irrelevant words. Use -c to check word frequency and prioritize high-occurrence terms.
Password Attacks
Crunch is a wordlist generator where you can specify a standard character set or a custom one. It can generate all possible combinations.
Password Attacks
Learn how to use Hashcat in Kali Linux as a beginner, from checking the install and selecting the right modes to running a wordlist crack and reading results.
Password Attacks
John the Ripper is a free and open-source password security auditing and password recovery tool. It can crack various password hash types offline and is highly customizable with different attack modes and mangling rules.
Password Attacks
Medusa is a speedy, parallel, and modular login brute-forcer. It supports many protocols including HTTP, FTP, SSH, SMB, MySQL, and more.
Password Attacks
CUPP (Common User Passwords Profiler) creates custom wordlists based on target personal information like names, birthdays, nicknames, pets, and keywords.
Password Attacks
Hydra is a parallelized login cracker that supports numerous protocols including FTP, HTTP, HTTPS, SMB, SSH, and many more. It performs rapid dictionary attacks against login pages and services to test password strength.
Learn CeWL for generating custom wordlists by spidering websites, creating targeted password lists for penetration testing and security assessments.
Security · IntermediateLearn how dictionary attacks use wordlists to crack passwords, how to create effective wordlists, and strategies to defend against wordlist-based attacks.
Security · BeginnerEverything you need to know about password security, including creating strong passwords, using password managers, multi-factor authentication, and defending against attacks.
Security · IntermediateLearn about credential stuffing attacks that use leaked credentials from data breaches to automate account takeover across different services.
Generates a localized text file containing words scraped directly from the provided web pages.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.