diff options
author | dusoleil <howcansocksbereal@gmail.com> | 2023-02-18 14:29:05 -0500 |
---|---|---|
committer | dusoleil <howcansocksbereal@gmail.com> | 2023-02-18 14:29:05 -0500 |
commit | 5fc3b61980e3f964b4d3834d31844ccb76986ba4 (patch) | |
tree | 549211431bc51c8756f7378b9f2a0262bd2fd0e7 | |
parent | d69fc63e9f41acd95f12b20bea305125cb574eb0 (diff) | |
download | sploit-5fc3b61980e3f964b4d3834d31844ccb76986ba4.tar.gz sploit-5fc3b61980e3f964b4d3834d31844ccb76986ba4.zip |
Read once at the beginning of interact mode.
This behavior was accidentally removed in dcba5f2
interact mode works by polling for IO events, but it will miss any
unread data already in the buffer when it is first entered. We can
ensure this gets caught by just doing a read once at the beginning.
Signed-off-by: dusoleil <howcansocksbereal@gmail.com>
-rw-r--r-- | sploit/comm.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sploit/comm.py b/sploit/comm.py index f1415bc..8c46f1d 100644 --- a/sploit/comm.py +++ b/sploit/comm.py @@ -120,6 +120,7 @@ class Comm: poll.register(self.back.stdin, event) poll.register(stdin, event) + readtable[self.back.stdin.fileno()]() while True: for fd, e in poll.poll(self.timeout): if not e & event: return |