From 9d471bdd76177e923885695fb71e9aa0b2548734 Mon Sep 17 00:00:00 2001 From: Narbeh Date: Wed, 18 Apr 2018 16:39:40 +0430 Subject: [PATCH] Add Host Duplication Detection --- ssl_checker.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ssl_checker.py b/ssl_checker.py index d25d72d..8847056 100644 --- a/ssl_checker.py +++ b/ssl_checker.py @@ -84,6 +84,11 @@ def show_result(hosts): print('Analyzing {} hosts:\n'.format(len(hosts))) for host in hosts: host, port = filter_hostname(host) + + # Check duplication + if host in context.keys(): + continue + cert = get_cert(host, port) if cert: context[host] = get_cert_info(cert)