-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Land #14629, migrate msf folder to Zeitwerk
- Loading branch information
Showing
86 changed files
with
77 additions
and
309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
require 'msf/util/helper' | ||
require 'open3' | ||
|
||
module Metasploit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
require 'rex/proto/ntlm' | ||
require 'rex/arch' | ||
include Rex::Arch | ||
|
||
NTLM_CONST ||= ::Rex::Proto::NTLM::Constants | ||
NTLM_CRYPT ||= ::Rex::Proto::NTLM::Crypt | ||
NTLM_UTILS ||= ::Rex::Proto::NTLM::Utils | ||
NTLM_BASE ||= ::Rex::Proto::NTLM::Base | ||
NTLM_MESSAGE ||= ::Rex::Proto::NTLM::Message | ||
|
||
module Msf | ||
|
||
LogSource = "core" | ||
end | ||
|
||
require 'msf/core/exception' # TODO: temporary require until we can split up the exceptions file and namespace properly | ||
require 'msf_autoload' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# -*- coding: binary -*- | ||
|
||
# Utilities | ||
require 'msf/util' | ||
|
||
# This file is only needed for compatibility with pro | ||
# Once pro removes the explicit require this file can be deleted | ||
require 'msf' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# framework-base | ||
|
||
The base library provides implementations for some of the default | ||
sessions, such as Shell, Meterpreter, DispatchNinja, and VNC. These | ||
sessions are used by modules that come pre-packaged with the default | ||
module distribution of Metasploit and are depended on by their | ||
respective payloads. | ||
|
||
Beyond providing the default sessions, framework-base also provides | ||
a wrapper interface to framework-core that makes some of the tasks, | ||
such as exploitation, into easier to manage functions. | ||
|
||
framework-base depends on framework-core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
# -*- coding: binary -*- | ||
|
||
require 'msf/windows_error' | ||
|
||
module Msf | ||
module Sessions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
# -*- coding: binary -*- | ||
|
||
require 'msf/windows_error' | ||
|
||
module Msf | ||
module Sessions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
# -*- coding: binary -*- | ||
|
||
require 'msf/windows_error' | ||
|
||
module Msf | ||
module Sessions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,3 @@ | ||
# -*- 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. | ||
# | ||
### | ||
|
||
# The framework-core depends on Rex | ||
require 'rex' | ||
require 'rex/ui' | ||
require 'rex/arch' | ||
|
||
include Rex::Arch | ||
|
||
NTLM_CONST ||= ::Rex::Proto::NTLM::Constants | ||
NTLM_CRYPT ||= ::Rex::Proto::NTLM::Crypt | ||
NTLM_UTILS ||= ::Rex::Proto::NTLM::Utils | ||
NTLM_BASE ||= ::Rex::Proto::NTLM::Base | ||
NTLM_MESSAGE ||= ::Rex::Proto::NTLM::Message | ||
|
||
module Msf | ||
autoload :Author, 'msf/core/author' | ||
autoload :Platform, 'msf/core/platform' | ||
autoload :Reference, 'msf/core/reference' | ||
autoload :SiteReference, 'msf/core/site_reference' | ||
autoload :Target, 'msf/core/target' | ||
|
||
# | ||
# Constants | ||
# | ||
|
||
LogSource = "core" | ||
end | ||
|
||
# Event subscriber interfaces | ||
require 'msf/events' | ||
# This file is only needed for compatibility with pro | ||
# Once pro removes the explicit require this file can be deleted | ||
require 'msf' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
# 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
# -*- coding: binary -*- | ||
require 'pp' | ||
require 'rex' | ||
require 'msf/ui/web/driver' | ||
|
||
module Msf | ||
module RPC | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
# -*- coding: binary -*- | ||
|
||
require 'json' | ||
require 'msf/util/document_generator' | ||
|
||
module Msf | ||
module RPC | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,3 @@ module Console | |
end | ||
end | ||
|
||
require 'msf/ui/console/driver' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
# -*- coding: binary -*- | ||
|
||
require 'rex/parser/arguments' | ||
require 'msf/util/exe' | ||
|
||
module Msf | ||
module Ui | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# -*- coding: binary -*- | ||
require 'msf/ui/console/command_dispatcher' | ||
require 'rex/parser/arguments' | ||
|
||
module Msf | ||
|
Oops, something went wrong.