From 16cc5969bade6011321df33fcc81651a16e6abf0 Mon Sep 17 00:00:00 2001 From: Narbeh Arakil Date: Sun, 24 May 2020 23:40:29 +0400 Subject: [PATCH] Add Full Domain to -J --- ssl_checker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssl_checker.py b/ssl_checker.py index 12bebfc..c54902f 100755 --- a/ssl_checker.py +++ b/ssl_checker.py @@ -234,8 +234,8 @@ def show_result(user_args): print(json.dumps(context)) if user_args.json_save_true: - for host in hosts: - with open(host.split('.')[0] + '.json', 'w', encoding='UTF-8') as fp: + for host in context.keys(): + with open(host + '.json', 'w', encoding='UTF-8') as fp: fp.write(json.dumps(context[host]))