diff --git a/data/txt/sha256sums.txt b/data/txt/sha256sums.txt index 286c958a3..ea0dae95c 100644 --- a/data/txt/sha256sums.txt +++ b/data/txt/sha256sums.txt @@ -159,7 +159,7 @@ df768bcb9838dc6c46dab9b4a877056cb4742bd6cfaaf438c4a3712c5cc0d264 extra/shutils/ 4608f21a4333c162ab3c266c903fda4793cc5834de30d06affe9b7566dd09811 extra/vulnserver/__init__.py eed1db5da17eca4c65a8f999166e2246eef84397687ae820bbe4984ef65a09df extra/vulnserver/vulnserver.py 96a39b4e3a9178e4e8285d5acd00115460cc1098ef430ab7573fc8194368da5c lib/controller/action.py -fad6640f60eac8ad1b65895cbccc39154864843a2a0b0f2ac596d3227edcd4f6 lib/controller/checks.py +3790bb734907f74e127d5409d93197088a7a8caa04f69f19eb2f69e959ae22f0 lib/controller/checks.py 34e9cf166e21ce991b61ca7695c43c892e8425f7e1228daec8cadd38f786acc6 lib/controller/controller.py 49bcd74281297c79a6ae5d4b0d1479ddace4476fddaf4383ca682a6977b553e3 lib/controller/handler.py 4608f21a4333c162ab3c266c903fda4793cc5834de30d06affe9b7566dd09811 lib/controller/__init__.py diff --git a/lib/controller/checks.py b/lib/controller/checks.py index 06bf5d8b6..ba11a6057 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -802,22 +802,21 @@ def checkSqlInjection(place, parameter, value): logger.warning(warnMsg) if conf.multipleTargets: - msg = "how do you want to proceed? [ne(X)t target/(s)kip current test/(e)nd detection phase/(n)ext parameter/(c)hange verbosity/(q)uit]" - choice = readInput(msg, default='X', checkBatch=False).upper() + msg = "how do you want to proceed? [ne(X)t target/(s)kip current test/(e)nd detection phase/(n)ext parameter/(c)hange verbosity (c[0-6])/(q)uit]" + default = 'X' else: - msg = "how do you want to proceed? [(S)kip current test/(e)nd detection phase/(n)ext parameter/(c)hange verbosity/(q)uit]" - choice = readInput(msg, default='S', checkBatch=False).upper() - + msg = "how do you want to proceed? [(S)kip current test/(e)nd detection phase/(n)ext parameter/(c)hange verbosity (c[0-6])/(q)uit]" + default = 'S' + choice = readInput(msg, default=default, checkBatch=False).upper() + if choice == 'X': if conf.multipleTargets: raise SqlmapSkipTargetException - elif choice == 'C': - choice = None - while not ((choice or "").isdigit() and 0 <= int(choice) <= 6): - if choice: - logger.warning("invalid value") - msg = "enter new verbosity level: [0-6] " - choice = readInput(msg, default=str(conf.verbose), checkBatch=False) + elif choice.startswith('C'): + if len(choice) == 1: + choice = readInput("enter new verbosity level: [0-6] ", default=str(conf.verbose), checkBatch=False) + elif len(choice) == 2 and choice[1].isdigit() and 0 <= int(choice[1]) <= 6: + choice = choice[1] conf.verbose = int(choice) setVerbosity() if hasattr(test.request, "columns") and hasattr(test.request, "_columns"):