Skip to content

Commit

Permalink
Update lib/metasploit/framework/credential_collection.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
cgranleese-r7 authored Feb 10, 2025
1 parent ab0aef7 commit 9e62b98
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/metasploit/framework/credential_collection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,14 @@ def each_unfiltered(&block)
yield Metasploit::Framework::Credential.new(public: '', private: '', realm: realm, private_type: :password)
end

if ignore_private
if ignore_public
yield Metasploit::Framework::Credential.new(public: nil, private: nil, realm: realm)
else
yield Metasploit::Framework::Credential.new(public: username, private: nil, realm: realm)
end
end

if password_spray
each_unfiltered_password_first(&block)
else
Expand Down

0 comments on commit 9e62b98

Please sign in to comment.