minor adjustments

This commit is contained in:
Miroslav Stampar 2010-12-21 00:25:03 +00:00
parent a876fcedfb
commit 416755c0b7
2 changed files with 8 additions and 4 deletions

View File

@ -367,9 +367,13 @@ def start():
logger.warn(warnMsg)
if len(kb.injections) == 0 or (len(kb.injections) == 1 and kb.injections[0].place is None):
errMsg = "all parameters are not injectable, try "
errMsg += "a higher --level"
raise sqlmapNotVulnerableException, errMsg
if not conf.scriptKiddie:
errMsg = "all parameters are not injectable, try "
errMsg += "a higher --level"
raise sqlmapNotVulnerableException, errMsg
else:
errMsg = "it seems that all parameters are not injectable"
raise sqlmapNotVulnerableException, errMsg
else:
__saveToSessionFile()
__showInjections()

View File

@ -287,7 +287,7 @@ class Connect:
if silent or (ignoreTimeout and "timeout" in tbMsg):
return None, None
elif kb.retriesCount < conf.retries and not conf.threadException:
elif kb.retriesCount < conf.retries and not conf.threadException and not conf.scriptKiddie:
kb.retriesCount += 1
warnMsg += ", sqlmap is going to retry the request"