mirror of
https://github.com/nmap/nmap.git
synced 2025-12-24 08:29:04 +00:00
Squashed commit of the following:
commit fb1fa9373592e81ee004b99cf813e07bf253fbe1 Author: Patrik Karlsson <patrik@cqure.net> Date: Sun Dec 16 11:49:36 2012 -0500 Fix bug where brute library failed to report error on invalid iterators
This commit is contained in:
@@ -651,6 +651,13 @@ Engine =
|
||||
local usernames = self.usernames
|
||||
local passwords = self.passwords
|
||||
|
||||
if ( "function" ~= type(usernames) ) then
|
||||
return false, "Invalid usernames iterator"
|
||||
end
|
||||
if ( "function" ~= type(passwords) ) then
|
||||
return false, "Invalid passwords iterator"
|
||||
end
|
||||
|
||||
local mode = self.options.mode or stdnse.get_script_args("brute.mode")
|
||||
|
||||
-- if no mode was given, but a credfile is present, assume creds mode
|
||||
|
||||
Reference in New Issue
Block a user