mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-12-23 06:27:41 +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
|
out += self.product
|
||||||
if self.version:
|
if self.version:
|
||||||
out += ' {0}'.format(self.version)
|
out += ' {0}'.format(self.version)
|
||||||
if self.patch:
|
patch = self.patch
|
||||||
out += ' {0}'.format(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:
|
if self.os:
|
||||||
out += ' running on {0}'.format(self.os)
|
out += ' running on {0}'.format(self.os)
|
||||||
return out
|
return out
|
||||||
|
Loading…
Reference in New Issue
Block a user