mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 11:33:47 +03:00
minor improvement of dynamic content detection/removal part
This commit is contained in:
parent
8b9706656e
commit
47a7708950
|
@ -540,18 +540,23 @@ def checkStability():
|
||||||
else:
|
else:
|
||||||
checkDynamicContent(firstPage, secondPage)
|
checkDynamicContent(firstPage, secondPage)
|
||||||
|
|
||||||
if not Request.queryPage():
|
count = 0
|
||||||
warnMsg = "target url is heavily dynamic. retrying. "
|
while not Request.queryPage():
|
||||||
logger.warn(warnMsg)
|
count += 1
|
||||||
|
|
||||||
|
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)
|
secondPage, _ = Request.queryPage(content=True)
|
||||||
checkDynamicContent(firstPage, secondPage)
|
checkDynamicContent(firstPage, secondPage)
|
||||||
|
|
||||||
if not Request.queryPage():
|
|
||||||
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
|
|
||||||
|
|
||||||
return kb.pageStable
|
return kb.pageStable
|
||||||
|
|
||||||
def checkString():
|
def checkString():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user