diff --git a/routersploit/interpreter.py b/routersploit/interpreter.py index 5eeeeb6..60fe16f 100644 --- a/routersploit/interpreter.py +++ b/routersploit/interpreter.py @@ -274,6 +274,9 @@ class RoutersploitInterpreter(BaseInterpreter): utils.print_status("Running module...") try: self.current_module.run() + except KeyboardInterrupt: + print() + utils.print_error("Operation cancelled by user") except: utils.print_error(traceback.format_exc(sys.exc_info()))