mirror of
https://github.com/nmap/nmap.git
synced 2025-12-25 08:59:01 +00:00
Fixes #195: Fixes XML output overwrite when reporting multiple vulnerabilities from the same script. Patch submitted by jgajek
This commit is contained in:
@@ -2268,7 +2268,8 @@ Report = {
|
||||
for i, vuln_table in ipairs(self.entries.not_vulns) do
|
||||
local vuln_out, out_t = format_vuln_base(vuln_table, SHOW_ALL)
|
||||
if type(out_t) == "table" then
|
||||
local ID = vuln_table.IDS.CVE or vuln_table.IDS[next(vuln_table.IDS)] output_t2[ID] = out_t
|
||||
local ID = vuln_table.IDS.CVE or vuln_table.IDS[next(vuln_table.IDS)]
|
||||
output_t2[ID] = out_t
|
||||
end
|
||||
if vuln_out then
|
||||
output_table.report = concat(vuln_out, "\n")
|
||||
|
||||
Reference in New Issue
Block a user