diff options
author | Malfurious <m@lfurio.us> | 2023-02-17 17:17:03 -0500 |
---|---|---|
committer | dusoleil <howcansocksbereal@gmail.com> | 2023-02-18 14:06:32 -0500 |
commit | 9635fefa61f889da10feabfdd43be90e5701f314 (patch) | |
tree | ce8c1905b8dba0854db44ea9eb56a49162d2656a | |
parent | 098a145be578498be4aa21b12679c45d57a46ce4 (diff) | |
download | sploit-9635fefa61f889da10feabfdd43be90e5701f314.tar.gz sploit-9635fefa61f889da10feabfdd43be90e5701f314.zip |
comm: Add default argument for writeline()
The writeline function will now default to send an empty line when
called without an argument. I don't believe any such default makes
sense for the plain write function, as writing nothing should have no
effect.
Signed-off-by: Malfurious <m@lfurio.us>
Signed-off-by: dusoleil <howcansocksbereal@gmail.com>
-rw-r--r-- | sploit/comm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sploit/comm.py b/sploit/comm.py index 58504d3..0ba6e89 100644 --- a/sploit/comm.py +++ b/sploit/comm.py @@ -91,7 +91,7 @@ class Comm: if self.logonwrite : ilog(data, file=sys.stdout, color=ALT) if self.readonwrite : self.readall_nonblock() - def writeline(self, data): + def writeline(self, data=b''): self.write(data + b'\n') def interact(self): |