Module: Msf::Modules::Metadata::Store

Included in:
Cache
Defined in:
lib/msf/core/modules/metadata/store.rb

Overview

Handles storage of module metadata on disk. A base metadata file is always included - this was added to ensure a much better first time user experience as generating the user based metadata file requires 100+ mb at the time of creating this module. Subsequent starts of metasploit will load from a user specific metadata file as users potentially load modules from other places.

Constant Summary collapse

BaseMetaDataFile =
'modules_metadata_base.json'
UserMetaDataFile =
'modules_metadata.json'

Instance Method Summary collapse

Instance Method Details

#init_storeObject

Initializes from user store (under ~/store/.msf4) if it exists. else base file (under $INSTALL_ROOT/db) is copied and loaded.


22
23
24
# File 'lib/msf/core/modules/metadata/store.rb', line 22

def init_store
  
end

#initializeObject


12
13
14
# File 'lib/msf/core/modules/metadata/store.rb', line 12

def initialize
  @update_mutex = Mutex.new
end