Skip to content

Commit

Permalink
updating to not modify NVT
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoOMaia authored Jan 8, 2025
1 parent d06163c commit a5fc175
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dojo/tools/openvas/xml_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit a5fc175

Please sign in to comment.