summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2021-12-15 05:39:11 -0500
committerMalfurious <m@lfurio.us>2021-12-17 22:19:45 -0500
commite0e1d65caa2244f2f6fd2e329c8431266de4b8d6 (patch)
tree26c6fb5a9383a8a54e88cf8045baa3c4ec0688f4
parent244884bd2d373cecb783135eca51da8530d5f078 (diff)
downloadlib-des-gnux-e0e1d65caa2244f2f6fd2e329c8431266de4b8d6.tar.gz
lib-des-gnux-e0e1d65caa2244f2f6fd2e329c8431266de4b8d6.zip
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 <m@lfurio.us> Signed-off-by: dusoleil <howcansocksbereal@gmail.com>
-rw-r--r--tools/sploit/sploit/comm.py2
1 files changed, 1 insertions, 1 deletions
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