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

Skip to content

Commit d1a6a77

Browse files
committed
Patch for an Issue #636
1 parent fca57da commit d1a6a77

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/techniques/blind/inference.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
See the file 'doc/COPYING' for copying permission
66
"""
77

8+
import re
89
import threading
910
import time
1011

@@ -254,7 +255,7 @@ def getChar(idx, charTbl=None, continuousOrder=True, expand=charsetType is None,
254255
position = (len(charTbl) >> 1)
255256
posValue = charTbl[position]
256257

257-
if CHAR_INFERENCE_MARK not in payload:
258+
if not re.search(r"%s\b" % CHAR_INFERENCE_MARK, payload):
258259
forgedPayload = safeStringFormat(payload, (expressionUnescaped, idx, posValue))
259260
else:
260261
# e.g.: ... > '%c' -> ... > ORD(..)

0 commit comments

Comments
 (0)