lib/metasploit/credential/exporter/pwdump.rb in metasploit-credential-4.0.1 vs lib/metasploit/credential/exporter/pwdump.rb in metasploit-credential-4.0.2
- old
+ new
@@ -152,10 +152,10 @@
# Returns the count of services in the group creds contained in +hash_array+
# @param hash_array [Array<Metasploit::Credential::Login>]
# @return [Fixnum]
def service_count_for_hashes(hash_array)
- hash_array.collect(&:service).collect(&:id).distinct.size
+ hash_array.collect(&:service).collect(&:id).uniq.size
end
private
# Returns a hash containing the public and private or the canonical blank string