From 72ae9fd60a4116768eb810a2c961a431da834465 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Wed, 15 Dec 2021 21:12:11 -0500 Subject: 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 Signed-off-by: dusoleil --- tools/sploit/sploit/comm.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/sploit') 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') -- cgit v1.2.3