mirror of
https://github.com/nmap/nmap.git
synced 2026-10-21 11:22:05 +00:00
Re-indent some scripts. Whitespace-only commit
https://secwiki.org/w/Nmap/Code_Standards
This commit is contained in:
parent
64fb5b3482
commit
d36c08dcf5
137 changed files with 3977 additions and 3977 deletions
|
|
@ -32,18 +32,18 @@ categories = {"default", "safe"}
|
|||
portrule = shortport.port_or_service(554, "rtsp", "tcp", "open")
|
||||
|
||||
action = function(host, port)
|
||||
local path = stdnse.get_script_args('rtsp-methods.path') or '*'
|
||||
local helper = rtsp.Helper:new(host, port)
|
||||
local status = helper:connect()
|
||||
if ( not(status) ) then
|
||||
stdnse.print_debug(2, "ERROR: Failed to connect to RTSP server")
|
||||
return
|
||||
end
|
||||
local path = stdnse.get_script_args('rtsp-methods.path') or '*'
|
||||
local helper = rtsp.Helper:new(host, port)
|
||||
local status = helper:connect()
|
||||
if ( not(status) ) then
|
||||
stdnse.print_debug(2, "ERROR: Failed to connect to RTSP server")
|
||||
return
|
||||
end
|
||||
|
||||
local response
|
||||
status, response = helper:options(path)
|
||||
helper:close()
|
||||
if ( status ) then
|
||||
return stdnse.format_output(true, response.headers['Public'])
|
||||
end
|
||||
local response
|
||||
status, response = helper:options(path)
|
||||
helper:close()
|
||||
if ( status ) then
|
||||
return stdnse.format_output(true, response.headers['Public'])
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue