mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 04:31:30 +00:00
improving time based data retrieval mechanism
This commit is contained in:
@@ -1846,7 +1846,8 @@ 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 = "adjusting time delay to %d second%s " % (candidate, 's' if candidate > 1 else '')
|
||||
warnMsg += "(due to good response times)"
|
||||
logger.warn(warnMsg)
|
||||
|
||||
conf.timeSec = candidate
|
||||
|
||||
@@ -250,9 +250,14 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
||||
logger.error(errMsg)
|
||||
|
||||
conf.timeSec += 1
|
||||
warnMsg = "adjusting time delay to %d seconds" % conf.timeSec
|
||||
warnMsg = "increasing time delay to %d second%s " % (conf.timeSec, 's' if conf.timeSec > 1 else '')
|
||||
warnMsg += "(due to invalid char)"
|
||||
logger.warn(warnMsg)
|
||||
|
||||
if kb.adjustTimeDelay:
|
||||
dbgMsg = "turning off auto-adjustment mechanism"
|
||||
logger.debug(dbgMsg)
|
||||
kb.adjustTimeDelay = False
|
||||
return getChar(idx, originalTbl, continuousOrder, expand)
|
||||
else:
|
||||
return decodeIntToUnicode(retVal)
|
||||
|
||||
Reference in New Issue
Block a user