lib/msf/core/module_manager.rb
#
# Called when a module is initially loaded such that it can be
# categorized accordingly.
#
Called when a module is initially loaded such that it can be
categorized accordingly.
Called when a module is initially loaded such that it can be categorized accordingly .
def on_module_load(mod, type, name, modinfo)
		if (type != MODULE_PAYLOAD)
			add_module(mod, name, modinfo)
		end
		module_sets[type].add_module(mod, name, modinfo)
	end
def on_module_load ( mod , type , name , modinfo ) if ( type != MODULE_PAYLOAD ) add_module ( mod , name , modinfo ) end module_sets [ type ] . add_module ( mod , name , modinfo ) end
Called when a module is initially loaded such that it can be
categorized accordingly.
Called when a module is initially loaded such that it can be categorized accordingly .
# Payload modules require custom loading as the individual files # may not directly contain a logical payload that a user would # reference, such as would be the case with a payload stager or # stage.  As such, when payload modules are loaded they are handed # off to a special payload set.  The payload set, in turn, will # automatically create all the permutations after all the payload # modules have been loaded. # Add the module class to the list of modules and add it to the # type separated set of module classes
mod
<not_specific>
type
<not_specific>
name
<not_specific>
modinfo
<not_specific>