summaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2021-12-15 22:02:07 -0500
committerMalfurious <m@lfurio.us>2021-12-17 22:20:05 -0500
commit76e068420455a067d22ef2d4a45d65e2875e58b6 (patch)
treea07690944ca3c5562d4756d1ac17d280278e5479 /.gitignore
parentc7603c3cd00c565d67b6ee08510720934b34ca2e (diff)
downloadlib-des-gnux-76e068420455a067d22ef2d4a45d65e2875e58b6.tar.gz
lib-des-gnux-76e068420455a067d22ef2d4a45d65e2875e58b6.zip
sploit: Automatically shutdown outgoing comms after script execution
A new function, Comm.shutdown(), is added. It will close only the stdout stream of the communications backend, potentially making the termination of the target program more fluid. The name 'shutdown' is chosen to emulate shutdown(2) from the low-level socket api, which is used to close just part of a full-duplex file descriptor. This is in contrast to 'close', which I would expect to completely terminate the given object IO. comm.shutdown() is now called by main.py, after the user script returns, to ensure that the subsequent readall() doesn't get stuck because our target is blocked reading its stdin. Signed-off-by: Malfurious <m@lfurio.us> Signed-off-by: dusoleil <howcansocksbereal@gmail.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions