summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2021-09-01 00:24:38 -0400
committerdusoleil <howcansocksbereal@gmail.com>2021-09-01 00:24:38 -0400
commiteb7e05d64c8df4ca30b60727b7846ee621e0d920 (patch)
tree918b4b044ca8bb55478aafb8ffb2950cb48c57d7
parent3a937fe7bda97d17cd710f7b8c1fa9101be410fa (diff)
downloadsploit-eb7e05d64c8df4ca30b60727b7846ee621e0d920.tar.gz
sploit-eb7e05d64c8df4ca30b60727b7846ee621e0d920.zip
Allow Exit with Ctrl+C without a Stacktrace
Signed-off-by: dusoleil <howcansocksbereal@gmail.com>
-rw-r--r--sploit/main.py19
1 files changed, 11 insertions, 8 deletions
diff --git a/sploit/main.py b/sploit/main.py
index b1ddf13..6c96104 100644
--- a/sploit/main.py
+++ b/sploit/main.py
@@ -13,15 +13,18 @@ def main():
help='target program to exploit')
args = parser.parse_args()
- if(len(args.target)>0):
- if(args.daemon):
- print("Target Given. Ignoring Daemon Flag...")
- target(args.script,args.target)
- else:
- if(args.daemon):
- daemon(args.script)
+ try:
+ if(len(args.target)>0):
+ if(args.daemon):
+ print("Target Given. Ignoring Daemon Flag...")
+ target(args.script,args.target)
else:
- pipe(args.script)
+ if(args.daemon):
+ daemon(args.script)
+ else:
+ pipe(args.script)
+ except KeyboardInterrupt:
+ pass
def daemon(script):
print("Running in Pipe Daemon Mode...")