From 6fc02bea2dcc86ed9bdc63939ef9a91964cb9238 Mon Sep 17 00:00:00 2001 From: C24Be Date: Mon, 1 Apr 2024 12:02:00 +0200 Subject: [PATCH] update blacklists_updater.sh regexps --- blacklists_updater.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/blacklists_updater.sh b/blacklists_updater.sh index eea98e4..139c219 100755 --- a/blacklists_updater.sh +++ b/blacklists_updater.sh @@ -8,10 +8,11 @@ auto_black_ass="auto/black_ass.txt" black_names="uvd|umvd|fgup|grchc|roskomnad|federalnaya sluzhba|ufsb|zonatelecom" white_names="ruvds" -grep -iE "${black_names}" auto/all-ru-asn.txt | grep -viE "${white_names}" | awk '{ print "# AS-Name: " $0 "\n" $1}' > ${auto_black_ass} +grep -iE "${black_names}" auto/all-ru-asn.txt | grep -viE "${white_names}" | awk '{ print "# AS-Name: " $0 "\n" $1}' > ${auto_black_ass} ./network_list_from_as.py ${auto_black_ass} > ${outfile_w_comments} ./network_list_from_netname.py lists/ru-gov-netnames.txt >> ${outfile_w_comments} -grep -iE "${black_names}" auto/*-ru-ipv4.txt | grep -viE "${white_names}" | awk '{ print "# NET-Name: " $0 "\n" $1}' >> ${outfile_w_comments} +grep -iE "${black_names}" auto/all-ru-ipv4.txt | grep -viE "${white_names}" | awk '{ print "# NET-Name: " $0 "\n" $1}' >> ${outfile_w_comments} +grep -iE "${black_names}" auto/ripe-ru-ipv4.txt | grep -viE "${white_names}" | awk '{ print "# NET-Name: " $0 "\n" $1}' >> ${outfile_w_comments} # Remove comments by sed to avoid flooding WHOIS servers grep -v "#" ${outfile_w_comments} | sort | uniq > ${outfile_wo_comments}