mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +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:
parent
5edca6f97b
commit
16d50c48da
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue