acasown/acasown.py

12 lines
315 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 15:55:24 +01:00
c = censys.Censys("dummy", "dummy")
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")
for i in hosts:
print(i)