diff options
author | Malfurious <m@lfurio.us> | 2023-02-17 17:17:02 -0500 |
---|---|---|
committer | dusoleil <howcansocksbereal@gmail.com> | 2023-02-18 14:06:31 -0500 |
commit | 098a145be578498be4aa21b12679c45d57a46ce4 (patch) | |
tree | b0790f1565a3c84f8f49261e33da49e1e45f9428 | |
parent | 86d5abfa45c0dd0af8fac1f4dca950d5fa9f5e88 (diff) | |
download | sploit-098a145be578498be4aa21b12679c45d57a46ce4.tar.gz sploit-098a145be578498be4aa21b12679c45d57a46ce4.zip |
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 <m@lfurio.us>
Signed-off-by: dusoleil <howcansocksbereal@gmail.com>
-rw-r--r-- | sploit/comm.py | 3 |
1 files changed, 3 insertions, 0 deletions
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-->") |