diff --git a/src/attackmate/executors/shell/shellexecutor.py b/src/attackmate/executors/shell/shellexecutor.py index a6d89ba..fae94df 100644 --- a/src/attackmate/executors/shell/shellexecutor.py +++ b/src/attackmate/executors/shell/shellexecutor.py @@ -75,15 +75,15 @@ def popen_interactive(self, proc: subprocess.Popen, cmd: bytes, timeout: int=5, t.daemon = True t.start() - line = b'' + outline = b'' if read: begin = datetime.now() while (datetime.now() - begin ).total_seconds() < timeout: if q.qsize() > 0: - line += q.get_nowait() + outline += q.get_nowait() begin = datetime.now() # reset timer when data comes - return line.decode() + return outline.decode() def _exec_cmd(self, command: ShellCommand) -> Result: