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
|
2005-05-22 07:14:16 +00:00
|
|
|
self.modules = ModuleManager.new
|
|
|
|
end
|
|
|
|
|
|
|
|
def encoders
|
|
|
|
return modules.encoders
|
|
|
|
end
|
|
|
|
|
|
|
|
def nops
|
|
|
|
return modules.nops
|
|
|
|
end
|
|
|
|
|
|
|
|
def exploits
|
|
|
|
return modules.exploits
|
|
|
|
end
|
2005-05-21 17:57:00 +00:00
|
|
|
|
2005-05-22 07:14:16 +00:00
|
|
|
def recon
|
|
|
|
return modules.recon
|
2005-05-21 17:57:00 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
attr_reader :events
|
2005-05-22 07:14:16 +00:00
|
|
|
attr_reader :modules
|
2005-05-21 17:57:00 +00:00
|
|
|
|
|
|
|
protected
|
|
|
|
|
|
|
|
attr_writer :events
|
2005-05-22 07:14:16 +00:00
|
|
|
attr_writer :modules
|
2005-05-21 17:57:00 +00:00
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|