mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Improved nmap tool search
This commit is contained in:
parent
72ac5f88fc
commit
6333ff1819
3 changed files with 18 additions and 2 deletions
|
|
@ -49,6 +49,22 @@ local vs_utils = {}
|
|||
|
||||
-- **********************************************************
|
||||
|
||||
function vs_utils.is_nmap_installed()
|
||||
local path = {
|
||||
"/usr/bin/nmap",
|
||||
"/usr/local/bin/nmap",
|
||||
"/opt/homebrew/bin/nmap"
|
||||
}
|
||||
|
||||
for _,p in pairs(path) do
|
||||
if(ntop.exists(p)) then return true end
|
||||
end
|
||||
|
||||
return false
|
||||
end
|
||||
|
||||
-- **********************************************************
|
||||
|
||||
local function get_report_path(scan_type, ip)
|
||||
local base_dir = dirs.workingdir .. "/-1/vulnerability_scan"
|
||||
ntop.mkdir(base_dir)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue