This commit is contained in:
Bxio 2025-06-23 15:21:07 +01:00
parent 484df1cacb
commit c8665a96c8
2 changed files with 37 additions and 6 deletions

View File

@ -1,12 +1,12 @@
#!/bin/bash
echo -e "
░█████╗░███╗░░██╗██████╗░██████╗░░█████╗░░██████╗
██╔══██╗████╗░██║██╔══██╗██╔══██╗██╔══██╗██╔════╝
███████║██╔██╗██║██║░░██║██║░░██║██║░░██║╚█████╗░
██╔══██║██║╚████║██║░░██║██║░░██║██║░░██║░╚═══██╗
██║░░██║██║░╚███║██████╔╝██████╔╝╚█████╔╝██████╔╝
╚═╝░░╚═╝╚═╝░░╚══╝╚═════╝░╚═════╝░░╚════╝░╚═════╝░"
░█████╗░██╗██╗░░██╗██████╗░░░░██████╗░██╗░░░█████╗░░██╗
██╔══██╗██║╚██╗██╔╝██╔══██╗░░░██╔══██╗██║░░░██║████╗░██║
██║░░██║██║░╚███╔╝░██████╦╝░░░██████╔╝██║░░░██║██╔██╗██║
██║░░██║██║░██╔██╗░██╔══██╗░░░██╔══██╗██║░░░██║██║╚████║
╚█████╔╝██║██╔╝╚██╗██████╦╝██╗██║░░██║╚██████╔╝██║░╚███║
░╚════╝░╚═╝╚═╝░░╚═╝╚═════╝░╚═╝╚═╝░░╚═╝░╚═════╝░╚═╝░░╚══╝"
echo "Today is " `date`

31
start.sh Normal file
View 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