Sha256: 3d738fd369a551c1b955f1551b3eae82d8c029b0bb871fe3a45bbe870bf751b0
Contents?: true
Size: 735 Bytes
Versions: 31
Compression:
Stored size: 735 Bytes
Contents
def self.handler_module # need to use `::Module` as `Module` would resolve to `Msf::Module` in the lexical scope # `[Msf::Modules::<namespace_module>, Msf::Modules, Msf]` used to load # {Metasploit::Model::Module::Ancestor#contents} in metasploit-framework. @handler_module ||= ::Module.new { def self.general_handler_type <%- handler_type = Metasploit::Model::Module::Handler::GENERAL_TYPE_BY_TYPE.keys.sample -%> <%- general_handler_type = Metasploit::Model::Module::Handler::GENERAL_TYPE_BY_TYPE[handler_type] -%> <%= general_handler_type.inspect %> end def self.handler_type <%= handler_type.inspect %> end } end def self.handler_type_alias <%= module_ancestor.handler_type.inspect %> end
Version data entries
31 entries across 31 versions & 1 rubygems