mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Minor improvement
This commit is contained in:
@@ -1015,11 +1015,15 @@ def checkStability():
|
||||
like for instance string matching (--string).
|
||||
"""
|
||||
|
||||
infoMsg = "testing if the target URL is stable. This can take a couple of seconds"
|
||||
infoMsg = "testing if the target URL is stable. This can take up to a second"
|
||||
logger.info(infoMsg)
|
||||
|
||||
firstPage = kb.originalPage # set inside checkConnection()
|
||||
time.sleep(1)
|
||||
|
||||
delay = 1 - (time.time() - (kb.originalPageTime or 0))
|
||||
delay = max(0, min(1, delay))
|
||||
time.sleep(delay)
|
||||
|
||||
secondPage, _ = Request.queryPage(content=True, raise404=False)
|
||||
|
||||
if kb.redirectChoice:
|
||||
@@ -1306,6 +1310,7 @@ def checkConnection(suppressOutput=False):
|
||||
try:
|
||||
page, _ = Request.queryPage(content=True, noteResponseTime=False)
|
||||
kb.originalPage = kb.pageTemplate = page
|
||||
kb.originalPageTime = time.time()
|
||||
|
||||
kb.errorIsNone = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user