mirror of
https://github.com/cowrie/cowrie.git
synced 2025-07-01 18:07:27 -04:00
increase sessiosn size from 8 to 12 characters
This commit is contained in:
@ -26,7 +26,7 @@ class HoneyPotSSHTransport(transport.SSHServerTransport, TimeoutMixin):
|
||||
Called when the connection is made from the other side.
|
||||
We send our version, but wait with sending KEXINIT
|
||||
"""
|
||||
self.transportId = uuid.uuid4().hex[:8]
|
||||
self.transportId = uuid.uuid4().hex[:12]
|
||||
|
||||
src_ip = self.transport.getPeer().host
|
||||
ipv4rex = re.compile(r'^::ffff:(\d+\.\d+\.\d+\.\d+)$')
|
||||
|
||||
@ -204,7 +204,7 @@ class CowrieTelnetTransport(TelnetTransport, TimeoutMixin):
|
||||
"""
|
||||
"""
|
||||
def connectionMade(self):
|
||||
self.transportId = uuid.uuid4().hex[:8]
|
||||
self.transportId = uuid.uuid4().hex[:12]
|
||||
sessionno = self.transport.sessionno
|
||||
self.startTime = time.time()
|
||||
self.setTimeout(300)
|
||||
|
||||
Reference in New Issue
Block a user