2019-12-03 08:48:12 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2019-12-07 18:45:48 +01:00
|
|
|
function log() {
|
|
|
|
echo -e "\033[33m$@\033[0m"
|
|
|
|
}
|
|
|
|
|
2019-12-13 13:38:23 +01:00
|
|
|
log "Compiling locally known subdomain…"
|
2019-12-03 15:35:21 +01:00
|
|
|
# Sort by last character to utilize the DNS server caching mechanism
|
2019-12-13 21:59:35 +01:00
|
|
|
pv subdomains/*.list | sed 's/\r$//' | rev | sort -u | rev > temp/all_subdomains.list
|
2019-12-13 13:38:23 +01:00
|
|
|
log "Resolving locally known subdomain…"
|
2019-12-13 21:59:35 +01:00
|
|
|
pv temp/all_subdomains.list | ./resolve_subdomains.py --output temp/all_resolved.csv
|
2019-12-03 08:48:12 +01:00
|
|
|
|