diff options
author | dusoleil <howcansocksbereal@gmail.com> | 2021-09-01 00:24:38 -0400 |
---|---|---|
committer | dusoleil <howcansocksbereal@gmail.com> | 2021-09-01 00:24:38 -0400 |
commit | 4ad55bd63722303ae642dd955d9496c41c8fb681 (patch) | |
tree | 33ac5105e29a54555d71977d0d6465449e9a75b7 | |
parent | d28c9fe76bed900723f94527f3dc438e6d9bdc09 (diff) | |
download | lib-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.py | 19 |
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...") |