[VS] Add UDP Ports report and fix duplicated hosts in open ports page. (#7903) (#7900)

This commit is contained in:
Nicolo Maio 2023-10-13 02:51:10 +02:00
parent 359f9035b7
commit e3fb29de79
3 changed files with 50 additions and 5 deletions

View file

@ -219,7 +219,7 @@ local function format_result(result)
end
if (rsp[#rsp].cve ~= nil) then
table.sort(rsp[#rsp].cve, function (k1, k2) return split(k1,"|")[2] < split(k2,"|")[2] end)
table.sort(rsp[#rsp].cve, function (k1, k2) return tonumber(split(k1,"|")[2]) > tonumber(split(k2,"|")[2]) end)
end
end