Land #4313, @wchen-r7's fix for #4304

bug/bundler_fix
Jon Hart 2014-12-05 15:08:35 -08:00
commit 39790a95a0
No known key found for this signature in database
GPG Key ID: 2FA9F0A3AFA8E9D3
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ class Metasploit::Framework::CredentialCollection
File.open(user_file, 'r:binary') do |user_fd|
user_fd.each_line do |user_from_file|
user_from_file.chomp!
if password
if password.present?
yield Metasploit::Framework::Credential.new(public: user_from_file, private: password, realm: realm, private_type: private_type(password) )
end
if user_as_pass