1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-24 00:19:01 +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

@@ -27,20 +27,20 @@ categories = {"discovery", "safe"}
portrule = shortport.port_or_service(873, "rsync", "tcp")
action = function(host, port)
local helper = rsync.Helper:new(host, port, { module = "" })
if ( not(helper) ) then
return "\n ERROR: Failed to create rsync.Helper"
end
local helper = rsync.Helper:new(host, port, { module = "" })
if ( not(helper) ) then
return "\n ERROR: Failed to create rsync.Helper"
end
local status, err = helper:connect()
if ( not(status) ) then
return "\n ERROR: Failed to connect to rsync server"
end
local status, err = helper:connect()
if ( not(status) ) then
return "\n ERROR: Failed to connect to rsync server"
end
local modules = {}
status, modules = helper:listModules()
if ( not(status) ) then
return "\n ERROR: Failed to retrieve a list of modules"
end
return stdnse.format_output(true, modules)
local modules = {}
status, modules = helper:listModules()
if ( not(status) ) then
return "\n ERROR: Failed to retrieve a list of modules"
end
return stdnse.format_output(true, modules)
end