mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Vulners.nse: respect mincvss unless cvss is missing or is 0 for exploits
This commit is contained in:
parent
9a1ba979b0
commit
d66644be63
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue