Bloc notes | Lister les ip public d'une company


Posted on November 28, 2015 by Alex comments [network]

Trouver une ip de la "company"

[alex@laptop ~]$ ping google.fr
PING google.fr (173.194.45.79): 56 data bytes

Trouver l' AS

[alex@laptop ~]$ whois -h whois.radb.net  173.194.45.79
route:      173.194.45.0/24
descr:      Google
origin:     AS15169
notify:     radb-contact@google.com
mnt-by:     MAINT-AS15169
changed:    radb-contact@google.com 20141204
source:     RADB

Whois via l'AS

[ja@laptop ~]$ whois -h whois.radb.net '!gAS15169'
A109579
66.249.64.0/20 66.249.80.0/20 194.110.194.0/24 74.125.57.240/29 ...

Peupler une liste squid

whois -h whois.radb.net '!gAS15169' | tr ' ' '\n' | sort -n -k1,1 -k2,2 -k3,3 -k4,4 | tail -n+3