From e0e1d65caa2244f2f6fd2e329c8431266de4b8d6 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Wed, 15 Dec 2021 05:39:11 -0500 Subject: sploit: Check logonread in function Comm.readall() This function will no longer mistakenly log data when logonread is set to False. Signed-off-by: Malfurious Signed-off-by: dusoleil --- tools/sploit/sploit/comm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/sploit/sploit/comm.py b/tools/sploit/sploit/comm.py index 2786c45..242bc3d 100644 --- a/tools/sploit/sploit/comm.py +++ b/tools/sploit/sploit/comm.py @@ -31,7 +31,7 @@ class Comm: def readall(self): data = b'' for line in self.back.stdin: - ilog(line, file=sys.stdout, color=NORMAL) + if self.logonread : ilog(line, file=sys.stdout, color=NORMAL) data += line return data -- cgit v1.2.3