Update scripts and blacklists

This commit is contained in:
Be
2024-03-01 22:29:17 +01:00
parent 047fb7463a
commit 587dd24124
4 changed files with 374 additions and 5 deletions

View File

@@ -1,13 +1,13 @@
#!/bin/sh
outfile_wo_comments="blacklist.txt"
outfile_w_comments="blacklist_comments.txt"
outfile_w_comments="blacklist_with_comments.txt"
url_ass="https://raw.githubusercontent.com/C24Be/AS_Network_List/main/lists/ru-gov-ass.txt"
url_nets="https://raw.githubusercontent.com/C24Be/AS_Network_List/main/lists/ru-gov-netnames.txt"
./network_list_from_as.py ${url_ass} -q > ${outfile_wo_comments}
./network_list_from_netname.py ${url_nets} -q >> ${outfile_wo_comments}
./network_list_from_as.py ${url_ass} > ${outfile_w_comments}
./network_list_from_netname.py ${url_nets} >> ${outfile_w_comments}
# Remove comments by sed to avoid flooding WHOIS servers
grep -v "#" ${outfile_w_comments} > ${outfile_wo_comments}