mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Fix CVE doc URL.
This commit is contained in:
parent
41b138f5f7
commit
bb6bdf2f7b
6 changed files with 34 additions and 6 deletions
|
|
@ -461,11 +461,12 @@ function vs_utils.cleanup_nmap_result(scan_result, scan_type)
|
|||
|
||||
if(string.sub(l, 1, 2) == " [") then
|
||||
local c = string.split(string.sub(l,3), "]")
|
||||
|
||||
|
||||
local url = cve_utils.getDocURL(c[1], scan_type)
|
||||
if(scan_type == "cve") then
|
||||
l = '[<A HREF="https://nvd.nist.gov/vuln/detail/'..c[1]..'">'..c[1]..'</A>]'..c[2]
|
||||
l = '[<A HREF="'..url..'">'..c[1]..'</A>]'..c[2]
|
||||
elseif(scan_type == "openvas") then
|
||||
l = '[<A HREF="https://vulners.com/openvas/OPENVAS:'..c[1]..'">'..c[1]..'</A>]'..c[2]
|
||||
l = '[<A HREF="'..url..'">'..c[1]..'</A>]'..c[2]
|
||||
end
|
||||
|
||||
table.insert(cve, c[1])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue