Skip to content

Commit 99ea44c

Browse files
committed
Fixes #5339
1 parent abc0929 commit 99ea44c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.7.2.15"
23+
VERSION = "1.7.2.16"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/techniques/blind/inference.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
from lib.core.common import hashDBRetrieve
2727
from lib.core.common import hashDBWrite
2828
from lib.core.common import incrementCounter
29+
from lib.core.common import isDigit
2930
from lib.core.common import isListLike
3031
from lib.core.common import safeStringFormat
3132
from lib.core.common import singleTimeWarnMessage
@@ -61,6 +62,7 @@
6162
from lib.utils.progress import ProgressBar
6263
from lib.utils.safe2bin import safecharencode
6364
from lib.utils.xrange import xrange
65+
from thirdparty import six
6466

6567
def bisection(payload, expression, length=None, charsetType=None, firstChar=None, lastChar=None, dump=False):
6668
"""
@@ -163,7 +165,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
163165
else:
164166
expressionUnescaped = unescaper.escape(expression)
165167

166-
if hasattr(length, "isdigit") and length.isdigit() or isinstance(length, int):
168+
if isinstance(length, six.string_types) and isDigit(length) or isinstance(length, int):
167169
length = int(length)
168170
else:
169171
length = None

0 commit comments

Comments
 (0)