Minor cosmetics and adjustments

This commit is contained in:
Bernardo Damele 2010-11-07 15:34:52 +00:00
parent afba26a53f
commit 9669dbdae1
4 changed files with 9 additions and 1 deletions

View File

@ -292,7 +292,9 @@ def checkStability():
checkDynamicContent(firstPage, secondPage) checkDynamicContent(firstPage, secondPage)
if not Request.queryPage(): if not Request.queryPage():
errMsg = "target url is too dynamic. unable to continue. consider using other switches (e.g. --longest-common, --string, --text-only, etc.)" errMsg = "target url is too dynamic. unable to continue. "
errMsg += "consider using other switches (e.g. "
errMsg += "--longest-common, --string, --text-only, etc.)"
logger.error(errMsg) logger.error(errMsg)
raise sqlmapSilentQuitException raise sqlmapSilentQuitException

View File

@ -296,6 +296,7 @@ def start():
if kb.paramMatchRatio: if kb.paramMatchRatio:
conf.matchRatio = kb.paramMatchRatio[(kb.injPlace, kb.injParameter)] conf.matchRatio = kb.paramMatchRatio[(kb.injPlace, kb.injParameter)]
setMatchRatio() setMatchRatio()
checkForParenthesis() checkForParenthesis()
action() action()

View File

@ -65,6 +65,7 @@ optDict = {
"eRegexp": "string", "eRegexp": "string",
"thold": "float", "thold": "float",
"textOnly": "boolean", "textOnly": "boolean",
"longestCommon": "boolean",
"tamper": "string" "tamper": "string"
}, },

View File

@ -217,6 +217,10 @@ thold =
# Valid: True or False # Valid: True or False
textOnly = False textOnly = False
# Compare pages based on their longest common match
# Valid: True or False
longestCommon = False
# Use given script(s) for tampering injection data # Use given script(s) for tampering injection data
tamper = tamper =