From 0c16b3e9bae69f9e3d0798dcb6ccf0056742c2d6 Mon Sep 17 00:00:00 2001 From: Michel Oosterhof Date: Sun, 28 Feb 2016 23:49:23 +0000 Subject: [PATCH] also fix logging for failed commands --- cowrie/core/honeypot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cowrie/core/honeypot.py b/cowrie/core/honeypot.py index f30d315..4b641de 100644 --- a/cowrie/core/honeypot.py +++ b/cowrie/core/honeypot.py @@ -220,7 +220,7 @@ class HoneyPotShell(object): self.protocol.call_command(cmdclass, *rargs) else: log.msg(eventid='cowrie.command.failed', - input=' '.join(cmdAndArgs), format='Command not found: %(input)s') + input=' '.join(cmd2), format='Command not found: %(input)s') self.protocol.terminal.write('bash: %s: command not found\n' % (cmd,)) runOrPrompt()