Class Msf::ModuleSet
In: lib/msf/core/module_manager.rb
Parent: Hash

A module set contains zero or more named module classes of an arbitrary type.

Methods

Included Modules

Framework::Offspring

Attributes

mod_ambiguous  [RW] 
mod_arch_hash  [RW] 
mod_extensions  [RW] 
mod_platform_hash  [RW] 
mod_ranked  [RW] 
mod_sorted  [RW] 
module_type  [W] 
module_type  [R] 
postpone_recalc  [RW]  Whether or not recalculations should be postponed. This is used from the context of the each_module_list handler in order to prevent the demand loader from calling recalc for each module if it‘s possible that more than one module may be loaded. This field is not initialized until used.

Public Class methods

Initializes a module set that will contain modules of a specific type and expose the mechanism necessary to create instances of them.

Public Instance methods

Wrapper that detects if a symbolic module is in use. If it is, it creates an instance to demand load the module and then returns the now-loaded class afterwords.

Create an instance of the supplied module by its name

Enumerates each module class in the set.

Custom each_module filtering if an advanced set supports doing extended filtering. Returns true if the entry should be filtered.

Enumerates each module class in the set based on their relative ranking to one another. Modules that are ranked higher are shown first.

Forces all modules in this set to be loaded.

Returns the hash value associated with the supplied module name without throwing an exception.

Gives the module set an opportunity to handle a module reload event

Dummy placeholder to relcalculate aliases and other fun things.

Checks to see if the supplied module name is valid.

Protected Instance methods

Adds a module with a the supplied name.

Load all modules that are marked as being symbolic.

Enumerates the modules in the supplied array with possible limiting factors.

Invalidates the sorted and ranked module caches.

Ranks modules based on their constant rank value, if they have one.

[Validate]