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
commit4ad55bd63722303ae642dd955d9496c41c8fb681 (patch)
tree33ac5105e29a54555d71977d0d6465449e9a75b7
parentd28c9fe76bed900723f94527f3dc438e6d9bdc09 (diff)
downloadlib-des-gnux-4ad55bd63722303ae642dd955d9496c41c8fb681.tar.gz
lib-des-gnux-4ad55bd63722303ae642dd955d9496c41c8fb681.zip
Allow Exit with Ctrl+C without a Stacktrace
Signed-off-by: dusoleil <howcansocksbereal@gmail.com>
-rw-r--r--tools/sploit/sploit/main.py19
1 files changed, 11 insertions, 8 deletions
diff --git a/tools/sploit/sploit/main.py b/tools/sploit/sploit/main.py
index b1ddf13..6c96104 100644
--- a/tools/sploit/sploit/main.py
+++ b/tools/sploit/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...")