| Class | Msf::Config |
| In: |
lib/msf/base/config.rb
|
| Parent: | Hash |
This class wraps interaction with global configuration that can be used as a persistent storage point for configuration, logs, and other such fun things.
| InstallRoot | = | File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..')) | The installation root directory for the distribution | |
| FileSep | = | File::SEPARATOR | Default values | |
| Defaults | = | { 'ConfigDirectory' => get_config_root, 'ConfigFile' => "config", 'ModuleDirectory' => "modules", 'ScriptDirectory' => "scripts", 'LogDirectory' => "logs", 'SessionLogDirectory' => "logs/sessions", 'PluginDirectory' => "plugins", 'DataDirectory' => "data" |
Saves configuration to the path specified in the ConfigFile hash key or the default path is one isn‘t specified. The options should be group references that have named value pairs. Example:
save(
'ExampleGroup' =>
{
'Foo' => 'Cat'
})