mirror of
https://github.com/nmap/nmap.git
synced 2026-02-03 20:16:33 +00:00
Re-indent some scripts. Whitespace-only commit
https://secwiki.org/w/Nmap/Code_Standards
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user