mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +03:00
Ask the user wheather or not to adjust the time delay - there have been a case where the forcing of conf.timeSec screwed the result in an extremely lagged and unreliable site
This commit is contained in:
parent
997c9ba1e8
commit
36280b33fa
|
@ -2098,11 +2098,12 @@ def adjustTimeDelay(lastQueryDuration, lowerStdLimit):
|
|||
if all([x == candidate for x in kb.delayCandidates]) and candidate < conf.timeSec:
|
||||
print
|
||||
|
||||
warnMsg = "adjusting time delay to %d second%s " % (candidate, 's' if candidate > 1 else '')
|
||||
warnMsg += "(due to good response times)"
|
||||
logger.warn(warnMsg)
|
||||
msg = "do you want to adjust the time delay to %d second%s " % (candidate, 's' if candidate > 1 else '')
|
||||
msg += "(due to good response times)? [Y/n] "
|
||||
inp = readInput(msg, default="Y")
|
||||
|
||||
conf.timeSec = candidate
|
||||
if inp and inp[0].lower() == "y":
|
||||
conf.timeSec = candidate
|
||||
|
||||
def extractErrorMessage(page):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user