lib/msf/core/module_manager.rb
#
# Reloads modules from all module paths
#
Reloads modules from all module paths
Reloads modules from all module paths
def reload_modules
		self.module_history = {}
		self.clear
		self.enabled_types.each_key do |type|
			module_sets[type].clear
			init_module_set(type)
		end
		count = 0
		module_paths.each do |path|
			mods = load_modules(path, true)
			mods.each_value {|c| count += c}
		end
		rebuild_cache
		count
	end
def reload_modules self . module_history = { } self . clear self . enabled_types . each_key do | type | module_sets [ type ] . clear init_module_set ( type ) end count = 0 module_paths . each do | path | mods = load_modules ( path , true ) mods . each_value { | c | count += c } end rebuild_cache count end
Reloads modules from all module paths
Reloads modules from all module paths
# The number of loaded modules in the following categories: # auxiliary/encoder/exploit/nop/payload/post