Files
metasploit-gs/lib/msf/core/framework.rb
T
Matt Miller 41b656d45e commenting
git-svn-id: file:///home/svn/incoming/trunk@2738 4d416f70-5f16-0410-b530-b9f4589650da
2005-07-12 14:32:44 +00:00

67 lines
869 B
Ruby

require 'msf/core'
module Msf
###
#
# Framework
# ---------
#
# This class is the primary context that modules, scripts, and user
# interfaces interact with. It ties everything together.
#
###
class Framework
def initialize()
self.events = EventDispatcher.new
self.modules = ModuleManager.new
end
#
# Returns the module set for encoders
#
def encoders
return modules.encoders
end
#
# Returns the module set for exploits
#
def exploits
return modules.exploits
end
#
# Returns the module set for nops
#
def nops
return modules.nops
end
#
# Returns the module set for payloads
#
def payloads
return modules.payloads
end
#
# Returns the module set for recon modules
#
def recon
return modules.recon
end
attr_reader :events
attr_reader :modules
protected
attr_writer :events
attr_writer :modules
end
end