mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-07 09:13:43 +03:00
Update for an Issue #254
This commit is contained in:
parent
bdd819d7f2
commit
3b961c2550
|
@ -326,9 +326,7 @@ class Dump:
|
|||
def dbTableValues(self, tableValues):
|
||||
replication = None
|
||||
rtable = None
|
||||
documentNode = None
|
||||
tableNode = None
|
||||
rowNode = None
|
||||
documentNode, tableNode, bodyNode, headNode, rowNode = (0,) * 5
|
||||
dumpFP = None
|
||||
|
||||
if tableValues is None:
|
||||
|
@ -411,8 +409,12 @@ class Dump:
|
|||
self._write(separator)
|
||||
|
||||
if conf.dumpFormat == DUMP_FORMAT.HTML:
|
||||
headNode = documentNode.createElement("thead")
|
||||
rowNode = documentNode.createElement("tr")
|
||||
tableNode.appendChild(rowNode)
|
||||
tableNode.appendChild(headNode)
|
||||
headNode.appendChild(rowNode)
|
||||
bodyNode = documentNode.createElement("tbody")
|
||||
tableNode.appendChild(bodyNode)
|
||||
|
||||
for column in columns:
|
||||
if column != "__infos__":
|
||||
|
@ -455,7 +457,7 @@ class Dump:
|
|||
|
||||
if conf.dumpFormat == DUMP_FORMAT.HTML:
|
||||
rowNode = documentNode.createElement("tr")
|
||||
tableNode.appendChild(rowNode)
|
||||
bodyNode.appendChild(rowNode)
|
||||
|
||||
for column in columns:
|
||||
if column != "__infos__":
|
||||
|
|
|
@ -503,14 +503,21 @@ FORM_SEARCH_REGEX = r"(?si)<form(?!.+<form).+?</form>"
|
|||
# CSS style used in HTML dump format
|
||||
HTML_DUMP_CSS_STYLE = """<style>
|
||||
table{
|
||||
margin:10;
|
||||
background-color:#ffffff;
|
||||
font-family:verdana;
|
||||
font-size:12px;
|
||||
align:center;
|
||||
margin:10;
|
||||
background-color:#FFFFFF;
|
||||
font-family:verdana;
|
||||
font-size:12px;
|
||||
align:center;
|
||||
}
|
||||
thead{
|
||||
font-weight:bold;
|
||||
background-color:#4F81BD;
|
||||
color:#FFFFFF;
|
||||
}
|
||||
tr:nth-child(even) {
|
||||
background-color: #D3DFEE
|
||||
}
|
||||
td{
|
||||
font-family:verdana;
|
||||
font-size:10px;
|
||||
font-size:10px;
|
||||
}
|
||||
</style>"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user