mirror of
https://github.com/cowrie/cowrie.git
synced 2025-07-01 18:07:27 -04:00
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:
@ -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)}
|
||||||
|
|||||||
Reference in New Issue
Block a user