Fix log in scripts

Closes #8
This commit is contained in:
Geoffrey Frogeye 2019-12-07 18:45:48 +01:00
parent 0b2eb000c3
commit 2b0a723c30
Signed by: geoffrey
GPG key ID: D8A7ECA00A8CD3DD
4 changed files with 27 additions and 10 deletions

View file

@ -1,7 +1,11 @@
#!/usr/bin/env bash
function log() {
echo -e "\033[33m$@\033[0m"
}
# Resolve the CNAME chain of all the known subdomains for later analysis
echo "Compiling subdomain lists..." > /dev/stderr
log "Compiling subdomain lists..."
pv subdomains/*.list | sort -u > temp/all_subdomains.list
# Sort by last character to utilize the DNS server caching mechanism
pv temp/all_subdomains.list | rev | sort | rev > temp/all_subdomains_reversort.list