Module: Msf::Module::FullName::ClassMethods

Defined in:
lib/msf/core/module/full_name.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#refnameObject

The module's name that is assigned to it by the framework or derived from the path that the module is loaded from.


17
18
19
# File 'lib/msf/core/module/full_name.rb', line 17

def refname
  @refname
end

Instance Method Details

#aliasesObject

Returns a list of alternate names the module might go by.


46
47
48
# File 'lib/msf/core/module/full_name.rb', line 46

def aliases
  const_defined?(:Aliases) ? const_get(:Aliases) : []
end

#fullnameObject

Class Methods


23
24
25
# File 'lib/msf/core/module/full_name.rb', line 23

def fullname
  "#{type}/#{refname}"
end

#promptnameObject


35
36
37
# File 'lib/msf/core/module/full_name.rb', line 35

def promptname
  refname
end

#realnameObject

Classes themselves are never aliased (at the moment, anyway), but this is always just the #fullname.


31
32
33
# File 'lib/msf/core/module/full_name.rb', line 31

def realname
  fullname
end

#shortnameObject


39
40
41
# File 'lib/msf/core/module/full_name.rb', line 39

def shortname
  refname.split('/').last
end