mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-11-22 02:21:40 +01:00
Better output for OpenSSH patch-level.
This commit is contained in:
parent
6d402819cb
commit
b8effe1462
10
ssh-audit.py
10
ssh-audit.py
@ -242,8 +242,14 @@ class SSH(object):
|
||||
out += self.product
|
||||
if self.version:
|
||||
out += ' {0}'.format(self.version)
|
||||
if self.patch:
|
||||
out += ' {0}'.format(self.patch)
|
||||
patch = self.patch
|
||||
if self.product == 'OpenSSH':
|
||||
mx = re.match('^(p\d)(.*)$', self.patch)
|
||||
if mx is not None:
|
||||
out += mx.group(1)
|
||||
patch = mx.group(2).strip()
|
||||
if patch:
|
||||
out += ' ({0})'.format(self.patch)
|
||||
if self.os:
|
||||
out += ' running on {0}'.format(self.os)
|
||||
return out
|
||||
|
Loading…
Reference in New Issue
Block a user