1. CeWL
Description:
CeWL is a custom wordlist generator that scrapes webpage content to create wordlists. It is useful for generating targeted password lists that incorporate common words, phrases, and contextually relevant terms found on a specific website.
Examples:
- Generate a Wordlist from a Website:
- cewl http://example.com -w wordlist.txt
- Generate a Wordlist from a Website:
Explanation: Scrapes the content from example.com and writes a wordlist (wordlist.txt) with unique words found on the page.
The script to use with this tool.
The script is used to read list of domains from text file called “domain.txt”. Then it will output all results to a text file with the name “emails_date and time stamp”
#!/bin/bash
# Input file containing domains
DOMAINS_FILE=”domains.txt”
# Output file with current date and time
OUTPUT_FILE=”emails_$(date +’%Y-%m-%d_%H-%M-%S’).txt”
# Check if the domains file exists
if [[ ! -f “$DOMAINS_FILE” ]]; then
echo “Error: $DOMAINS_FILE not found!”
exit 1
fi
# Clear the output file if it already exists
> “$OUTPUT_FILE”
# Loop through each domain in the file
while IFS= read -r domain; do
echo “Processing domain: $domain”
# Run CeWL and append results to the output file
cewl -d 2 -m 5 -e -v “https://$domain” >> “$OUTPUT_FILE”
# Add a separator between domains
echo “—————————–” >> “$OUTPUT_FILE”
done < “$DOMAINS_FILE”
echo “Email harvesting complete. Results saved in $OUTPUT_FILE”