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

Instance Method Details

#auxiliary?Boolean

Returns true if this module is an auxiliary module.

Returns:

  • (Boolean)

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.

Returns:

  • (Boolean)

27
28
29
# File 'lib/msf/core/module/type.rb', line 27

def encoder?
  (type == Msf::MODULE_ENCODER)
end

#evasion?Boolean

Returns:

  • (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.

Returns:

  • (Boolean)

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.

Returns:

  • (Boolean)

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.

Returns:

  • (Boolean)

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.

Returns:

  • (Boolean)

55
56
57
# File 'lib/msf/core/module/type.rb', line 55

def post?
  (type == Msf::MODULE_POST)
end

#typeObject

Return the module's abstract type.

Raises:

  • (NotImplementedError)

66
67
68
# File 'lib/msf/core/module/type.rb', line 66

def type
  raise NotImplementedError
end