Minor thread-safety fix

This commit is contained in:
Miroslav Stampar
2025-12-30 13:37:32 +01:00
parent 63cecb6480
commit 866fc5dfac
3 changed files with 7 additions and 3 deletions

View File

@@ -239,6 +239,8 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
Used in inference - in time-based SQLi if original and retrieved value are not equal there will be a deliberate delay
"""
threadData = getCurrentThreadData()
validationPayload = re.sub(r"(%s.*?)%s(.*?%s)" % (PAYLOAD_DELIMITER, INFERENCE_GREATER_CHAR, PAYLOAD_DELIMITER), r"\g<1>%s\g<2>" % INFERENCE_NOT_EQUALS_CHAR, payload)
if "'%s'" % CHAR_INFERENCE_MARK not in payload:
@@ -268,6 +270,8 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
numerical values is exactly 1
"""
threadData = getCurrentThreadData()
result = tryHint(idx)
if result: