mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-18 04:20:35 +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:
|
if all([x == candidate for x in kb.delayCandidates]) and candidate < conf.timeSec:
|
||||||
print
|
print
|
||||||
|
|
||||||
warnMsg = "adjusting time delay to %d second%s " % (candidate, 's' if candidate > 1 else '')
|
msg = "do you want to adjust the time delay to %d second%s " % (candidate, 's' if candidate > 1 else '')
|
||||||
warnMsg += "(due to good response times)"
|
msg += "(due to good response times)? [Y/n] "
|
||||||
logger.warn(warnMsg)
|
inp = readInput(msg, default="Y")
|
||||||
|
|
||||||
conf.timeSec = candidate
|
if inp and inp[0].lower() == "y":
|
||||||
|
conf.timeSec = candidate
|
||||||
|
|
||||||
def extractErrorMessage(page):
|
def extractErrorMessage(page):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user