minor improvement of dynamic content detection/removal part

This commit is contained in:
Miroslav Stampar 2010-11-30 12:45:42 +00:00
parent 8b9706656e
commit 47a7708950

View File

@ -540,18 +540,23 @@ def checkStability():
else:
checkDynamicContent(firstPage, secondPage)
if not Request.queryPage():
warnMsg = "target url is heavily dynamic. retrying. "
logger.warn(warnMsg)
secondPage, _ = Request.queryPage(content=True)
checkDynamicContent(firstPage, secondPage)
count = 0
while not Request.queryPage():
count += 1
if not Request.queryPage():
if count > conf.retries:
errMsg = "target url is too dynamic. unable to continue. "
errMsg += "consider using other switches (e.g. "
errMsg += "--longest-common, --string, --text-only, etc.)"
raise sqlmapSiteTooDynamic, errMsg
warnMsg = "target url is heavily dynamic"
warnMsg += ", sqlmap is going to retry the request"
logger.critical(warnMsg)
secondPage, _ = Request.queryPage(content=True)
checkDynamicContent(firstPage, secondPage)
return kb.pageStable
def checkString():