diff --git a/lib/core/dump.py b/lib/core/dump.py index 91fbf265a..dab3a761a 100644 --- a/lib/core/dump.py +++ b/lib/core/dump.py @@ -32,6 +32,8 @@ from lib.core.enums import DUMP_FORMAT from lib.core.exception import sqlmapGenericException from lib.core.exception import sqlmapValueException from lib.core.replication import Replication +from lib.core.settings import HTML_DUMP_CSS_STYLE +from lib.core.settings import METADB_SUFFIX from lib.core.settings import TRIM_STDOUT_DUMP_SIZE from lib.core.settings import UNICODE_ENCODING @@ -503,7 +505,11 @@ class Dump: elif conf.dumpFormat in (DUMP_FORMAT.CSV, DUMP_FORMAT.HTML): if conf.dumpFormat == DUMP_FORMAT.HTML: + dataToDumpFile(dumpFP, "\n\n\n%s\n" % ("%s%s" % ("%s." % db if METADB_SUFFIX not in db else "", table))) + dataToDumpFile(dumpFP, HTML_DUMP_CSS_STYLE) + dataToDumpFile(dumpFP, "\n\n") dataToDumpFile(dumpFP, tableNode.toxml()) + dataToDumpFile(dumpFP, "\n") else: dataToDumpFile(dumpFP, "\n") dumpFP.close() diff --git a/lib/core/settings.py b/lib/core/settings.py index e95b27ce1..f54ae33bc 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -499,3 +499,18 @@ SUHOSHIN_MAX_VALUE_LENGTH = 512 # Regular expression used for extracting form tags FORM_SEARCH_REGEX = r"(?si)" + +# CSS style used in HTML dump format +HTML_DUMP_CSS_STYLE = """"""