Minor update
Some checks failed
/ build (macos-latest, 3.8) (push) Has been cancelled
/ build (ubuntu-latest, pypy-2.7) (push) Has been cancelled
/ build (windows-latest, 3.14) (push) Has been cancelled

This commit is contained in:
Miroslav Štampar 2026-07-20 17:39:52 +02:00
parent 2626e50190
commit 37771f0d25
2 changed files with 8 additions and 2 deletions

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.7.153"
VERSION = "1.10.7.154"
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)

View file

@ -9,6 +9,7 @@ import re
from xml.sax.handler import ContentHandler
from lib.core.common import singleTimeWarnMessage
from lib.core.common import urldecode
from lib.core.common import parseXmlFile
from lib.core.data import kb
@ -86,7 +87,12 @@ def htmlParser(page):
handler._markAsErrorPage()
return retVal
parseXmlFile(xmlfile, handler)
try:
parseXmlFile(xmlfile, handler)
except Exception:
# DBMS fingerprinting from the error page is best-effort - a broken or third-party-patched
# xml.sax (e.g. a modified stdlib on some distros) must not abort the whole scan (see #6086)
singleTimeWarnMessage("unable to parse the response page for DBMS-specific error messages")
if handler.dbms and handler.dbms not in kb.htmlFp:
kb.lastParserStatus = handler.dbms