|
|
|
@ -2,13 +2,13 @@
@@ -2,13 +2,13 @@
|
|
|
|
|
|
|
|
|
|
# This script runs a scan for all available TLDs, and notes |
|
|
|
|
# down the TLDs that resolve to `website/template.md` |
|
|
|
|
# |
|
|
|
|
# |
|
|
|
|
# It also puts some information about the IP Adress from where |
|
|
|
|
# the scan was run (might be relevant for DNS lookups) into |
|
|
|
|
# `website/_data/ip.json`. Structure is at ipapi.co |
|
|
|
|
|
|
|
|
|
for domain in $(grep -v '^#' tlds.txt); do |
|
|
|
|
RESULT=$(dig +time=1 +tries=1 +short "$domain" | head -c -1 | tr '\n' '@' | sed 's/@/`,`/g' | grep -v "connection timed out") |
|
|
|
|
for domain in $(grep -v '^#' tlds.txt); do |
|
|
|
|
RESULT=$(dig +time=1 +tries=1 +short "$domain." | head -c -1 | tr '\n' '@' | sed 's/@/`,`/g' | grep -v "connection timed out") |
|
|
|
|
if [ ! -z "$RESULT" ]; then |
|
|
|
|
echo $domain |
|
|
|
|
DOMAIN_REAL="$domain" |
|
|
|
@ -23,4 +23,4 @@ done
@@ -23,4 +23,4 @@ done
|
|
|
|
|
curl 'https://ipapi.co/yaml/' > website/_data/ip.json |
|
|
|
|
|
|
|
|
|
echo >> template.md |
|
|
|
|
echo "This scan was last run on $(date)" >> template.md |
|
|
|
|
echo "This scan was last run on $(date)" >> template.md |
|
|
|
|