diff --git a/lib/core/settings.py b/lib/core/settings.py index d53e6fb14..500f2f14d 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import OS from thirdparty import six # sqlmap version (...) -VERSION = "1.10.11.86" +VERSION = "1.10.11.87" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" 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) diff --git a/lib/request/inject.py b/lib/request/inject.py index 81a782f07..2be4fcc9f 100644 --- a/lib/request/inject.py +++ b/lib/request/inject.py @@ -677,6 +677,8 @@ def getValue(expression, blind=True, union=True, error=True, time=True, fromUser count = 0 if query and not re.search(r"COUNT.*FROM.*\(.*DISTINCT", query, re.I): + if fromUser and re.search(r"(?i)\bDISTINCT\b", query): + singleTimeWarnMessage("DISTINCT is not supported in provided SQL queries (results can contain duplicates)") query = query.replace("DISTINCT ", "") if not conf.forceDns: