reorder cipher negotiation to resemble current openssh more

This commit is contained in:
Michel Oosterhof 2014-10-04 10:57:19 +00:00
parent fd4ca2bcf6
commit 8d95f15202
1 changed files with 5 additions and 0 deletions

View File

@ -115,6 +115,11 @@ class HoneyPotSSHFactory(factory.SSHFactory):
ske.remove('diffie-hellman-group-exchange-sha1')
t.supportedKeyExchanges = ske
# reorder supported ciphers to resemble current openssh more
t.supportedCiphers = ['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc' ]
t.supportedPublicKeys = ['ssh-rsa', 'ssh-dss']
t.supportedMACs = [ 'hmac-md5', 'hmac-sha1']
t.factory = self
return t