From 0c98bc1397203a74755793c8a64edd7b5c00c27d Mon Sep 17 00:00:00 2001 From: Andris Raugulis Date: Mon, 3 Oct 2016 00:29:28 +0300 Subject: [PATCH] If software is not recognized, output recommendations based on compatibility. --- ssh-audit.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ssh-audit.py b/ssh-audit.py index aefd853..3e793e9 100755 --- a/ssh-audit.py +++ b/ssh-audit.py @@ -1142,6 +1142,9 @@ def get_alg_pairs(kex, pkm): def get_alg_recommendations(software, kex, pkm, for_server=True): alg_pairs = get_alg_pairs(kex, pkm) + if software is not None: + if software.product not in [SSH.Product.OpenSSH, SSH.Product.DropbearSSH]: + software = None if software is None: ssh_timeframe = get_ssh_timeframe(alg_pairs, for_server) for product in [SSH.Product.OpenSSH, SSH.Product.DropbearSSH]: