mirror of
https://github.com/nmap/nmap.git
synced 2026-01-08 07:29:03 +00:00
Re-indent some scripts. Whitespace-only commit
https://secwiki.org/w/Nmap/Code_Standards
This commit is contained in:
@@ -38,21 +38,21 @@ dependencies = {"smb-brute"}
|
||||
|
||||
|
||||
hostrule = function(host)
|
||||
return smb.get_port(host) ~= nil
|
||||
return smb.get_port(host) ~= nil
|
||||
end
|
||||
|
||||
action = function(host)
|
||||
local states = {}
|
||||
repeat
|
||||
local status, result = smb.start_ex(host, true, true)
|
||||
if(status) then
|
||||
table.insert(states, result) -- Keep the result so it doesn't get garbage cleaned
|
||||
stdnse.print_debug(1, "smb-flood: Connection successfully opened")
|
||||
stdnse.sleep(.1)
|
||||
else
|
||||
stdnse.print_debug(1, "smb-flood: Connection failed: %s", result)
|
||||
stdnse.sleep(1)
|
||||
end
|
||||
until false
|
||||
local states = {}
|
||||
repeat
|
||||
local status, result = smb.start_ex(host, true, true)
|
||||
if(status) then
|
||||
table.insert(states, result) -- Keep the result so it doesn't get garbage cleaned
|
||||
stdnse.print_debug(1, "smb-flood: Connection successfully opened")
|
||||
stdnse.sleep(.1)
|
||||
else
|
||||
stdnse.print_debug(1, "smb-flood: Connection failed: %s", result)
|
||||
stdnse.sleep(1)
|
||||
end
|
||||
until false
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user