lib/metasploit/credential/exporter/pwdump.rb in metasploit-credential-3.0.4 vs lib/metasploit/credential/exporter/pwdump.rb in metasploit-credential-4.0.0

- 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).uniq.size + hash_array.collect(&:service).collect(&:id).distinct.size end private # Returns a hash containing the public and private or the canonical blank string