-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwhois.py
More file actions
8 lines (6 loc) · 2.27 KB
/
whois.py
File metadata and controls
8 lines (6 loc) · 2.27 KB
1
2
3
4
5
6
7
#!/usr/bin/env python
from bulkwhois.shadowserver import BulkWhoisShadowserver
bulk_hois = BulkWhoisShadowserver()
records = bulk_hois.lookup_ips(['213.152.238.35', '80.0.27.248', '81.130.196.237', '90.220.251.185', '92.24.28.80', '213.212.70.122', '86.161.178.219', '80.254.158.132', '130.117.82.3', '81.106.110.195', '2.102.184.28', '46.65.42.43', '157.83.125.12', '86.143.90.58', '93.96.154.212', '2.102.170.49', '82.211.83.9', '171.159.48.4', '83.217.118.146', '31.221.86.2', '91.125.91.57', '82.41.73.252', '87.85.226.194', '192.193.116.143', '193.38.100.250', '141.241.13.25', '92.29.20.32', '193.35.11.125', '173.227.230.232', '80.168.9.242', '17.77.84.139', '195.43.48.142', '213.246.159.193', '82.69.21.29', '81.157.50.96', '82.44.54.157', '87.84.240.2', '139.149.31.230', '89.202.211.229', '146.101.16.197', '94.172.11.187', '2.98.145.64', '86.2.181.184', '80.238.1.133', '86.147.64.154', '82.16.144.149', '86.21.168.103', '192.193.116.137', '195.59.168.253', '86.2.181.131', '81.157.242.157', '82.39.164.84', '80.254.147.180', '77.102.237.79', '188.222.171.21', '78.157.215.135', '94.13.63.39', '195.99.196.95', '92.234.94.212', '92.27.3.148', '149.241.179.196', '86.164.81.144', '178.17.44.147', '78.105.233.232', '176.26.64.65', '195.171.106.170', '157.83.97.242', '86.28.144.201', '217.33.141.34', '90.207.88.86', '92.236.57.112', '62.190.22.34', '92.8.103.54', '46.64.72.138', ':', '81.144.230.180', '80.254.146.68', '193.130.182.102', '146.90.50.144', '90.196.144.29', '5.65.157.142', '94.13.221.106', '80.254.158.4', '82.41.6.34', '217.42.185.251', '94.4.217.183', '86.146.239.233', '164.143.244.34', '86.181.43.182', '31.221.71.130', '86.3.190.98', '87.102.110.195', '213.120.115.24', '195.14.73.154', '109.144.141.241', '176.252.194.229', '212.183.128.175', '90.199.36.255', '87.82.210.220', '87.115.121.130', '141.92.129.41', '194.72.189.146', '62.244.186.66', '80.83.146.208', '5.71.33.74', '194.61.79.254', '217.41.24.213', '81.144.140.102', '86.166.174.155', '213.152.224.226', '92.20.44.221', '80.79.208.19', '81.99.228.166', '85.189.148.98', '82.22.12.201', '90.192.13.22', '86.139.61.194', '86.150.228.103', '46.37.58.80'])
for record in records:
print "\t".join([records[record]["ip"], records[record]["asn"], records[record]["as_name"], records[record]["cc"], records[record]["bgp_prefix"]])