lib/msf/core/module_manager.rb
#
# Adds a module with a the supplied name.
#
Adds a module with a the supplied name.
Adds a module with a the supplied name .
def add_module(mod, name, modinfo = nil)
		mod.framework = framework
		mod.refname   = name
		mod.file_path = ((modinfo and modinfo['files']) ? modinfo['files'][0] : nil)
		mod.orig_cls  = mod
		if (get_hash_val(name) and get_hash_val(name) != SymbolicModule)
			mod_ambiguous[name] = true
			wlog("The module #{mod.refname} is ambiguous with #{self[name].refname}.")
		else
			self[name] = mod
		end
		mod
	end
def add_module ( mod , name , modinfo = nil ) mod . framework = framework mod . refname = name mod . file_path = ( ( modinfo and modinfo [ 'files' ] ) ? modinfo [ 'files' ] [ 0 ] : nil ) mod . orig_cls = mod if ( get_hash_val ( name ) and get_hash_val ( name ) != SymbolicModule ) mod_ambiguous [ name ] = true wlog ( "The module #{mod.refname} is ambiguous with #{self[name].refname}." ) else self [ name ] = mod end mod end
Adds a module with a the supplied name.
Adds a module with a the supplied name .
# Set the module's name so that it can be referenced when # instances are created.
mod
<not_specific>
name
<not_specific>
modinfo
<not_specific>