mirror of
https://github.com/nmap/nmap.git
synced 2026-10-21 03:11:48 +00:00
Make hbase-master-info.nse be silent if it doesn't learn anything.
This commit is contained in:
parent
8ac8aed20d
commit
e11e1e9f22
1 changed files with 4 additions and 2 deletions
|
|
@ -147,8 +147,10 @@ action = function( host, port )
|
|||
end
|
||||
nmap.set_port_version(host, port, "hardmatched")
|
||||
local tasktrackers = get_tasktrackers (host, port)
|
||||
table.insert(result, "Tasktrackers: ")
|
||||
table.insert(result, tasktrackers)
|
||||
if next(tasktrackers) then
|
||||
table.insert(result, "Tasktrackers: ")
|
||||
table.insert(result, tasktrackers)
|
||||
end
|
||||
if stdnse.get_script_args('hadoop-jobtracker-info.userinfo') then
|
||||
local userhistory = get_userhistory (host, port)
|
||||
table.insert(result, "Userhistory: ")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue