Sha256: 2469e1896ca32a53eb2cf507d76690dee0622721b870842c0963f9ec8f9387f7

Contents?: true

Size: 1.18 KB

Versions: 26

Compression:

Stored size: 1.18 KB

Contents

module Metasploit
  module Model
    module Module
      # Defines constants for {Metasploit::Model::Module} types as used in {Metasploit::Model::Module::Ancestor}.
      module Type
        #
        # CONSTANTS
        #

        # Symbolizes any module type is allowed.
        ANY = '_any_'
        # Auxiliary modules
        AUX = 'auxiliary'
        # Encoder modules
        ENCODER = 'encoder'
        # Exploit modules
        EXPLOIT = 'exploit'
        # No operation modules
        NOP = 'nop'
        # Payload modules
        PAYLOAD = 'payload'
        # Post-exploitation modules
        POST = 'post'

        # Array<String> of all supported module types (except {ANY} since that's a symbolic type)
        ALL = [
            AUX,
            ENCODER,
            EXPLOIT,
            NOP,
            PAYLOAD,
            POST
        ]

        # Array<String> of all module types that aren't {PAYLOAD} because {PAYLOAD}
        # {Metasploit::Model::Module::Ancestor#contents} define `Modules` instead of `Classes` and so need to be loaded
        # differently.
        NON_PAYLOAD = ALL.reject { |module_type|
          module_type == PAYLOAD
        }
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
metasploit-model-0.27.3 lib/metasploit/model/module/type.rb
metasploit-model-0.27.3-java lib/metasploit/model/module/type.rb
metasploit-model-0.27.2 lib/metasploit/model/module/type.rb
metasploit-model-0.27.2-java lib/metasploit/model/module/type.rb
metasploit-model-0.27.1 lib/metasploit/model/module/type.rb
metasploit-model-0.27.1-java lib/metasploit/model/module/type.rb
metasploit-model-0.27.0 lib/metasploit/model/module/type.rb
metasploit-model-0.27.0-java lib/metasploit/model/module/type.rb
metasploit-model-0.27.0.pre.dep.pre.railties lib/metasploit/model/module/type.rb
metasploit-model-0.26.1-java lib/metasploit/model/module/type.rb
metasploit-model-0.26.1 lib/metasploit/model/module/type.rb
metasploit-model-0.25.7 lib/metasploit/model/module/type.rb
metasploit-model-0.25.7-java lib/metasploit/model/module/type.rb
metasploit-model-0.25.6 lib/metasploit/model/module/type.rb
metasploit-model-0.25.6-java lib/metasploit/model/module/type.rb
metasploit-model-0.25.3 lib/metasploit/model/module/type.rb
metasploit-model-0.25.3-java lib/metasploit/model/module/type.rb
metasploit-model-0.25.2 lib/metasploit/model/module/type.rb
metasploit-model-0.25.2-java lib/metasploit/model/module/type.rb
metasploit-model-0.25.1 lib/metasploit/model/module/type.rb