File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020from thirdparty import six
2121
2222# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23- VERSION = "1.10.7.153 "
23+ VERSION = "1.10.7.154 "
2424TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2525TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2626VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff line change 99
1010from xml .sax .handler import ContentHandler
1111
12+ from lib .core .common import singleTimeWarnMessage
1213from lib .core .common import urldecode
1314from lib .core .common import parseXmlFile
1415from lib .core .data import kb
@@ -86,7 +87,12 @@ def htmlParser(page):
8687 handler ._markAsErrorPage ()
8788 return retVal
8889
89- parseXmlFile (xmlfile , handler )
90+ try :
91+ parseXmlFile (xmlfile , handler )
92+ except Exception :
93+ # DBMS fingerprinting from the error page is best-effort - a broken or third-party-patched
94+ # xml.sax (e.g. a modified stdlib on some distros) must not abort the whole scan (see #6086)
95+ singleTimeWarnMessage ("unable to parse the response page for DBMS-specific error messages" )
9096
9197 if handler .dbms and handler .dbms not in kb .htmlFp :
9298 kb .lastParserStatus = handler .dbms
You can’t perform that action at this time.
0 commit comments