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 | eb7e05d64c8df4ca30b60727b7846ee621e0d920 (patch) | |
tree | 918b4b044ca8bb55478aafb8ffb2950cb48c57d7 | |
parent | 3a937fe7bda97d17cd710f7b8c1fa9101be410fa (diff) | |
download | sploit-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.py | 19 |
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...") |