diff options
author | Malfurious <m@lfurio.us> | 2021-12-15 21:12:11 -0500 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2021-12-17 22:19:50 -0500 |
commit | 97c48aa4badc4f56914e258f7cd989380ee2d50f (patch) | |
tree | b36a84e9f24932375aacab9a74f3bf420f5f407b | |
parent | 1b3d9cfcc6d5bd574f175353657176e970a64d8f (diff) | |
download | sploit-97c48aa4badc4f56914e258f7cd989380ee2d50f.tar.gz sploit-97c48aa4badc4f56914e258f7cd989380ee2d50f.zip |
sploit: Add logonwrite option to comms
If enabled, data sent to the target will be printed/logged as alt text,
similar to data directly printed by the user. Feature is off by
default.
Signed-off-by: Malfurious <m@lfurio.us>
Signed-off-by: dusoleil <howcansocksbereal@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | sploit/comm.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sploit/comm.py b/sploit/comm.py index 242bc3d..0bc8c6a 100644 --- a/sploit/comm.py +++ b/sploit/comm.py @@ -9,6 +9,7 @@ from sploit.until import bind class Comm: logonread = True + logonwrite = False flushonwrite = True def __init__(self, backend): @@ -60,6 +61,7 @@ class Comm: def write(self, data): self.back.stdout.write(data) if self.flushonwrite : self.back.stdout.flush() + if self.logonwrite : ilog(data, file=sys.stdout, color=ALT) def writeline(self, data): self.write(data + b'\n') |