Class Msf::DataStore
In: lib/msf/core/data_store.rb
Parent: Hash

The data store is just a bitbucket that holds keyed values. It is used by various classes to hold option values and other state information.

Methods

Public Class methods

Initializes the data store‘s internal state.

Public Instance methods

Case-insensitive wrapper around hash lookup

Clears the imported flag for the supplied key since it‘s being set directly.

Remove all imported options from the data store.

Imports datastore values from the specified file path using the supplied name

This method is a helper method that imports the default value for all of the supplied options

Imports options from a hash and stores them in the datastore.

Imports option values from a whitespace separated string in VAR=VAL format.

Case-insensitive wrapper around store

Persists the contents of the data store to a file

Serializes the options in the datastore to a string.

Updates a value in the datastore with the specified name, k, to the specified value, v. This update does not alter the imported status of the value.

Returns a hash of user-defined datastore values. The returned hash does not include default option values.

Protected Instance methods

Case-insensitive key lookup

[Validate]