implement 'ssh -V' (version)

This commit is contained in:
Michel Oosterhof
2015-07-27 14:27:35 +00:00
parent 95808604e7
commit 9162d8cc42

View File

@@ -30,6 +30,11 @@ class command_ssh(HoneyPotCommand):
except getopt.GetoptError as err:
self.writeln('Unrecognized option')
self.exit()
for opt in optlist:
if opt[0] == '-V':
self.writeln('OpenSSH_6.7p1 Debian-5, OpenSSL 1.0.1k 8 Jan 2015')
self.exit()
return
if not len(args):
for l in (
'usage: ssh [-1246AaCfgKkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]',