Class Msf::OptionContainer
In: lib/msf/core/option_container.rb
Parent: Hash

The options purpose in life is to associate named options with arbitrary values at the most simplistic level. Each module contains a OptionContainer that is used to hold the various options that the module depends on. Example of options that are stored in the OptionContainer are rhost and rport for payloads or exploits that need to connect to a host and port, for instance.

Methods

Attributes

sorted  [R]  The sorted array of options.

Public Class methods

Merges in the supplied options and converts them to a OptBase as necessary.

Public Instance methods

Return the value associated with the supplied name.

Alias to add advanced options that sets the proper state flag.

Alias to add evasion options that sets the proper state flag.

Add options from an array of option instances or arrays.

Enumerates each option name

Return the option associated with the supplied name.

Returns whether or not the container has any advanced options.

Returns whether or not the container has any evasion options.

Returns whether or not the container has any options, excluding advanced (and evasions).

Merges the options in this container with another option container and returns the sorted results.

Creates string of options that were used from the datastore in VAR=VAL format separated by commas.

Removes an option.

Make sures that each of the options has a value of a compatible format and that all the required options are set.

[Validate]