CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/tools/automation/cache/wait_for_cache.rc
Views: 11779
<ruby>
require "msf/core/modules/metadata/store"

UserMetaDataFile = Msf::Modules::Metadata::Store::UserMetaDataFile
store_dir = File.join(Msf::Config.config_directory, "store")
cache_file = File.join(store_dir, UserMetaDataFile)
framework.modules.refresh_cache_from_module_files
while true do
	break if File.exist?(cache_file)
	sleep(5)
end
</ruby>
exit