Geoffrey Frogeye
0159c6037c
Also various fixes. Also some debug stuff, make sure to remove that later.
11 lines
511 B
Bash
Executable file
11 lines
511 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# Resolve the CNAME chain of all the known subdomains for later analysis
|
|
echo "Compiling subdomain lists..." > /dev/stderr
|
|
cat subdomains/*.list | sort -u > temp/all_subdomains.list
|
|
# 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
|
|
sort -u temp/all_resolved.csv > temp/all_resolved_sorted.csv
|
|
|