From ddfaa6722dd05c219a982ef18d0b68a837554816 Mon Sep 17 00:00:00 2001 From: Julien Vehent Date: Fri, 17 Oct 2014 11:58:05 -0400 Subject: [PATCH] display target level compliance in text output --- analyze.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/analyze.py b/analyze.py index ba50688..f2ddd1a 100755 --- a/analyze.py +++ b/analyze.py @@ -320,7 +320,13 @@ def process_results(data, level=None, do_json=False): if operator: json_output['operator'] = operator else: - print(results['target'] + " has " + evaluate_all(results) + " ssl/tls") + measured_lvl = evaluate_all(results) + print(results['target'] + " has " + measured_lvl + " ssl/tls") + if level != 'none': + if level in measured_lvl: + print("and complies with the '" + level + "' level") + else: + print("and DOES NOT comply with the '" + level + "' level") except TypeError, e: return False