From d1a6a775f11bad45f986cbbdf8f493817c4fe247 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 11 Mar 2014 21:00:15 +0100 Subject: [PATCH] Patch for an Issue #636 --- lib/techniques/blind/inference.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/techniques/blind/inference.py b/lib/techniques/blind/inference.py index 68741be22..1950d78a0 100644 --- a/lib/techniques/blind/inference.py +++ b/lib/techniques/blind/inference.py @@ -5,6 +5,7 @@ Copyright (c) 2006-2014 sqlmap developers (http://sqlmap.org/) See the file 'doc/COPYING' for copying permission """ +import re import threading import time @@ -254,7 +255,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None position = (len(charTbl) >> 1) posValue = charTbl[position] - if CHAR_INFERENCE_MARK not in payload: + if not re.search(r"%s\b" % CHAR_INFERENCE_MARK, payload): forgedPayload = safeStringFormat(payload, (expressionUnescaped, idx, posValue)) else: # e.g.: ... > '%c' -> ... > ORD(..)