FIXED XMPP (#205)

* FIXED XMPP
Include ::1 in ev[system]

* Fixed ipv6 stuff

* Needs a : For ipv6
This commit is contained in:
Dave Germiquet
2016-07-10 13:48:48 -04:00
committed by Michel Oosterhof
parent 89e1dc81f4
commit 3764b4f93b
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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