From 669ea97d5422ae467670aa01c708236ec751c457 Mon Sep 17 00:00:00 2001 From: Spencer McIntyre Date: Fri, 27 Sep 2024 17:45:33 -0400 Subject: [PATCH] Revert a change that exposed the user store --- lib/msf/core/modules/metadata/store.rb | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/lib/msf/core/modules/metadata/store.rb b/lib/msf/core/modules/metadata/store.rb index 6388a8e78c40..a9bb426426f3 100644 --- a/lib/msf/core/modules/metadata/store.rb +++ b/lib/msf/core/modules/metadata/store.rb @@ -22,13 +22,6 @@ def init_store load_metadata end - def get_user_store - store_dir = ::File.join(Msf::Config.config_directory, "store") - FileUtils.makedirs(store_dir) if !::File.exist?(store_dir) - return ::File.join(store_dir, UserMetaDataFile) - end - - ####### private ####### @@ -114,6 +107,12 @@ def configure_user_store return copied end + def get_user_store + store_dir = ::File.join(Msf::Config.config_directory, "store") + FileUtils.makedirs(store_dir) if !::File.exist?(store_dir) + return ::File.join(store_dir, UserMetaDataFile) + end + def load_cache_from_file_store cache_map = JSON.parse(File.read(@path_to_user_metadata)) cache_map.each {|k,v|