mirror of
https://github.com/nmap/nmap.git
synced 2026-09-01 07:52:57 +00:00
Update upnp-info: structured output, correct targets added, etc.
This commit is contained in:
parent
f43878f0f5
commit
74b2b6fc05
3 changed files with 121 additions and 76 deletions
|
|
@ -45,7 +45,7 @@ action = function()
|
|||
local status, result = helper:queryServices()
|
||||
|
||||
if ( status ) then
|
||||
return stdnse.format_output(true, result)
|
||||
return result
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -50,6 +50,6 @@ action = function(host, port)
|
|||
|
||||
if ( status ) then
|
||||
nmap.set_port_state(host, port, "open")
|
||||
return stdnse.format_output(true, result)
|
||||
return result
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue