Passwords and hashes
cewl
Crawls a website and harvests the words on it into a wordlist tailored to that target.
A generic list like rockyou holds passwords people have leaked, never a word a company invented. cewl
(Custom Word List) spiders a site and prints the unique words it finds, so the target's own brand names, products and
jargon become your wordlist. -d sets how many links deep to follow, -m the shortest word to keep, -w writes
the words to a file. The harvested list is small but aimed: fed to john with a mangling rule, one of its words — the
brand, say — becomes the base of a passphrase no generic list contains. Profiling swaps breadth for aim.
cewl command usage
cewl [-d DEPTH] [-m MINLENGTH] [-w OUTFILE] [--lowercase] URL
Options
-
-d 1 - follow links this many levels deep from the start page
-
-m 4 - keep only words at least this many characters long
-
-w profiled.txt - write the harvested words to this file
-
--lowercase - lower-case every word before listing it
cewl examples
-
cewl -m 4 -d 1 http://10.0.1.20/ - Harvests the four-letters-or-more words from the site, one level deep.
Acme Logistics Zephyr Meridian
-
cewl -m 4 -d 1 -w profiled.txt http://10.0.1.20/ - Writes the harvested words to profiled.txt for a cracker to read.
-
cewl -d 2 --lowercase http://10.0.1.20/ - Follows links two levels deep and lower-cases every word.
Pitfalls
- cewl keeps only words already on the page: the base word has to be somewhere on the site for cewl to find it, so crawl the pages that carry the brand and jargon.