acasown/acasown.py

12 lines
333 B
Python
Raw Normal View History

2018-11-08 12:56:36 +01:00
import ripe
import censys
import bong
r = ripe.Ripe()
2018-11-08 22:24:53 +01:00
c = censys.Censys_WEB("dummyuser", "dummypass")
2018-11-08 15:55:24 +01:00
targets = r.search("trenitalia")
print("Found " + str(len(targets)) + " ranges from Ripe")
hosts = c.search_ipv4(c.build_query_ipv4(targets))
print("Found " + str(len(hosts)) + " hosts from Censys")
2018-11-08 22:24:53 +01:00
for host in hosts:
print(host)