eulaurarien/resolve_subdomains.sh

13 lines
400 B
Bash
Raw Normal View History

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