From 9ba225bf160f5c7722d97d806a322c3adaa62f3d Mon Sep 17 00:00:00 2001 From: Katarina Durechova Date: Tue, 26 Apr 2016 14:34:19 +0200 Subject: [PATCH] Fix queued command parsing - do not append line as string, but as list --- 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 8d43b7c..06335de 100644 --- a/cowrie/core/honeypot.py +++ b/cowrie/core/honeypot.py @@ -98,7 +98,7 @@ class HoneyPotCommand(object): """ log.msg('QUEUED INPUT: %s' % (line,)) # FIXME: naive command parsing, see lineReceived below - self.protocol.cmdstack[0].cmdpending.append(line) + self.protocol.cmdstack[0].cmdpending.append(shlex.split(line)) def resume(self):