mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
minor update
This commit is contained in:
parent
e33f70269b
commit
f39170a2c4
|
@ -258,25 +258,25 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
||||||
|
|
||||||
if retVal in originalTbl or (retVal == ord('\n') and CHAR_INFERENCE_MARK in payload):
|
if retVal in originalTbl or (retVal == ord('\n') and CHAR_INFERENCE_MARK in payload):
|
||||||
if timeBasedCompare and not validateChar(idx, retVal):
|
if timeBasedCompare and not validateChar(idx, retVal):
|
||||||
errMsg = "invalid character detected. retrying.."
|
|
||||||
logger.error(errMsg)
|
|
||||||
|
|
||||||
if not kb.originalTimeDelay:
|
if not kb.originalTimeDelay:
|
||||||
kb.originalTimeDelay = conf.timeSec
|
kb.originalTimeDelay = conf.timeSec
|
||||||
|
|
||||||
conf.timeSec += 1
|
if (conf.timeSec - kb.originalTimeDelay) < MAX_TIME_REVALIDATION_STEPS:
|
||||||
if (conf.timeSec - kb.originalTimeDelay) <= MAX_TIME_REVALIDATION_STEPS:
|
errMsg = "invalid character detected. retrying.."
|
||||||
|
logger.error(errMsg)
|
||||||
|
|
||||||
warnMsg = "increasing time delay to %d second%s " % (conf.timeSec, 's' if conf.timeSec > 1 else '')
|
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)
|
||||||
|
|
||||||
|
conf.timeSec += 1
|
||||||
|
|
||||||
if kb.adjustTimeDelay:
|
if kb.adjustTimeDelay:
|
||||||
dbgMsg = "turning off auto-adjustment mechanism"
|
dbgMsg = "turning off auto-adjustment mechanism"
|
||||||
logger.debug(dbgMsg)
|
logger.debug(dbgMsg)
|
||||||
kb.adjustTimeDelay = False
|
kb.adjustTimeDelay = False
|
||||||
return getChar(idx, originalTbl, continuousOrder, expand)
|
return getChar(idx, originalTbl, continuousOrder, expand)
|
||||||
else:
|
else:
|
||||||
errMsg = "unable to properly validate character value. using last known value ('%s').." % decodeIntToUnicode(retVal)
|
errMsg = "unable to properly validate last character value ('%s').." % decodeIntToUnicode(retVal)
|
||||||
logger.error(errMsg)
|
logger.error(errMsg)
|
||||||
conf.timeSec = kb.originalTimeDelay
|
conf.timeSec = kb.originalTimeDelay
|
||||||
return decodeIntToUnicode(retVal)
|
return decodeIntToUnicode(retVal)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user