This commit is contained in:
Miroslav Stampar
2010-12-23 14:06:22 +00:00
parent 73f33c1999
commit 017ea9e686
7 changed files with 11 additions and 54 deletions

View File

@@ -227,7 +227,7 @@ def start():
elif test[0] in ("q", "Q"):
break
elif conf.scriptKiddie:
elif conf.realTest:
logger.info(message)
else:
message += "\ndo you want to test this url? [Y/n/q]"
@@ -343,7 +343,7 @@ def start():
if testSqlInj:
check = heuristicCheckSqlInjection(place, parameter, value)
if not check and conf.scriptKiddie:
if not check and conf.realTest:
continue
logMsg = "testing sql injection on %s " % place
@@ -376,7 +376,7 @@ def start():
logger.warn(warnMsg)
if len(kb.injections) == 0 or (len(kb.injections) == 1 and kb.injections[0].place is None):
if not conf.scriptKiddie:
if not conf.realTest:
errMsg = "all parameters are not injectable, try "
errMsg += "a higher --level"
raise sqlmapNotVulnerableException, errMsg