increase sessiosn size from 8 to 12 characters

This commit is contained in:
Michel Oosterhof
2017-05-21 17:55:45 +04:00
parent 4e2f24ffd4
commit 51d43d542a
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ class HoneyPotSSHTransport(transport.SSHServerTransport, TimeoutMixin):
Called when the connection is made from the other side. Called when the connection is made from the other side.
We send our version, but wait with sending KEXINIT 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 src_ip = self.transport.getPeer().host
ipv4rex = re.compile(r'^::ffff:(\d+\.\d+\.\d+\.\d+)$') ipv4rex = re.compile(r'^::ffff:(\d+\.\d+\.\d+\.\d+)$')

View File

@ -204,7 +204,7 @@ class CowrieTelnetTransport(TelnetTransport, TimeoutMixin):
""" """
""" """
def connectionMade(self): def connectionMade(self):
self.transportId = uuid.uuid4().hex[:8] self.transportId = uuid.uuid4().hex[:12]
sessionno = self.transport.sessionno sessionno = self.transport.sessionno
self.startTime = time.time() self.startTime = time.time()
self.setTimeout(300) self.setTimeout(300)