some minor fixes

bug/bundler_fix
David Maloney 2014-06-19 15:45:24 -05:00
parent 8de2109f97
commit 4453dcdc8e
No known key found for this signature in database
GPG Key ID: DEDBA9DC3A913DB2
2 changed files with 6 additions and 4 deletions

View File

@ -84,8 +84,8 @@ class Metasploit::Framework::CredentialCollection
prepended_creds.each { |c| yield c }
if username
if password
if username.present?
if password.present?
yield Metasploit::Framework::Credential.new(public: username, private: password, realm: realm)
end
if user_as_pass
@ -103,7 +103,7 @@ class Metasploit::Framework::CredentialCollection
end
end
if user_file
if user_file.present?
File.open(user_file, 'r:binary') do |user_fd|
user_fd.each_line do |user_from_file|
user_from_file.chomp!
@ -127,7 +127,7 @@ class Metasploit::Framework::CredentialCollection
end
end
if userpass_file
if userpass_file.present?
File.open(userpass_file, 'r:binary') do |userpass_fd|
userpass_fd.each_line do |line|
user, pass = line.split(" ", 2)

View File

@ -6,6 +6,8 @@
require 'msf/core'
require 'rex/proto/ntlm/message'
require 'metasploit/framework/credential_collection'
require 'metasploit/framework/login_scanner/http'
class Metasploit3 < Msf::Auxiliary