CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/tools/automation/cache/wait_for_cache.rc
Views: 1904
<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