mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Code cleanup
This commit is contained in:
parent
9b3af49fbd
commit
5ea16cdf5b
3 changed files with 11 additions and 11 deletions
|
|
@ -91,7 +91,7 @@ function vs_utils.cleanup_nmap_result(scan_result, scan_type)
|
|||
scan_result = scan_result:gsub("|", "")
|
||||
scan_result = scan_result:gsub("^_", "")
|
||||
scan_result = scan_result:gsub("_$", "")
|
||||
|
||||
|
||||
scan_result = lines(scan_result)
|
||||
|
||||
for i=1,4 do
|
||||
|
|
@ -119,9 +119,9 @@ function vs_utils.cleanup_nmap_result(scan_result, scan_type)
|
|||
local c = string.split(string.sub(l,3), "]")
|
||||
|
||||
if(scan_type == "cve") then
|
||||
l = '[<A HREF="https://vulners.com/openvas/OPENVAS:'..c[1]..'">'..c[1]..'</A>]'..c[2]
|
||||
elseif(scan_type == "openvas") then
|
||||
l = '[<A HREF="https://nvd.nist.gov/vuln/detail/'..c[1]..'">'..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]
|
||||
end
|
||||
|
||||
table.insert(cve, c[1])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue