CeWL (Custom Word List generator, pronounced "cool") is a custom word list generation tool written in Ruby, mainly used in security testing and forensic investigation scenarios.
Purpose: CeWL crawls a specified URL (with a configurable crawl depth), collects words from pages, and generates dictionary files that can be used with password cracking tools (such as John the Ripper). It can also optionally follow external links to expand the collection scope. In addition, CeWL can extract email addresses from mailto links on pages; these addresses can be used as usernames in brute-force operations.
Main capabilities:
- Crawl a specified URL to a specified depth, extract words, and output them as a word list file.
- Optionally follow external links.
- Generate a list of email addresses from mailto links for use as usernames.
- The project includes the FAB (Files Already Bagged) tool, which can extract author/creator fields from the metadata of pre-Office 2007 files, Office 2007 files, and PDF files to generate possible username lists for use together with password lists generated by CeWL.
Usage: The official usage example is: scan to depth 2 (-d 2), minimum word length 5 (-m 5), save words to a file (-w docswords.txt), with the target URL being https://example.com,命令如下: root@kali:~# cewl -d 2 -m 5 -w docswords.txt https://example.com After execution, you can use wc -l docswords.txt to view the number of generated lines. Installation: sudo apt install cewl. The installation size is about 81 KB. Related dependency packages include ruby-mime-types, ruby-mini-exiftool, and ruby-net-http-digest-auth.
Applicable scenarios: password profiling and dictionary generation in security testing, credential access testing, and construction of username and password candidate lists in forensic investigations.
Limitations: The materials do not provide CeWL's fees, pricing, platform support scope, effectiveness guarantees, or more detailed usage steps; the information not mentioned above is not currently available.