mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 21:21:33 +00:00
modifying redirection code for only two choices
This commit is contained in:
@@ -720,7 +720,7 @@ def checkDynamicContent(firstPage, secondPage):
|
||||
|
||||
if count > conf.retries:
|
||||
warnMsg = "target url is too dynamic. "
|
||||
warnMsg += "switching to '--text-only' "
|
||||
warnMsg += "Switching to '--text-only' "
|
||||
logger.warn(warnMsg)
|
||||
|
||||
conf.textOnly = True
|
||||
@@ -744,9 +744,6 @@ def checkStability():
|
||||
like for instance string matching (--string).
|
||||
"""
|
||||
|
||||
if kb.redirectChoice:
|
||||
return None
|
||||
|
||||
infoMsg = "testing if the url is stable, wait a few seconds"
|
||||
logger.info(infoMsg)
|
||||
|
||||
@@ -754,6 +751,9 @@ def checkStability():
|
||||
time.sleep(1)
|
||||
secondPage, _ = Request.queryPage(content=True, raise404=False)
|
||||
|
||||
if kb.redirectChoice:
|
||||
return None
|
||||
|
||||
kb.pageStable = (firstPage == secondPage)
|
||||
|
||||
if kb.pageStable:
|
||||
|
||||
Reference in New Issue
Block a user