Sha256: 8530408616357dd8fe8685fecc4375995adca0a0739af5fe30c25de545b88d83

Contents?: true

Size: 1.35 KB

Versions: 42

Compression:

Stored size: 1.35 KB

Contents

# Details supplied by Nexpose about a {Mdm::Host host}.
class Mdm::HostDetail < ActiveRecord::Base
  #
  # Associations
  #

  # Host that this detail is about.
  belongs_to :host,
             class_name: 'Mdm::Host',
             counter_cache: :host_detail_count,
             inverse_of: :host_details

  #
  # Attributes
  #

  # @!attribute host_id
  #   The foreign key used to look up {#host}.
  #
  #   @return [Integer]

  # @!attribute nx_console_id
  #   The ID of the Nexpose console.
  #
  #   @return [Integer]

  # @!attribute nx_device_id
  #   The ID of the Device in Nexpose.
  #
  #   @return [Integer]

  # @!attribute nx_risk_score
  #   Risk score assigned by Nexpose.  Useful to ordering hosts to determine which host to target first in metasploit.
  #
  #   @return [Float]

  # @!attribute nx_scan_template
  #   The template used by Nexpose to perform the scan on the {#nx_site_name site} on {#host}.
  #
  #   @return [String]

  # @!attribute nx_site_importance
  #   The importance of scanning the {#nx_site_name site} running on {#host} according to Nexpose.
  #
  #   @return [String]

  # @!attribute nx_site_name
  #   Name of site running on {#host} according to Nexpose.
  #
  #   @return [String]

  # @!attribute src
  #    @return [String]

  #
  # Validations
  #

  validates :host_id, :presence => true

  Metasploit::Concern.run(self)
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
metasploit_data_models-3.0.10 app/models/mdm/host_detail.rb
metasploit_data_models-3.0.9 app/models/mdm/host_detail.rb
metasploit_data_models-3.0.8 app/models/mdm/host_detail.rb
metasploit_data_models-3.0.7 app/models/mdm/host_detail.rb
metasploit_data_models-3.0.6 app/models/mdm/host_detail.rb
metasploit_data_models-3.0.5 app/models/mdm/host_detail.rb
metasploit_data_models-2.0.17 app/models/mdm/host_detail.rb
metasploit_data_models-3.0.4 app/models/mdm/host_detail.rb
metasploit_data_models-3.0.2 app/models/mdm/host_detail.rb
metasploit_data_models-3.0.1 app/models/mdm/host_detail.rb
metasploit_data_models-3.0.0 app/models/mdm/host_detail.rb
metasploit_data_models-2.0.16 app/models/mdm/host_detail.rb
metasploit_data_models-2.0.15 app/models/mdm/host_detail.rb
metasploit_data_models-2.0.14 app/models/mdm/host_detail.rb
metasploit_data_models-2.0.13 app/models/mdm/host_detail.rb
metasploit_data_models-2.0.12 app/models/mdm/host_detail.rb
metasploit_data_models-2.0.11 app/models/mdm/host_detail.rb
metasploit_data_models-2.0.10 app/models/mdm/host_detail.rb
metasploit_data_models-2.0.9 app/models/mdm/host_detail.rb
metasploit_data_models-2.0.8 app/models/mdm/host_detail.rb