christophetd/CloudFlair

Force output file JSON

Opened this issue · 0 comments

It would be great if you'll make force creating of file (as option --force-output-file or by default) based on your result with found vulnerabilities.

With such output the file is not appearing:

[*] Retrieving Cloudflare IP ranges from https://www.cloudflare.com/ips-v4
[*] The target appears to be behind CloudFlare.
[*] Looking for certificates matching "donky.party" using Censys
[*] 14 certificates matching "donky.party" found.
[*] Looking for IPv4 hosts presenting these certificates...
[*] 0 IPv4 hosts presenting a certificate issued to "donky.party" were found.
[-] The target is most likely not vulnerable.

You can use such structure:

{"censys_certificates_found":"14", 
"ipv4_issued_certificate":"0",
"is_vulnerable":False
"is_have_cloudflare":True
}

if we have result as set of IP:

{"ipv4_issued_certificate":"14",
"ipv4_issued_list":["1.1.1.1","2.2.2.2","3.3.3.3"]}

If you wish :)