minor update

This commit is contained in:
Miroslav Stampar 2010-11-29 15:25:45 +00:00
parent c76d740a25
commit e735f2960a
3 changed files with 10 additions and 4 deletions

View File

@ -540,6 +540,12 @@ 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)
if not Request.queryPage():
errMsg = "target url is too dynamic. unable to continue. "
errMsg += "consider using other switches (e.g. "

View File

@ -1108,7 +1108,6 @@ def __setConfAttributes():
conf.path = None
conf.port = None
conf.redirectHandled = False
conf.retriesCount = 0
conf.scheme = None
#conf.seqMatcher = difflib.SequenceMatcher(lambda x: x in " \t")
conf.seqMatcher = difflib.SequenceMatcher(None)
@ -1191,6 +1190,7 @@ def __setKnowledgeBaseAttributes():
kb.proxyAuthHeader = None
kb.queryCounter = 0
kb.resumedQueries = {}
kb.retriesCount = 0
kb.tamperFunctions = []
kb.targetUrls = set()
kb.testedParams = set()

View File

@ -208,7 +208,7 @@ class Connect:
conf.redirectHandled = True
# Reset the number of connection retries
conf.retriesCount = 0
kb.retriesCount = 0
# Return response object
if response:
@ -276,8 +276,8 @@ class Connect:
if silent:
return None, None
elif conf.retriesCount < conf.retries:
conf.retriesCount += 1
elif kb.retriesCount < conf.retries:
kb.retriesCount += 1
warnMsg += ", sqlmap is going to retry the request"
logger.critical(warnMsg)