mirror of
https://github.com/aljazceru/cowrie.git
synced 2026-01-31 12:04:24 +01:00
store ssh kex cookie. just to check if there's patterns
This commit is contained in:
@@ -232,6 +232,8 @@ class HoneyPotTransport(transport.SSHServerTransport, TimeoutMixin):
|
||||
def ssh_KEXINIT(self, packet):
|
||||
"""
|
||||
"""
|
||||
cookie = packet[:16]
|
||||
log.msg("ssh KEXINIT cookie %s" % (cookie.encode('hex'),))
|
||||
k = getNS(packet[16:], 10)
|
||||
strings, rest = k[:-1], k[-1]
|
||||
(kexAlgs, keyAlgs, encCS, encSC, macCS, macSC, compCS, compSC, langCS,
|
||||
|
||||
Reference in New Issue
Block a user