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