mirror of
https://github.com/aljazceru/cowrie.git
synced 2026-02-23 15:24:30 +01:00
also fix logging for failed commands
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user