2005-05-21 18:27:24 +00:00
|
|
|
require 'Msf/Core'
|
2005-05-21 17:57:00 +00:00
|
|
|
|
|
|
|
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.encoders = EncoderManager.new
|
|
|
|
# self.exploits = ExploitManager.new
|
|
|
|
# self.nops = NopManager.new
|
|
|
|
# self.payloads = PayloadManager.new
|
|
|
|
# self.recon = ReconManager.new
|
|
|
|
|
|
|
|
super
|
|
|
|
end
|
|
|
|
|
|
|
|
attr_reader :events
|
|
|
|
attr_reader :ui
|
|
|
|
attr_reader :encoders
|
|
|
|
attr_reader :exploits
|
|
|
|
attr_reader :nops
|
|
|
|
attr_reader :payloads
|
|
|
|
attr_reader :recon
|
|
|
|
|
|
|
|
protected
|
|
|
|
|
|
|
|
attr_writer :events
|
|
|
|
attr_writer :ui
|
|
|
|
attr_writer :encoders
|
|
|
|
attr_writer :exploits
|
|
|
|
attr_writer :nops
|
|
|
|
attr_writer :payloads
|
|
|
|
attr_writer :recon
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|