mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-12-23 06:27:41 +01:00
Specify order for compatibility output.
This commit is contained in:
parent
b8effe1462
commit
3f6a8eb7ba
@ -776,7 +776,10 @@ def output_compatibility(kex, client=False):
|
|||||||
ssh_timeframe = get_ssh_timeframe(kex)
|
ssh_timeframe = get_ssh_timeframe(kex)
|
||||||
cp = 2 if client else 1
|
cp = 2 if client else 1
|
||||||
comp_text = []
|
comp_text = []
|
||||||
for sshd_name, v in ssh_timeframe.items():
|
for sshd_name in ['OpenSSH', 'Dropbear SSH']:
|
||||||
|
if sshd_name not in ssh_timeframe:
|
||||||
|
continue
|
||||||
|
v = ssh_timeframe[sshd_name]
|
||||||
if v[cp] is None:
|
if v[cp] is None:
|
||||||
comp_text.append('{0} {1}+'.format(sshd_name, v[0]))
|
comp_text.append('{0} {1}+'.format(sshd_name, v[0]))
|
||||||
elif v[0] == v[1]:
|
elif v[0] == v[1]:
|
||||||
|
Loading…
Reference in New Issue
Block a user