mirror of
https://github.com/cowrie/cowrie.git
synced 2025-07-01 18:07:27 -04:00
format needs {}
This commit is contained in:
@ -176,11 +176,11 @@ class Output(object):
|
|||||||
sessionno = 0
|
sessionno = 0
|
||||||
telnetmatch = self.telnetRegex.match(ev['system'])
|
telnetmatch = self.telnetRegex.match(ev['system'])
|
||||||
if telnetmatch:
|
if telnetmatch:
|
||||||
sessionno = 'T'.format(telnetmatch.groups()[0])
|
sessionno = 'T{}'.format(telnetmatch.groups()[0])
|
||||||
else:
|
else:
|
||||||
sshmatch = self.sshRegex.match(ev['system'])
|
sshmatch = self.sshRegex.match(ev['system'])
|
||||||
if sshmatch:
|
if sshmatch:
|
||||||
sessionno = 'S'.format(sshmatch.groups()[0])
|
sessionno = 'S{}'.format(sshmatch.groups()[0])
|
||||||
if sessionno == 0:
|
if sessionno == 0:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user