mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
fix for one of those more complex bugs (comparison was returning None while original page and/or page template were already had already DBMS error inside)
This commit is contained in:
parent
aab14fa2d3
commit
2c23a59ba5
9 changed files with 52 additions and 32 deletions
|
|
@ -12,11 +12,11 @@ import re
|
|||
from xml.sax.handler import ContentHandler
|
||||
|
||||
from lib.core.common import checkFile
|
||||
from lib.core.common import getCurrentThreadData
|
||||
from lib.core.common import parseXmlFile
|
||||
from lib.core.common import sanitizeStr
|
||||
from lib.core.data import kb
|
||||
from lib.core.data import paths
|
||||
from lib.core.threads import getCurrentThreadData
|
||||
|
||||
class htmlHandler(ContentHandler):
|
||||
"""
|
||||
|
|
@ -59,6 +59,9 @@ def htmlParser(page):
|
|||
parseXmlFile(xmlfile, handler)
|
||||
|
||||
if handler.dbms and handler.dbms not in kb.htmlFp:
|
||||
kb.lastParserStatus = handler.dbms
|
||||
kb.htmlFp.append(handler.dbms)
|
||||
else:
|
||||
kb.lastParserStatus = None
|
||||
|
||||
return handler.dbms
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue