From a5fc1750bee0a508845f8b960ef003c556ef2aaa Mon Sep 17 00:00:00 2001 From: Leonardo de Oliveira Maia <101437950+LeoOMaia@users.noreply.github.com> Date: Wed, 8 Jan 2025 10:47:16 -0300 Subject: [PATCH] updating to not modify NVT --- dojo/tools/openvas/xml_parser.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dojo/tools/openvas/xml_parser.py b/dojo/tools/openvas/xml_parser.py index d5495a2035..f5a01ce5db 100644 --- a/dojo/tools/openvas/xml_parser.py +++ b/dojo/tools/openvas/xml_parser.py @@ -28,9 +28,8 @@ def get_findings(self, filename, test): title = title + "_" + finding.text description.append(f"**Port**: {finding.text}") if finding.tag == "nvt": + description.append(f"**NVT**: {finding.text}") script_id = finding.get("oid") or finding.text - text = f"{script_id}\n{finding.text}" if finding.get("oid") and finding.text else script_id - description.append(f"**NVT**: {text}") if finding.tag == "severity": severity = self.convert_cvss_score(finding.text) description.append(f"**Severity**: {finding.text}")