Module: Metasploit::Model::Module::Ancestor::ClassMethods
- Defined in:
- lib/metasploit/model/module/ancestor.rb
Overview
Defines class methods added to classes that include Metasploit::Model::Module::Ancestor.
Instance Method Summary collapse
-
#handled?(options = {}) ⇒ true, false
Returns whether #handler_type is required or must be
nil
for the given payload_type.
Instance Method Details
#handled?(options = {}) ⇒ true, false
Returns whether Metasploit::Model::Module::Ancestor#handler_type is required or must be nil
for the given payload_type.
160 161 162 163 164 165 166 167 168 169 170 171 172 |
# File 'lib/metasploit/model/module/ancestor.rb', line 160 def handled?(={}) .assert_valid_keys(:module_type, :payload_type) handled = false module_type = [:module_type] payload_type = [:payload_type] if module_type == 'payload' and HANDLED_TYPES.include? payload_type handled = true end handled end |