2012-06-29 05:18:28 +00:00
|
|
|
# -*- coding: binary -*-
|
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
|
|
|
#
|
|
|
|
###
|
|
|
|
|
2017-12-05 04:27:21 +00:00
|
|
|
# Include backported features for older versions of Ruby
|
2017-05-18 04:39:45 +00:00
|
|
|
require 'backports'
|
2005-12-08 18:26:38 +00:00
|
|
|
|
|
|
|
# The framework-core depends on Rex
|
2005-07-09 21:18:49 +00:00
|
|
|
require 'rex'
|
2011-05-12 20:03:55 +00:00
|
|
|
require 'rex/ui'
|
2016-07-27 18:34:48 +00:00
|
|
|
require 'rex/arch'
|
|
|
|
include Rex::Arch
|
2005-05-21 17:57:00 +00:00
|
|
|
|
2005-10-30 23:40:27 +00:00
|
|
|
module Msf
|
2014-10-16 19:59:15 +00:00
|
|
|
autoload :Author, 'msf/core/author'
|
2014-10-16 20:11:59 +00:00
|
|
|
autoload :Platform, 'msf/core/platform'
|
2014-10-16 20:03:21 +00:00
|
|
|
autoload :Reference, 'msf/core/reference'
|
2014-10-16 20:09:55 +00:00
|
|
|
autoload :SiteReference, 'msf/core/site_reference'
|
2014-10-16 20:13:18 +00:00
|
|
|
autoload :Target, 'msf/core/target'
|
2014-10-16 19:59:15 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Constants
|
|
|
|
#
|
|
|
|
|
2013-08-30 21:28:33 +00:00
|
|
|
LogSource = "core"
|
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
|
|
|
|
2011-05-12 20:03:55 +00:00
|
|
|
# Event subscriber interfaces
|
|
|
|
require 'msf/events'
|
|
|
|
|
|
|
|
# Framework context and core classes
|
|
|
|
require 'msf/core/framework'
|
|
|
|
require 'msf/core/db_manager'
|
|
|
|
require 'msf/core/event_dispatcher'
|
|
|
|
require 'msf/core/module_manager'
|
2012-10-01 18:09:30 +00:00
|
|
|
require 'msf/core/module_set'
|
2011-05-12 20:03:55 +00:00
|
|
|
require 'msf/core/plugin_manager'
|
|
|
|
require 'msf/core/session'
|
|
|
|
require 'msf/core/session_manager'
|
|
|
|
|
2011-11-20 01:32:06 +00:00
|
|
|
|
2013-03-08 00:20:08 +00:00
|
|
|
|
2011-05-12 20:03:55 +00:00
|
|
|
# Wrappers
|
|
|
|
require 'msf/core/encoded_payload'
|
|
|
|
|
|
|
|
# Pseudo-modules
|
|
|
|
require 'msf/core/handler'
|
|
|
|
|
2005-05-21 17:57:00 +00:00
|
|
|
# Modules
|
2005-07-09 21:18:49 +00:00
|
|
|
require 'msf/core/module'
|
2011-05-12 20:03:55 +00:00
|
|
|
require 'msf/core/encoder'
|
|
|
|
require 'msf/core/auxiliary'
|
|
|
|
require 'msf/core/exploit'
|
|
|
|
require 'msf/core/nop'
|
|
|
|
require 'msf/core/payload'
|
|
|
|
require 'msf/core/post'
|
|
|
|
|
|
|
|
# Drivers
|
|
|
|
require 'msf/core/exploit_driver'
|
|
|
|
|