lib/metasploit/credential/exporter/core.rb in metasploit-credential-0.13.10 vs lib/metasploit/credential/exporter/core.rb in metasploit-credential-0.13.11

- old
+ new

@@ -120,18 +120,24 @@ # Take a login and return a [Hash] that will be used for a CSV row. # The hashes returned by this method will contain credentials for # networked devices which may or may not successfully authenticate to those # devices. + # Note that the order of columns here must match the order in + # Metasploit::Credential::Importer::Core::VALID_LONG_CSV_HEADERS or + # the headers and row values will be mismatched and break import. # @param login [Metasploit::Credential::Login] # @return [Hash] def line_for_login(login) result = line_for_core(login.core) result.merge({ host_address: login.service.host.address, service_port: login.service.port, service_name: login.service.try(:name), - service_protocol: login.service.proto + service_protocol: login.service.proto, + status: login.status, + access_level: login.access_level, + last_attempted_at: login.last_attempted_at }) end # Returns a lookup for cores containing data from the given {Metasploit::Credential::Core} object's # component types in order that it can be used as a CSV row. \ No newline at end of file