From 3f6a8eb7bade652c450ff120c43978468475e5af Mon Sep 17 00:00:00 2001 From: Andris Raugulis Date: Thu, 8 Sep 2016 14:10:39 +0300 Subject: [PATCH] Specify order for compatibility output. --- ssh-audit.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ssh-audit.py b/ssh-audit.py index 52c4e73..6933cac 100755 --- a/ssh-audit.py +++ b/ssh-audit.py @@ -776,7 +776,10 @@ def output_compatibility(kex, client=False): ssh_timeframe = get_ssh_timeframe(kex) cp = 2 if client else 1 comp_text = [] - for sshd_name, v in ssh_timeframe.items(): + for sshd_name in ['OpenSSH', 'Dropbear SSH']: + if sshd_name not in ssh_timeframe: + continue + v = ssh_timeframe[sshd_name] if v[cp] is None: comp_text.append('{0} {1}+'.format(sshd_name, v[0])) elif v[0] == v[1]: