Fix JSON Output
This commit is contained in:
parent
f2418593ca
commit
0cf8016d1e
1
narbeh.json
Normal file
1
narbeh.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"host": "narbeh.org", "issued_to": "sni.cloudflaressl.com", "issued_o": "Cloudflare, Inc.", "issuer_c": "US", "issuer_o": "CloudFlare, Inc.", "issuer_ou": null, "issuer_cn": "CloudFlare Inc ECC CA-2", "cert_sn": "20958932659753030511717961095784314907", "cert_sha1": "FC:2D:0E:FD:DE:C0:98:7D:23:D2:E7:14:4C:07:6A:3D:25:25:49:B6", "cert_alg": "ecdsa-with-SHA256", "cert_ver": 2, "cert_sans": "DNS:sni.cloudflaressl.com; DNS:narbeh.org; DNS:*.narbeh.org", "cert_exp": false, "valid_from": "2020-04-02", "valid_till": "2020-10-09", "validity_days": 190, "days_left": 150, "tcp_port": 443}
|
||||||
@ -232,7 +232,7 @@ def show_result(user_args):
|
|||||||
if user_args.json_save_true:
|
if user_args.json_save_true:
|
||||||
for host in hosts:
|
for host in hosts:
|
||||||
with open(host.split('.')[0] + '.json', 'w', encoding='UTF-8') as fp:
|
with open(host.split('.')[0] + '.json', 'w', encoding='UTF-8') as fp:
|
||||||
fp.write(json.dumps(context))
|
fp.write(json.dumps(context[host]))
|
||||||
|
|
||||||
|
|
||||||
def export_csv(context, filename):
|
def export_csv(context, filename):
|
||||||
|
|||||||
1
twitter.json
Normal file
1
twitter.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"host": "twitter.com", "issued_to": "twitter.com", "issued_o": "Twitter, Inc.", "issuer_c": "US", "issuer_o": "DigiCert Inc", "issuer_ou": "www.digicert.com", "issuer_cn": "DigiCert SHA2 High Assurance Server CA", "cert_sn": "8284762493478544007350790660356831147", "cert_sha1": "86:CD:B1:CB:95:44:0C:F6:81:AB:C8:B2:29:F3:63:F8:9D:F9:11:89", "cert_alg": "sha256WithRSAEncryption", "cert_ver": 2, "cert_sans": "DNS:twitter.com; DNS:www.twitter.com", "cert_exp": false, "valid_from": "2020-03-05", "valid_till": "2021-03-02", "validity_days": 362, "days_left": 294, "tcp_port": 443}
|
||||||
Loading…
x
Reference in New Issue
Block a user