Geoffrey Frogeye
8d94b80fd0
Since the bigger datasets are only updated once a month, this might help for quick updates.
13 lines
385 B
Bash
Executable file
13 lines
385 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
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 | 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.json
|
|
|