mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
Minor style update
This commit is contained in:
parent
76338add17
commit
e0d9fa8666
|
@ -508,18 +508,18 @@ def start():
|
||||||
if not conf.textOnly and kb.originalPage:
|
if not conf.textOnly and kb.originalPage:
|
||||||
percent = (100.0 * len(getFilteredPageContent(kb.originalPage)) / len(kb.originalPage))
|
percent = (100.0 * len(getFilteredPageContent(kb.originalPage)) / len(kb.originalPage))
|
||||||
|
|
||||||
if kb.dynamicParameters:
|
if kb.dynamicMarkings:
|
||||||
errMsg += " You can give it a go with the switch '--text-only' "
|
errMsg += " You can give it a go with the switch '--text-only' "
|
||||||
errMsg += "if the target page has a low percentage "
|
errMsg += "if the target page has a low percentage "
|
||||||
errMsg += "of textual content (~%.2f%% of " % percent
|
errMsg += "of textual content (~%.2f%% of " % percent
|
||||||
errMsg += "page content is text)."
|
errMsg += "page content is text)"
|
||||||
elif percent < LOW_TEXT_PERCENT and not kb.errorIsNone:
|
elif percent < LOW_TEXT_PERCENT and not kb.errorIsNone:
|
||||||
errMsg += " Please retry with the switch '--text-only' "
|
errMsg += " Please retry with the switch '--text-only' "
|
||||||
errMsg += "(along with --technique=BU) as this case "
|
errMsg += "(along with --technique=BU) as this case "
|
||||||
errMsg += "looks like a perfect candidate "
|
errMsg += "looks like a perfect candidate "
|
||||||
errMsg += "(low textual content along with inability "
|
errMsg += "(low textual content along with inability "
|
||||||
errMsg += "of comparison engine to detect at least "
|
errMsg += "of comparison engine to detect at least "
|
||||||
errMsg += "one dynamic parameter)."
|
errMsg += "one dynamic parameter)"
|
||||||
|
|
||||||
if kb.heuristicTest:
|
if kb.heuristicTest:
|
||||||
errMsg += " As heuristic test turned out positive you are "
|
errMsg += " As heuristic test turned out positive you are "
|
||||||
|
|
|
@ -1484,7 +1484,6 @@ def __setKnowledgeBaseAttributes(flushAll=True):
|
||||||
kb.docRoot = None
|
kb.docRoot = None
|
||||||
kb.dumpTable = None
|
kb.dumpTable = None
|
||||||
kb.dynamicMarkings = []
|
kb.dynamicMarkings = []
|
||||||
kb.dynamicParameters = False
|
|
||||||
kb.endDetection = False
|
kb.endDetection = False
|
||||||
kb.explicitSettings = set()
|
kb.explicitSettings = set()
|
||||||
kb.errorIsNone = True
|
kb.errorIsNone = True
|
||||||
|
|
Loading…
Reference in New Issue
Block a user