diff options
Diffstat (limited to 'tools/sploit/sploit/comm.py')
-rw-r--r-- | tools/sploit/sploit/comm.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/sploit/sploit/comm.py b/tools/sploit/sploit/comm.py index f9c3a38..d3b1395 100644 --- a/tools/sploit/sploit/comm.py +++ b/tools/sploit/sploit/comm.py @@ -103,7 +103,14 @@ class Process: self.stdout = self.proc.stdin def __del__(self): - self.proc.wait() + if(self.proc.poll() != None): + return + try: + print("Waiting on Target Program to End...") + print("Press Ctrl+C to Forcefully Kill It...") + self.proc.wait() + except KeyboardInterrupt: + self.proc.kill() class Pipes: def __init__(self,tmp=None): |