mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-11-22 18:41:40 +01:00
Recognize some Windows SSHd servers.
This commit is contained in:
parent
ac64f87327
commit
6d402819cb
@ -285,6 +285,12 @@ class SSH(object):
|
|||||||
if mx:
|
if mx:
|
||||||
d = cls._fix_date(mx.group(1))
|
d = cls._fix_date(mx.group(1))
|
||||||
return 'FreeBSD' if d is None else 'FreeBSD ({0})'.format(d)
|
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']
|
generic = ['NetBSD', 'FreeBSD']
|
||||||
for g in generic:
|
for g in generic:
|
||||||
if c.startswith(g) or c.endswith(g):
|
if c.startswith(g) or c.endswith(g):
|
||||||
|
Loading…
Reference in New Issue
Block a user