[MASOCH-L] Blocos CIDR alocados pro Brasil

Jacques de Beijer jacques.beijer at unimedbelem.com.br
Wed Feb 12 17:18:20 BRST 2014


Eu pego tudo daqui 
http://www.blockcountryip.com/ 

----- Mensagem original -----

De: "Ciro Cardoso de Meneses" <cirodemeneses at gmail.com> 
Para: "Mail Aid and Succor, On-line Comfort and Help" <masoch-l at eng.registro.br> 
Enviadas: Quarta-feira, 12 de Fevereiro de 2014 3:30:54 
Assunto: Re: [MASOCH-L] Blocos CIDR alocados pro Brasil 

script prá pegar os blocos alocados: 


#!/bin/sh 
fetch " 
ftp://ftp.lacnic.net/pub/stats/lacnic/delegated-lacnic-extended-latest" 
IFS="|" 
cat delegated-lacnic-extended-latest| 
while read c1 c2 c3 c4 c5 c6 c7 c8 
do 
if [ "$c1" = "lacnic" ] 
then 
if [ "$c2" = "BR" ] 
then 
if [ "$c3" = "ipv4" ] 
then 
if [ "$c7" = "allocated" ] 
then 
mask=$c5 
if [ "$c5" = "4096" ] 
then 
mask=20 
fi 
if [ "$c5" = "8192" ] 
then 
mask=19 
fi 
if [ "$c5" = "16384" ] 
then 
mask=18 
fi 
if [ "$c5" = "32768" ] 
then 
mask=17 
fi 
if [ "$c5" = "65536" ] 
then 
mask=16 
fi 
if [ "$c5" = "131072" ] 
then 
mask=15 
fi 
if [ "$c5" = "262144" ] 
then 
mask=14 
fi 
if [ "$c5" = "2048" ] 
then 
mask=21 
fi 
if [ "$c5" = "1024" ] 
then 
mask=22 
fi 
if [ "$c5" = "512" ] 
then 
mask=23 
fi 
if [ "$c5" = "256" ] 
then 
mask=24 
fi 
echo $c4/$mask 
fi 
fi 
fi 
fi 
done 



Em 12 de fevereiro de 2014 00:34, Filipe Alvarez 
<filipealvarez at gmail.com>escreveu: 

> Em 12 de fevereiro de 2014 00:53, Lucas Willian Bocchi < 
> lucas.bocchi at gmail.com> escreveu: 
> 
> > Perdão, não foi nesta, foi na GTER. 
> > 
> > Se quiser a lista completa, pode ser obtida nestes endereços 
> > 
> > ftp://ftp.afrinic.net/stats/afrinic/delegated-afrinic-extended-latest 
> > ftp://ftp.lacnic.net/pub/stats/lacnic/delegated-lacnic-extended-latest 
> > ftp://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-extended-latest 
> > ftp://ftp.arin.net/pub/stats/arin/delegated-arin-extended-latest 
> > ftp://ftp.ripe.net/pub/stats/ripencc/delegated-ripencc-extended-latest 
> 
> 
> 
> Muito obrigado! 
> 
> []s 
> __ 
> masoch-l list 
> https://eng.registro.br/mailman/listinfo/masoch-l 
> 



-- 
_______________________________________________________________________________ 
Ciro Cardoso de Meneses 
Analista de TI 

(79) 9894-8250 (vivo) 
(79) 9115-0561 (tim) 
(79) 8151-1390 (claro) 
(79) 8853-0017 (oi) 
__ 
masoch-l list 
https://eng.registro.br/mailman/listinfo/masoch-l 



More information about the masoch-l mailing list