Log the client version string during connection

git-svn-id: https://kippo.googlecode.com/svn/trunk@155 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
desaster
2010-07-05 16:55:03 +00:00
parent b2cb068857
commit fafe2f639c

View File

@ -405,6 +405,10 @@ class HoneyPotTransport(transport.SSHServerTransport):
self.transport.sessionno) self.transport.sessionno)
transport.SSHServerTransport.connectionMade(self) transport.SSHServerTransport.connectionMade(self)
def ssh_KEXINIT(self, packet):
print 'Remote SSH version: %s' % (self.otherVersionString,)
return transport.SSHServerTransport.ssh_KEXINIT(self, packet)
# As implemented by Kojoney # As implemented by Kojoney
class HoneyPotSSHFactory(factory.SSHFactory): class HoneyPotSSHFactory(factory.SSHFactory):
#publicKeys = {'ssh-rsa': keys.getPublicKeyString(data=publicKey)} #publicKeys = {'ssh-rsa': keys.getPublicKeyString(data=publicKey)}