Module: Metasploit::Model::Module::Type

Defined in:
lib/metasploit/model/module/type.rb

Overview

Defines constants for Metasploit::Model::Module types as used in Ancestor.

Constant Summary collapse

ANY =

Symbolizes any module type is allowed.

'_any_'
AUX =

Auxiliary modules

'auxiliary'
ENCODER =

Encoder modules

'encoder'
EXPLOIT =

Exploit modules

'exploit'
NOP =

No operation modules

'nop'
PAYLOAD =

Payload modules

'payload'
POST =

Post-exploitation modules

'post'
ALL =

Array of all supported module types (except ANY since that's a symbolic type)

[
    AUX,
    ENCODER,
    EXPLOIT,
    NOP,
    PAYLOAD,
    POST
]
NON_PAYLOAD =

Array of all module types that aren't PAYLOAD because PAYLOAD Ancestor#contents define Modules instead of Classes and so need to be loaded differently.

ALL.reject { |module_type|
  module_type == PAYLOAD
}