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.



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

def init_store
  
end

#initializeObject



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

def initialize
  @update_mutex = Mutex.new
end