BASH 8
Find out all public IP ranges for Google from terminal Guest on 14th September 2020 02:21:45 AM
  1. google_ips=$(for LINE in `dig txt _cloud-netblocks.googleusercontent.com +short | tr " " "\n" | grep include | cut -f 2 -d :`; do dig txt $LINE +short; done | tr " " "\n" | grep ip4 | cut -f 2 -d : | sort -n | xargs | tr " " ",") && echo $google_ips
  2. 8.34.208.0/20,8.35.192.0/21,8.35.200.0/23,23.236.48.0/20,23.251.128.0/19,34.100.0.0/16,34.102.0.0/15,34.104.0.0/14,34.124.0.0/18,34.124.64.0/20,34.124.80.0/23,34.124.84.0/22,34.124.88.0/23,34.124.92.0/22,34.125.0.0/16,34.64.0.0/11,34.96.0.0/14,35.184.0.0/14,35.188.0.0/15,35.190.0.0/17,35.190.128.0/18,35.190.192.0/19,35.190.224.0/20,35.190.240.0/22,35.192.0.0/14,35.196.0.0/15,35.198.0.0/16,35.199.0.0/17,35.199.128.0/18,35.200.0.0/13,35.208.0.0/13,35.216.0.0/15,35.219.192.0/24,35.220.0.0/14,35.224.0.0/13,35.232.0.0/15,35.234.0.0/16,35.235.0.0/17,35.235.192.0/20,35.235.216.0/21,35.235.224.0/20,35.236.0.0/14,35.240.0.0/13,104.154.0.0/15,104.196.0.0/14,107.167.160.0/19,107.178.192.0/18,108.170.192.0/20,108.170.208.0/21,108.170.216.0/22,108.170.220.0/23,108.170.222.0/24,108.59.80.0/20,130.211.16.0/20,130.211.32.0/19,130.211.4.0/22,130.211.8.0/21

%#&$^#* is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.