Class: Metasploit::Credential::Origin::Import

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/metasploit/credential/origin/import.rb

Overview

An origin for core credentials that were imported by a #task from a file.

Instance Attribute Summary collapse

Instance Attribute Details

#coresActiveRecord::Relation<Metasploit::Credential::Core>

Core credentials imported from #filename.

Returns:



11
12
13
14
# File 'app/models/metasploit/credential/origin/import.rb', line 11

has_many :cores,
as: :origin,
class_name: 'Metasploit::Credential::Core',
dependent: :destroy

#created_atDateTime

When the credentials were imported.

Returns:

  • (DateTime)


# File 'app/models/metasploit/credential/origin/import.rb', line 28

#filenameString

The ‘File.basename` of the file from which the core credentials were imported. Because only a basename is available, a #filename may be used more than once for the same #task.

Returns:

  • (String)


# File 'app/models/metasploit/credential/origin/import.rb', line 33

#taskMdm::Task

The task that did the import.

Returns:

  • (Mdm::Task)


20
21
22
# File 'app/models/metasploit/credential/origin/import.rb', line 20

belongs_to :task,
class_name: 'Mdm::Task',
inverse_of: :import_credential_origins

#updated_atDateTime

When this origin was last updated.

Returns:

  • (DateTime)


# File 'app/models/metasploit/credential/origin/import.rb', line 39