2019-12-03 08:48:12 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Resolve the CNAME chain of all the known subdomains for later analysis
|
2019-12-03 15:35:21 +01:00
|
|
|
echo "Compiling subdomain lists..." > /dev/stderr
|
2019-12-03 08:48:12 +01:00
|
|
|
cat subdomains/*.list | sort -u > temp/all_subdomains.list
|
2019-12-03 15:35:21 +01:00
|
|
|
# Sort by last character to utilize the DNS server caching mechanism
|
|
|
|
rev temp/all_subdomains.list | sort | rev > temp/all_subdomains_reversort.list
|
|
|
|
./resolve_subdomains.py --input temp/all_subdomains_reversort.list --output temp/all_resolved.csv
|
2019-12-03 08:48:12 +01:00
|
|
|
sort -u temp/all_resolved.csv > temp/all_resolved_sorted.csv
|
|
|
|
|