mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Vulners.nse: respect mincvss unless cvss is missing or is 0 for exploits
This commit is contained in:
@@ -99,7 +99,7 @@ function make_links(vulns)
|
||||
}
|
||||
|
||||
-- NOTE[gmedian]: exploits seem to have cvss == 0, so print them anyway
|
||||
if v.is_exploit or (v.cvss and mincvss <= v.cvss) then
|
||||
if not v.cvss or (v.cvss == 0 and v.is_exploit) or mincvss <= v.cvss then
|
||||
setmetatable(v, cve_meta)
|
||||
output[#output+1] = v
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user