From 0890b273bea5b87eb44697110861314b848bbf29 Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Sun, 18 Sep 2022 09:23:02 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B5=D1=89=D0=B5=20=D0=B1=D0=BE=D0=BB=D1=8C?= =?UTF-8?q?=D1=88=D0=B5=20IP-=D0=B0=D0=B4=D1=80=D0=B5=D1=81=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ips.txt | 29 ++++++++++++++++++++++++----- runners/1_ips_from_domains_txt.py | 5 ++++- 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/ips.txt b/ips.txt index 37f98f1..8871249 100644 --- a/ips.txt +++ b/ips.txt @@ -1,13 +1,32 @@ 192.229.221.58/32 # us.download.nvidia.com 172.65.251.78/32 # gitlab.com -74.125.131.101/32 # developers.google.com -142.250.150.101/32 # developers.google.com +142.250.150.139/32 # developers.google.com +142.250.150.100/32 # developers.google.com +142.250.150.102/32 # developers.google.com +142.250.150.138/32 # developers.google.com +142.250.150.113/32 # developers.google.com +142.250.150.101/32 # developers.google.com, developers.google.com 64.233.163.102/32 # developers.google.com -142.250.150.102/32 # developers.home.google.com +64.233.165.139/32 # developers.home.google.com +64.233.165.101/32 # developers.home.google.com +64.233.165.102/32 # developers.home.google.com +64.233.165.113/32 # developers.home.google.com +64.233.165.138/32 # developers.home.google.com +64.233.165.100/32 # developers.home.google.com 173.194.222.113/32 # developers.home.google.com -64.233.165.103/32 # googleapis.com +74.125.131.103/32 # googleapis.com +74.125.131.104/32 # googleapis.com +74.125.131.106/32 # googleapis.com +74.125.131.99/32 # googleapis.com +74.125.131.147/32 # googleapis.com +74.125.131.105/32 # googleapis.com 173.194.221.105/32 # googleapis.com -74.125.131.102/32 # firebase.google.com +108.177.14.113/32 # firebase.google.com +108.177.14.139/32 # firebase.google.com +108.177.14.102/32 # firebase.google.com +108.177.14.138/32 # firebase.google.com +108.177.14.100/32 # firebase.google.com +108.177.14.101/32 # firebase.google.com 74.125.205.138/32 # firebase.google.com 35.190.247.0/24 # google (spf) 64.233.160.0/19 # google (spf) diff --git a/runners/1_ips_from_domains_txt.py b/runners/1_ips_from_domains_txt.py index 74b61f8..8f54e8b 100644 --- a/runners/1_ips_from_domains_txt.py +++ b/runners/1_ips_from_domains_txt.py @@ -20,7 +20,10 @@ def main(file_data: list): dict[domain_or_range].append(comment) except ValueError: - dict[socket.gethostbyname(domain_or_range) + '/32'].append(l) + + hostname_data = socket.gethostbyname_ex(domain_or_range) + for ip in hostname_data[2]: + dict[ip + '/32'].append(l) ips = list(dict.keys())