This commit is contained in:
parent
484df1cacb
commit
c8665a96c8
12
atualizar.sh
12
atualizar.sh
@ -1,12 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo -e "
|
echo -e "
|
||||||
░█████╗░███╗░░██╗██████╗░██████╗░░█████╗░░██████╗
|
░█████╗░██╗██╗░░██╗██████╗░░░░██████╗░██╗░░░██╗███╗░░██╗
|
||||||
██╔══██╗████╗░██║██╔══██╗██╔══██╗██╔══██╗██╔════╝
|
██╔══██╗██║╚██╗██╔╝██╔══██╗░░░██╔══██╗██║░░░██║████╗░██║
|
||||||
███████║██╔██╗██║██║░░██║██║░░██║██║░░██║╚█████╗░
|
██║░░██║██║░╚███╔╝░██████╦╝░░░██████╔╝██║░░░██║██╔██╗██║
|
||||||
██╔══██║██║╚████║██║░░██║██║░░██║██║░░██║░╚═══██╗
|
██║░░██║██║░██╔██╗░██╔══██╗░░░██╔══██╗██║░░░██║██║╚████║
|
||||||
██║░░██║██║░╚███║██████╔╝██████╔╝╚█████╔╝██████╔╝
|
╚█████╔╝██║██╔╝╚██╗██████╦╝██╗██║░░██║╚██████╔╝██║░╚███║
|
||||||
╚═╝░░╚═╝╚═╝░░╚══╝╚═════╝░╚═════╝░░╚════╝░╚═════╝░"
|
░╚════╝░╚═╝╚═╝░░╚═╝╚═════╝░╚═╝╚═╝░░╚═╝░╚═════╝░╚═╝░░╚══╝"
|
||||||
|
|
||||||
echo "Today is " `date`
|
echo "Today is " `date`
|
||||||
|
|
||||||
|
|||||||
31
start.sh
Normal file
31
start.sh
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo -e "
|
||||||
|
░█████╗░███╗░░██╗██████╗░██████╗░░█████╗░░██████╗
|
||||||
|
██╔══██╗████╗░██║██╔══██╗██╔══██╗██╔══██╗██╔════╝
|
||||||
|
███████║██╔██╗██║██║░░██║██║░░██║██║░░██║╚█████╗░
|
||||||
|
██╔══██║██║╚████║██║░░██║██║░░██║██║░░██║░╚═══██╗
|
||||||
|
██║░░██║██║░╚███║██████╔╝██████╔╝╚█████╔╝██████╔╝
|
||||||
|
╚═╝░░╚═╝╚═╝░░╚══╝╚═════╝░╚═════╝░░╚════╝░╚═════╝░"
|
||||||
|
|
||||||
|
|
||||||
|
COUNTRY="af es"
|
||||||
|
|
||||||
|
|
||||||
|
for country in $COUNTRIES; do
|
||||||
|
url="https://www.ipdeny.com/ipblocks/data/countries/${country}.zone"
|
||||||
|
echo "Baixando lista de IPs para o país: $country"
|
||||||
|
|
||||||
|
# Baixar o arquivo
|
||||||
|
curl -s -O "$url"
|
||||||
|
|
||||||
|
# Criar ipset para o país, ignorar se já existir
|
||||||
|
ipset create "$country" hash:net -exist
|
||||||
|
|
||||||
|
# Adicionar cada rede ao ipset
|
||||||
|
while read -r subnet; do
|
||||||
|
ipset add "$country" "$subnet" -exist
|
||||||
|
done < "${country}.zone"
|
||||||
|
|
||||||
|
echo "Concluído para o país $country."
|
||||||
|
done
|
||||||
Loading…
x
Reference in New Issue
Block a user