From a633f3d8fa28e989b63edfc1a7ecbe469cd629c6 Mon Sep 17 00:00:00 2001 From: Salt Date: Sun, 23 Feb 2020 01:46:29 -0600 Subject: [PATCH] domainfind: Remove stripped TLD from desired word --- domainfind | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domainfind b/domainfind index f422e86..2425a5e 100755 --- a/domainfind +++ b/domainfind @@ -87,7 +87,7 @@ checkavaildomains() { ! [[ $word == *$tldstrip ]] && continue [[ $word == $tldstrip ]] && continue # Ignore the tld itself log "Processing word: $word" 2 - prefix="${word%$tld}" + prefix="${word%$tldstrip}" fqdn="$prefix.$tld" log "Looking for domain: $fqdn" 2 # We wait here so a ^C kills our program, not nslookup