Fixes a bug where the return was getting ignored by each_user_pass for FTP. As a result, all usernames would get tried, instead of retiring a username once a good password was found.
git-svn-id: file:///home/svn/framework3/trunk@10622 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
b99be2dae6
commit
fc755f7a7a
|
@ -55,8 +55,9 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
if check_banner
|
if check_banner
|
||||||
each_user_pass { |user, pass|
|
each_user_pass { |user, pass|
|
||||||
next if user.nil? || user.empty?
|
next if user.nil? || user.empty?
|
||||||
do_login(user,pass)
|
ret = do_login(user,pass)
|
||||||
ftp_quit if datastore['SINGLE_SESSION']
|
ftp_quit if datastore['SINGLE_SESSION']
|
||||||
|
return ret
|
||||||
}
|
}
|
||||||
check_anonymous
|
check_anonymous
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue