mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-25 00:34:28 +03:00
Fixes #4116
This commit is contained in:
parent
f8b2cb5a0a
commit
c3fe9a0d47
|
@ -4809,6 +4809,8 @@ def extractExpectedValue(value, expected):
|
||||||
True
|
True
|
||||||
>>> extractExpectedValue('1', EXPECTED.INT)
|
>>> extractExpectedValue('1', EXPECTED.INT)
|
||||||
1
|
1
|
||||||
|
>>> extractExpectedValue('7\\xb9645', EXPECTED.INT) is None
|
||||||
|
True
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if expected:
|
if expected:
|
||||||
|
@ -4832,8 +4834,10 @@ def extractExpectedValue(value, expected):
|
||||||
else:
|
else:
|
||||||
value = None
|
value = None
|
||||||
elif expected == EXPECTED.INT:
|
elif expected == EXPECTED.INT:
|
||||||
if isinstance(value, six.string_types):
|
try:
|
||||||
value = int(value) if value.isdigit() else None
|
value = int(value)
|
||||||
|
except:
|
||||||
|
value = None
|
||||||
|
|
||||||
return value
|
return value
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ from lib.core.enums import OS
|
||||||
from thirdparty.six import unichr as _unichr
|
from thirdparty.six import unichr as _unichr
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||||
VERSION = "1.4.2.34"
|
VERSION = "1.4.2.35"
|
||||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user