Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jarelllama authored Apr 5, 2024
1 parent 1ecb887 commit a415ff0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions functions/retrieve_domains.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ source() {
source_aa419
#source_dfpi # Deactivated
source_dnstwist
source_google_search
source_guntab
source_opensquat
source_petscams
source_scamdirectory
source_scamadviser
source_stopgunscams
source_google_search
}

# Function 'process_source' filters results retrieved from a source.
Expand Down Expand Up @@ -427,7 +427,7 @@ source_dnstwist() {
local results_file="data/pending/domains_${source}.tmp"

# Install dnstwist
apt install -yqq dnstwist
apt-get install -yqq dnstwist

# Collate NRD list and exit if any link is broken
# NRDs feeds are limited to domains registered in the 30 days
Expand All @@ -440,14 +440,14 @@ source_dnstwist() {
|| exit 1
} > nrd.tmp

format_list nrd.tmp
format_file nrd.tmp

# Collate results
while read -r domain; do
dnstwist -f list -r "$domain" --tld "$TLDS" >> results.tmp
done < "$DNSTWIST_TARGETS"

format_list results.tmp
format_file results.tmp

# Find matching NRD
comm -12 results.tmp nrd.tmp > "$results_file"
Expand Down Expand Up @@ -592,7 +592,7 @@ source_stopgunscams() {
trap cleanup EXIT

# Install jq
command -v jq &> /dev/null || apt install -yqq jq
command -v jq &> /dev/null || apt-get install -yqq jq

for file in config/* data/*; do
format_file "$file"
Expand Down

0 comments on commit a415ff0

Please sign in to comment.