CeWL
CeWL is a custom word list generator that spiders a given URL to a specified depth and extracts words for password cracking. It can also generate email addresses from mailto links and extract usernames from file metadata via FAB.
Description
CeWL (Custom Word List generator) is a ruby app which spiders a given URL, up to a specified depth, and returns a list of words which can then be used for password crackers such as John the Ripper. Optionally, CeWL can follow external links. CeWL can also create a list of email addresses found in mailto links. These email addresses can be used as usernames in brute force actions.
Another tool provided by CeWL project is FAB (Files Already Bagged). FAB extracts the content of the author/creator fields, from metadata of some files, to create lists of possible usernames. These usernames can be used in association with the password list generated by CeWL. FAB uses the same metadata extraction techniques as CeWL and currently processes Office pre 2007, Office 2007 and PDF formats.
CeWL is useful in security tests and forensics investigations. CeWL is pronounced 'cool'.
How It Works
CeWL spiders the target URL using Ruby libraries like ruby-spider and ruby-nokogiri, crawling to a specified depth and extracting words longer than the minimum length. It processes HTML content to build word lists and can optionally follow offsite links, handle authentication (digest or basic), proxy support, and custom headers. FAB component extracts metadata (author/creator fields) from Office and PDF files using ruby-mini-exiftool and ruby-zip.
Installation
sudo apt install cewlFlags
Examples
cewl -d 2 -m 5 -w docswords.txt https://example.comcewl -hcewl -d 2 https://example.comcewl -m 5 https://example.comcewl -o https://example.comcewl --auth_type basic --auth_user user --auth_pass pass https://example.comfab-cewl -hfab-cewl filename/list