Minor update

This commit is contained in:
Miroslav Stampar
2026-01-28 18:56:12 +01:00
parent cd6e2f1c8a
commit 0ce9d4aeb7
3 changed files with 11 additions and 3 deletions

View File

@@ -1477,10 +1477,18 @@ def cleanQuery(query):
"""
retVal = query
queryLower = query.lower()
for sqlStatements in SQL_STATEMENTS.values():
for sqlStatement in sqlStatements:
candidate = sqlStatement.replace("(", "").replace(")", "").strip()
# OPTIMIZATION: Skip expensive regex compilation/search if the keyword
# isn't even present in the string. This makes the function O(K) instead of O(N*K)
# for the expensive regex part (where K is num keywords).
if not candidate or candidate.lower() not in queryLower:
continue
queryMatch = re.search(r"(?i)\b(%s)\b" % candidate, query)
if queryMatch and "sys_exec" not in query:

View File

@@ -19,7 +19,7 @@ from lib.core.enums import OS
from thirdparty import six
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.10.1.68"
VERSION = "1.10.1.69"
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)