From 6d402819cb7574f88217d87870d1e24317f990ba Mon Sep 17 00:00:00 2001 From: Andris Raugulis Date: Wed, 7 Sep 2016 19:40:30 +0300 Subject: [PATCH] Recognize some Windows SSHd servers. --- ssh-audit.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ssh-audit.py b/ssh-audit.py index 60a2040..0fa1764 100755 --- a/ssh-audit.py +++ b/ssh-audit.py @@ -285,6 +285,12 @@ class SSH(object): if mx: d = cls._fix_date(mx.group(1)) return 'FreeBSD' if d is None else 'FreeBSD ({0})'.format(d) + w = ['RemotelyAnywhere', 'DesktopAuthority', 'RemoteSupportManager'] + for win_soft in w: + mx = re.match(r'^in ' + win_soft + ' ([\d\.]+\d)$', c) + if mx: + ver = mx.group(1) + return 'Microsoft Windows ({0} {1})'.format(win_soft, ver) generic = ['NetBSD', 'FreeBSD'] for g in generic: if c.startswith(g) or c.endswith(g):