From fc755f7a7a7462d00c66841a5ebb7af7a857b42c Mon Sep 17 00:00:00 2001 From: Tod Beardsley Date: Sat, 9 Oct 2010 19:03:49 +0000 Subject: [PATCH] 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 --- modules/auxiliary/scanner/ftp/ftp_login.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/auxiliary/scanner/ftp/ftp_login.rb b/modules/auxiliary/scanner/ftp/ftp_login.rb index a1f75a0721..6e419e3656 100644 --- a/modules/auxiliary/scanner/ftp/ftp_login.rb +++ b/modules/auxiliary/scanner/ftp/ftp_login.rb @@ -55,8 +55,9 @@ class Metasploit3 < Msf::Auxiliary if check_banner each_user_pass { |user, pass| next if user.nil? || user.empty? - do_login(user,pass) + ret = do_login(user,pass) ftp_quit if datastore['SINGLE_SESSION'] + return ret } check_anonymous else