Fix queued command parsing

- do not append line as string, but as list
This commit is contained in:
Katarina Durechova
2016-04-26 14:34:19 +02:00
parent 10c9474392
commit 9ba225bf16

View File

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