From 9bc9302e58fe3f24a521266ba2d13ceb226513ec Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 5 Nov 2010 16:03:12 +0000 Subject: [PATCH] minor fix --- lib/controller/controller.py | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/lib/controller/controller.py b/lib/controller/controller.py index 39d1e68e7..d46fb199b 100644 --- a/lib/controller/controller.py +++ b/lib/controller/controller.py @@ -303,18 +303,21 @@ def start(): raise except KeyboardInterrupt: - warnMsg = "Ctrl+C detected" - logger.warn(warnMsg) + if conf.multipleTargets: + warnMsg = "Ctrl+C detected" + logger.warn(warnMsg) - message = "\ndo you want to skip to the next target in list [Y/n/q]" - test = readInput(message, default="Y") + message = "\ndo you want to skip to the next target in list [Y/n/q]" + test = readInput(message, default="Y") - if not test or test[0] in ("y", "Y"): - pass - elif test[0] in ("n", "N"): - return False - elif test[0] in ("q", "Q"): - raise sqlmapUserQuitException + if not test or test[0] in ("y", "Y"): + pass + elif test[0] in ("n", "N"): + return False + elif test[0] in ("q", "Q"): + raise sqlmapUserQuitException + else: + raise except sqlmapUserQuitException: raise