diff --git a/lib/controller/checks.py b/lib/controller/checks.py index d46b239da..6a1401894 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -666,8 +666,9 @@ def heuristicCheckSqlInjection(place, parameter): errMsg += "at the back-end web application" logger.error(errMsg) - message = "do you want to skip those kind of cases (and save scanning time)? [Y/n] " - kb.ignoreCasted = readInput(message, default='Y').upper() != 'N' + if kb.ignoreCasted is None: + message = "do you want to skip those kind of parameters (and save scanning time)? %s " % ("[Y/n]" if conf.multipleTargets else "[y/N]") + kb.ignoreCasted = readInput(message, default='Y' if conf.multipleTargets else 'N').upper() != 'N' elif result: infoMsg += "be injectable (possible DBMS: %s)" % (Format.getErrorParsedDBMSes() or UNKNOWN_DBMS_VERSION) diff --git a/lib/core/option.py b/lib/core/option.py index c74e9a28d..d3203e4e6 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -1496,7 +1496,7 @@ def __setKnowledgeBaseAttributes(flushAll=True): kb.htmlFp = [] kb.httpErrorCodes = {} kb.inferenceMode = False - kb.ignoreCasted = False + kb.ignoreCasted = None kb.ignoreNotFound = False kb.ignoreTimeout = False kb.injection = InjectionDict()