diff options
-rw-r--r-- | tools/sploit/sploit/comm.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/sploit/sploit/comm.py b/tools/sploit/sploit/comm.py index c109ec4..3972f16 100644 --- a/tools/sploit/sploit/comm.py +++ b/tools/sploit/sploit/comm.py @@ -124,6 +124,12 @@ class Comm: os.set_blocking(stdin.fileno(), True) ilog("<--Interact Mode Done-->") +def popen(cmdline=''): + io = Comm((Process(cmdline.split()) if len(cmdline) > 0 else Pipes())) + io.readall_nonblock() + io.readonwrite = True + return io + class Process: def __init__(self, args): ilog(f"Running: {' '.join(args)}") |