Module: Msf::Module::Type
- Extended by:
- ActiveSupport::Concern
- Included in:
- Msf::Module
- Defined in:
- lib/msf/core/module/type.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#auxiliary? ⇒ Boolean
Returns true if this module is an auxiliary module.
-
#encoder? ⇒ Boolean
Returns true if this module is an encoder module.
- #evasion? ⇒ Boolean
-
#exploit? ⇒ Boolean
Returns true if this module is an exploit module.
-
#nop? ⇒ Boolean
Returns true if this module is a nop module.
-
#payload? ⇒ Boolean
Returns true if this module is a payload module.
-
#post? ⇒ Boolean
Returns true if this module is an post-exploitation module.
-
#type ⇒ Object
Return the module’s abstract type.
Instance Method Details
#auxiliary? ⇒ Boolean
Returns true if this module is an auxiliary module.
20 21 22 |
# File 'lib/msf/core/module/type.rb', line 20 def auxiliary? (type == Msf::MODULE_AUX) end |
#encoder? ⇒ Boolean
Returns true if this module is an encoder module.
27 28 29 |
# File 'lib/msf/core/module/type.rb', line 27 def encoder? (type == Msf::MODULE_ENCODER) end |
#evasion? ⇒ Boolean
59 60 61 |
# File 'lib/msf/core/module/type.rb', line 59 def evasion? (type == Msf::MODULE_EVASION) end |
#exploit? ⇒ Boolean
Returns true if this module is an exploit module.
34 35 36 |
# File 'lib/msf/core/module/type.rb', line 34 def exploit? (type == Msf::MODULE_EXPLOIT) end |
#nop? ⇒ Boolean
Returns true if this module is a nop module.
41 42 43 |
# File 'lib/msf/core/module/type.rb', line 41 def nop? (type == Msf::MODULE_NOP) end |
#payload? ⇒ Boolean
Returns true if this module is a payload module.
48 49 50 |
# File 'lib/msf/core/module/type.rb', line 48 def payload? (type == Msf::MODULE_PAYLOAD) end |
#post? ⇒ Boolean
Returns true if this module is an post-exploitation module.
55 56 57 |
# File 'lib/msf/core/module/type.rb', line 55 def post? (type == Msf::MODULE_POST) end |
#type ⇒ Object
Return the module’s abstract type.
66 67 68 |
# File 'lib/msf/core/module/type.rb', line 66 def type raise NotImplementedError end |