summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sploit/comm.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/sploit/comm.py b/sploit/comm.py
index f9c3a38..d3b1395 100644
--- a/sploit/comm.py
+++ b/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):