acasown/acasown.py
2018-11-08 22:24:53 +01:00

12 lines
333 B
Python

import ripe
import censys
import bong
r = ripe.Ripe()
c = censys.Censys_WEB("dummyuser", "dummypass")
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 host in hosts:
print(host)