summaryrefslogtreecommitdiffstats
path: root/tools/sploit/sploit/comm.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/sploit/sploit/comm.py')
-rw-r--r--tools/sploit/sploit/comm.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/sploit/sploit/comm.py b/tools/sploit/sploit/comm.py
index f7d2f5d..0ee786b 100644
--- a/tools/sploit/sploit/comm.py
+++ b/tools/sploit/sploit/comm.py
@@ -7,6 +7,7 @@ import select
import signal
from sploit.log import log
+from sploit.until import bind
class Comm:
def __init__(self, backend):
@@ -26,8 +27,9 @@ class Comm:
log(data)
return data
- def readuntil(self, pred):
+ def readuntil(self, pred, /, *args, **kwargs):
data = b''
+ pred = bind(pred, *args, **kwargs)
while(True):
data += self.back.stdin.read(1)
if(pred(data)):
@@ -35,8 +37,9 @@ class Comm:
log(data)
return data
- def readlineuntil(self, pred):
+ def readlineuntil(self, pred, /, *args, **kwargs):
dataarr = []
+ pred = bind(pred, *args, **kwargs)
while(True):
data = self.back.stdin.readline()
log(data)