Skip to content

Commit 39790a9

Browse files
committed
2 parents da92e47 + 9cc04e5 commit 39790a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/metasploit/framework/credential_collection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def each
107107
File.open(user_file, 'r:binary') do |user_fd|
108108
user_fd.each_line do |user_from_file|
109109
user_from_file.chomp!
110-
if password
110+
if password.present?
111111
yield Metasploit::Framework::Credential.new(public: user_from_file, private: password, realm: realm, private_type: private_type(password) )
112112
end
113113
if user_as_pass

0 commit comments

Comments
 (0)