This commit is contained in:
Miroslav Stampar
2026-01-12 20:22:29 +01:00
parent 1da33b9901
commit 04bf68f4ea
3 changed files with 8 additions and 7 deletions

View File

@@ -19,7 +19,7 @@ from lib.core.enums import OS
from thirdparty import six
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.10.1.27"
VERSION = "1.10.1.28"
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

@@ -44,7 +44,7 @@ def parseXmlNode(node):
for element in node.findall("boundary"):
boundary = AttribDict()
for child in element:
for child in element.findall("*"):
if child.text:
values = cleanupVals(child.text, child.tag)
boundary[child.tag] = values
@@ -56,18 +56,19 @@ def parseXmlNode(node):
for element in node.findall("test"):
test = AttribDict()
for child in element:
for child in element.findall("*"):
if child.text and child.text.strip():
values = cleanupVals(child.text, child.tag)
test[child.tag] = values
else:
if len(child.findall("*")) == 0:
progeny = child.findall("*")
if len(progeny) == 0:
test[child.tag] = None
continue
else:
test[child.tag] = AttribDict()
for gchild in child:
for gchild in progeny:
if gchild.tag in test[child.tag]:
prevtext = test[child.tag][gchild.tag]
test[child.tag][gchild.tag] = [prevtext, gchild.text]