2005-05-21 17:57:00 +00:00
|
|
|
###
|
|
|
|
#
|
|
|
|
# framework-core
|
|
|
|
# --------------
|
|
|
|
#
|
|
|
|
# The core library provides all of the means by which to interact
|
2009-01-11 03:17:21 +00:00
|
|
|
# with the framework insofar as manipulating encoders, nops,
|
2006-01-24 03:59:44 +00:00
|
|
|
# payloads, exploits, auxiliary, and sessions.
|
2005-05-21 17:57:00 +00:00
|
|
|
#
|
|
|
|
###
|
|
|
|
|
2005-12-08 18:26:38 +00:00
|
|
|
# Sanity check this version of ruby
|
|
|
|
require 'msf/sanity'
|
|
|
|
|
|
|
|
# The framework-core depends on Rex
|
2005-07-09 21:18:49 +00:00
|
|
|
require 'rex'
|
2005-05-21 17:57:00 +00:00
|
|
|
|
2011-05-12 19:07:35 +00:00
|
|
|
# Set the log source, and initialize demand-loaded requires
|
2005-10-30 23:40:27 +00:00
|
|
|
module Msf
|
|
|
|
LogSource = "core"
|
2011-05-12 19:07:35 +00:00
|
|
|
|
|
|
|
# Event subscriber interfaces
|
|
|
|
autoload :UiEventSubscriber, 'msf/events'
|
|
|
|
|
|
|
|
# Wrappers
|
|
|
|
autoload :EncodedPayload, 'msf/core/encoded_payload'
|
|
|
|
|
|
|
|
# Pseudo-modules
|
|
|
|
autoload :Handler, 'msf/core/handler'
|
|
|
|
|
|
|
|
# Mixins
|
|
|
|
autoload :Encoder, 'msf/core/encoder'
|
|
|
|
autoload :EncoderState, 'msf/core/encoder'
|
|
|
|
autoload :Auxiliary, 'msf/core/auxiliary'
|
|
|
|
autoload :Nop, 'msf/core/nop'
|
|
|
|
autoload :Payload, 'msf/core/payload'
|
|
|
|
autoload :ExploitEvent, 'msf/core/exploit'
|
|
|
|
autoload :Exploit, 'msf/core/exploit'
|
|
|
|
autoload :Post, 'msf/core/post'
|
|
|
|
|
|
|
|
# Drivers
|
|
|
|
autoload :ExploitDriver, 'msf/core/exploit_driver'
|
|
|
|
|
|
|
|
# Framework context and core classes
|
|
|
|
autoload :Framework, 'msf/core/framework'
|
|
|
|
|
|
|
|
# Session stuff
|
|
|
|
autoload :Session, 'msf/core/session'
|
|
|
|
autoload :SessionEvent, 'msf/core/session'
|
2005-10-30 23:40:27 +00:00
|
|
|
end
|
|
|
|
|
2005-05-21 17:57:00 +00:00
|
|
|
# General
|
2005-07-09 21:18:49 +00:00
|
|
|
require 'msf/core/constants'
|
|
|
|
require 'msf/core/exceptions'
|
|
|
|
require 'msf/core/data_store'
|
|
|
|
require 'msf/core/option_container'
|
2005-05-21 17:57:00 +00:00
|
|
|
|
|
|
|
# Modules
|
2005-07-09 21:18:49 +00:00
|
|
|
require 'msf/core/module'
|