lib/msf/core/module_manager.rb
#
# Return a listing of all cached modules
#
Return a listing of all cached modules
Return a listing of all cached modules
def cache_entries
		return {} if not (framework.db and framework.db.migrated)
		res = {}
		::Mdm::ModuleDetail.find(:all).each do |m|
			res[m.file] = { :mtype => m.mtype, :refname => m.refname, :file => m.file, :mtime => m.mtime }
			unless module_set(m.mtype).has_key?(m.refname)
				module_set(m.mtype)[m.refname] = SymbolicModule
			end
		end
		res
	end
def cache_entries return { } if not ( framework . db and framework . db . migrated ) res = { } :: Mdm :: ModuleDetail . find ( :all ) . each do | m | res [ m . file ] = { :mtype => m . mtype , :refname => m . refname , :file => m . file , :mtime => m . mtime } unless module_set ( m . mtype ) . has_key? ( m . refname ) module_set ( m . mtype ) [ m . refname ] = SymbolicModule end end res end
Return a listing of all cached modules
Return a listing of all cached modules