From 280a37ba20ab84eacf2a26b372905a053287c750 Mon Sep 17 00:00:00 2001 From: Andris Raugulis Date: Wed, 7 Sep 2016 13:00:53 +0300 Subject: [PATCH] Protocol is numbers. --- ssh-audit.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ssh-audit.py b/ssh-audit.py index 738d269..db802b7 100755 --- a/ssh-audit.py +++ b/ssh-audit.py @@ -253,6 +253,7 @@ class SSH(object): if mx is None: return None protocol = min(re.findall(cls._RXP, mx.group(1))) + protocol = (int(protocol[0]), int(protocol[1])) software = (mx.group(9) or '').strip() or None if software is None and mx.group(8).startswith('-'): software = ''