module Msf
module Simple
module Module
def _import_extra_options(opts)
if (value = opts['Options'])
if value.is_a?(String)
self.datastore.import_options_from_s(value)
else
self.datastore.import_options_from_hash(value)
end
elsif (value = opts['OptionStr'])
self.datastore.import_options_from_s(value)
end
end
def inspect
"#<Module:#{self.fullname} datastore=[#{self.datastore.inspect}]>"
end
def init_simplified(load_saved_config=true)
load_config if load_saved_config
end
def load_config
self.datastore.from_file(Msf::Config.config_file, self.refname)
end
def save_config
self.datastore.to_file(Msf::Config.config_file, self.refname)
end
end
end
end