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 | 72ae9fd60a4116768eb810a2c961a431da834465 (patch) | |
tree | 7a3d08d6475cc8e9a783a96dcb31a0c2d89c4f6a | |
parent | e0e1d65caa2244f2f6fd2e329c8431266de4b8d6 (diff) | |
download | lib-des-gnux-72ae9fd60a4116768eb810a2c961a431da834465.tar.gz lib-des-gnux-72ae9fd60a4116768eb810a2c961a431da834465.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-- | tools/sploit/sploit/comm.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/sploit/sploit/comm.py b/tools/sploit/sploit/comm.py index 242bc3d..0bc8c6a 100644 --- a/tools/sploit/sploit/comm.py +++ b/tools/sploit/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') |