From 098a145be578498be4aa21b12679c45d57a46ce4 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Fri, 17 Feb 2023 17:17:02 -0500 Subject: comm: Enable logonread during interact() This is normally not an issue, since logonread defaults to True. However, if the user disables this setting, interact() becomes a lot less useful. logonread is now forced on during io.interact(), but respected through the rest of the API. Signed-off-by: Malfurious Signed-off-by: dusoleil --- sploit/comm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sploit/comm.py b/sploit/comm.py index 50ef3dc..58504d3 100644 --- a/sploit/comm.py +++ b/sploit/comm.py @@ -110,6 +110,8 @@ class Comm: try: ilog("<--Interact Mode-->") os.set_blocking(stdin.fileno(), False) + l = self.logonread + self.logonread = True poll = select.poll() poll.register(self.back.stdin, event) @@ -122,6 +124,7 @@ class Comm: except KeyboardInterrupt: pass finally: + self.logonread = l os.set_blocking(stdin.fileno(), True) ilog("<--Interact Mode Done-->") -- cgit v1.2.3