555a9f2559
[Fixes #36737359] Refactor Msf::ModuleManager into concerns so its easier to understand and duplicate code can be made DRY. The refactoring also ensures that when loading from directories, Fastlibs, or reloading, the wrapper module will always be named so that activesupport/dependencies will function.
64 lines
1.2 KiB
Ruby
64 lines
1.2 KiB
Ruby
# -*- coding: binary -*-
|
|
###
|
|
#
|
|
# framework-core
|
|
# --------------
|
|
#
|
|
# The core library provides all of the means by which to interact
|
|
# with the framework insofar as manipulating encoders, nops,
|
|
# payloads, exploits, auxiliary, and sessions.
|
|
#
|
|
###
|
|
|
|
# Sanity check this version of ruby
|
|
require 'msf/sanity'
|
|
|
|
# The framework-core depends on Rex
|
|
require 'rex'
|
|
require 'rex/ui'
|
|
|
|
module Msf
|
|
LogSource = "core"
|
|
end
|
|
|
|
# General
|
|
require 'msf/core/constants'
|
|
require 'msf/core/exceptions'
|
|
require 'msf/core/data_store'
|
|
require 'msf/core/option_container'
|
|
|
|
# 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'
|
|
require 'msf/core/module_set'
|
|
require 'msf/core/plugin_manager'
|
|
require 'msf/core/session'
|
|
require 'msf/core/session_manager'
|
|
|
|
|
|
|
|
# Wrappers
|
|
require 'msf/core/encoded_payload'
|
|
|
|
# Pseudo-modules
|
|
require 'msf/core/handler'
|
|
|
|
# Modules
|
|
require 'msf/core/module'
|
|
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'
|
|
|