1
0
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:
dmiller
2014-01-31 13:02:29 +00:00
parent 64fb5b3482
commit d36c08dcf5
137 changed files with 3977 additions and 3977 deletions

View File

@@ -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