Minor patch for --parse-errors logic

This commit is contained in:
Miroslav Štampar 2026-06-04 21:06:07 +02:00
parent b3f3405775
commit 8d91c65bdb
3 changed files with 4 additions and 6 deletions

View file

@ -2884,9 +2884,6 @@ def extractErrorMessage(page):
retVal = None
if isinstance(page, six.string_types):
if wasLastResponseDBMSError():
page = re.sub(r"<[^>]+>", "", page)
for regex in ERROR_PARSING_REGEXES:
match = re.search(regex, page, re.IGNORECASE)
@ -2897,6 +2894,7 @@ def extractErrorMessage(page):
break
if not retVal and wasLastResponseDBMSError():
page = re.sub(r"<[^>]+>", "", page)
match = re.search(r"[^\n]*SQL[^\n:]*:[^\n]*", page, re.IGNORECASE)
if match:

View file

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