Sha256: ecb28c993060c97063ec79f286308714dea87f9b990a0519350108d91c8b1da4

Contents?: true

Size: 616 Bytes

Versions: 5

Compression:

Stored size: 616 Bytes

Contents

class Mdm::Listener < ActiveRecord::Base
  #
  # Relations
  #

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

  belongs_to :workspace,
             class_name: 'Mdm::Workspace',
             inverse_of: :listeners

  #
  # Serializations
  #

  serialize :options, MetasploitDataModels::Base64Serializer.new

  #
  # Validations
  #

  validates :address, :ip_format => true, :presence => true
  validates :port, :presence => true, :numericality => { :only_integer => true }, :inclusion => {:in => 1..65535}


  ActiveSupport.run_load_hooks(:mdm_listener, self)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
metasploit_data_models-0.17.2-java app/models/mdm/listener.rb
metasploit_data_models-0.17.2 app/models/mdm/listener.rb
metasploit_data_models-0.17.2.pre.metasploit.pre.data.pre.models.pre.search app/models/mdm/listener.rb
metasploit_data_models-0.17.1-java app/models/mdm/listener.rb
metasploit_data_models-0.17.1 app/models/mdm/listener.rb