mirror of https://github.com/cowrie/cowrie.git
increase sessiosn size from 8 to 12 characters
This commit is contained in:
parent
4e2f24ffd4
commit
51d43d542a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue