acasown/acasown.py
2018-11-08 15:55:24 +01:00

12 lines
315 B
Python

import ripe
import censys
import bong
r = ripe.Ripe()
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)