mirror of
https://github.com/nmap/nmap.git
synced 2026-08-28 04:25:15 +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
|
|
@ -37,15 +37,15 @@ categories = {"default", "discovery", "safe"}
|
|||
portrule = shortport.port_or_service(524, "ncp", "tcp")
|
||||
|
||||
action = function(host, port)
|
||||
local helper = ncp.Helper:new(host,port)
|
||||
local helper = ncp.Helper:new(host,port)
|
||||
|
||||
local status, resp = helper:connect()
|
||||
if ( not(status) ) then return stdnse.format_output(false, resp) end
|
||||
local status, resp = helper:connect()
|
||||
if ( not(status) ) then return stdnse.format_output(false, resp) end
|
||||
|
||||
status, resp = helper:getServerInfo()
|
||||
if ( not(status) ) then return stdnse.format_output(false, resp) end
|
||||
status, resp = helper:getServerInfo()
|
||||
if ( not(status) ) then return stdnse.format_output(false, resp) end
|
||||
|
||||
helper:close()
|
||||
helper:close()
|
||||
|
||||
return stdnse.format_output(true, resp)
|
||||
return stdnse.format_output(true, resp)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue