mirror of
https://github.com/aljazceru/cowrie.git
synced 2026-02-23 07:14:24 +01:00
FIXED XMPP (#205)
* FIXED XMPP Include ::1 in ev[system] * Fixed ipv6 stuff * Needs a : For ipv6
This commit is contained in:
committed by
Michel Oosterhof
parent
89e1dc81f4
commit
3764b4f93b
@@ -19,8 +19,9 @@ class DBLogger(object):
|
||||
self.cfg = cfg
|
||||
self.sessions = {}
|
||||
self.ttylogs = {}
|
||||
#:* Handles ipv6
|
||||
self.re_sessionlog = re.compile(
|
||||
'.*HoneyPotTransport,([0-9]+),[0-9.]+$')
|
||||
'.*HoneyPotTransport,([0-9]+),:*[:fa-z0-9.]+$')
|
||||
|
||||
# cowrie.session.connect is special since it kicks off new logging session,
|
||||
# and is not handled here
|
||||
|
||||
@@ -298,7 +298,7 @@ class HoneyPotShell(object):
|
||||
|
||||
cmdclass = self.protocol.getCommand(cmd['command'], environ['PATH'] .split(':'))
|
||||
if cmdclass:
|
||||
log.msg(eventid='cowrie.command.success', input=' '.join(cmd2), format='Command found: %(input)s')
|
||||
log.msg(eventid='cowrie.command.success', input=cmd['command'] + " " + ' '.join(cmd['rargs']), format='Command found: %(input)s')
|
||||
if index == len(cmd_array)-1:
|
||||
lastpp = StdOutStdErrEmulationProtocol(self.protocol,cmdclass,cmd['rargs'],None,None)
|
||||
pp = lastpp
|
||||
|
||||
Reference in New Issue
Block a user