also fix logging for failed commands

This commit is contained in:
Michel Oosterhof
2016-02-28 23:49:23 +00:00
parent 976f678368
commit 0c16b3e9ba

View File

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