From d55418dcb09ab7c0bcf9df52afd3e54e59c24c95 Mon Sep 17 00:00:00 2001 From: Michel Oosterhof Date: Sat, 4 May 2019 11:16:20 +0400 Subject: [PATCH] posix parsing (#1105) --- src/cowrie/shell/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cowrie/shell/command.py b/src/cowrie/shell/command.py index 428de588..5a132ab7 100644 --- a/src/cowrie/shell/command.py +++ b/src/cowrie/shell/command.py @@ -162,7 +162,7 @@ class HoneyPotCommand(object): log.msg('QUEUED INPUT: {}'.format(line)) # FIXME: naive command parsing, see lineReceived below # line = "".join(line) - self.protocol.cmdstack[0].cmdpending.append(shlex.split(line, posix=False)) + self.protocol.cmdstack[0].cmdpending.append(shlex.split(line, posix=True)) def resume(self): pass