Update for an Issue #161 (changing default readInput value regarding the conf.multipleTargets)

This commit is contained in:
Miroslav Stampar 2012-08-22 16:06:09 +02:00
parent 4ab4fd1cb4
commit a62a874d59
2 changed files with 4 additions and 3 deletions

View File

@ -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)

View File

@ -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()