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
commit1b3d9cfcc6d5bd574f175353657176e970a64d8f (patch)
treeb537c03acd3b23375dc3fc003e1355daedfffb9b
parenta72991b2a6fe7481cefdd74cfd9f9b24a442197b (diff)
downloadsploit-1b3d9cfcc6d5bd574f175353657176e970a64d8f.tar.gz
sploit-1b3d9cfcc6d5bd574f175353657176e970a64d8f.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--sploit/comm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sploit/comm.py b/sploit/comm.py
index 2786c45..242bc3d 100644
--- a/sploit/comm.py
+++ b/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