mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 05:01:30 +00:00
More code cleanup
This commit is contained in:
@@ -433,9 +433,9 @@ def checkSqlInjection(place, parameter, value):
|
||||
injection.data[stype].matchRatio = kb.matchRatio
|
||||
|
||||
injection.conf.textOnly = conf.textOnly
|
||||
injection.conf.string = conf.string
|
||||
injection.conf.regexp = conf.regexp
|
||||
injection.conf.timeSec = conf.timeSec
|
||||
injection.conf.string = conf.string
|
||||
injection.conf.regexp = conf.regexp
|
||||
injection.conf.timeSec = conf.timeSec
|
||||
|
||||
if hasattr(test, "details"):
|
||||
for detailKey, detailValue in test.details.items():
|
||||
|
||||
@@ -380,11 +380,13 @@ def start():
|
||||
if not conf.realTest:
|
||||
errMsg = "all parameters are not injectable, try "
|
||||
errMsg += "a higher --level/--risk to use more tests"
|
||||
|
||||
if not conf.textOnly and kb.originalPage:
|
||||
percent = (1.0 * len(kb.originalPage) / len(getFilteredPageContent(kb.originalPage)))
|
||||
errMsg += " and/or --text-only switch if the target page "
|
||||
errMsg += "has a low percentage of textual content "
|
||||
errMsg += "(%.2f%% of page content is text)" % percent
|
||||
|
||||
raise sqlmapNotVulnerableException, errMsg
|
||||
else:
|
||||
errMsg = "it seems that all parameters are not injectable"
|
||||
|
||||
Reference in New Issue
Block a user