Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a80fe28

Browse files
committed
one more thing ;)
1 parent 933d701 commit a80fe28

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

lib/techniques/blind/inference.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,15 @@ def getChar(idx, charTbl=asciiTbl, continuousOrder=True, expand=charsetType is N
241241
else:
242242
retVal = minValue + 1
243243
if retVal in originalTbl or (retVal == ord('\n') and CHAR_INFERENCE_MARK in payload):
244-
if timeBasedCompare and not validateChar(idx, retVal):
245-
logger.error("invalid character detected. retrying...")
244+
#if timeBasedCompare and not validateChar(idx, retVal):
245+
if True:
246+
errMsg = "invalid character detected. retrying..."
247+
logger.error(errMsg)
248+
249+
conf.timeSec += 1
250+
warnMsg = "adjusting time delay to %d seconds" % conf.timeSec
251+
logger.warn(warnMsg)
252+
246253
return getChar(idx, originalTbl, continuousOrder, expand)
247254
else:
248255
return chr(retVal) if retVal < 128 else decodeIntToUnicode(retVal)

0 commit comments

Comments
 (0)