diff --git a/lib/metasploit/framework/common_engine.rb b/lib/metasploit/framework/common_engine.rb index 3044179a6c..63e9506071 100644 --- a/lib/metasploit/framework/common_engine.rb +++ b/lib/metasploit/framework/common_engine.rb @@ -11,7 +11,6 @@ require 'fileutils' require 'metasploit/model/engine' require 'metasploit/concern/engine' require 'metasploit/framework/require' -require 'msf/base/config' Metasploit::Framework::Require.optionally_require_metasploit_db_gem_engines # `Rails::Engine` behavior common to both {Metasploit::Framework::Application} and {Metasploit::Framework::Engine}. diff --git a/lib/metasploit/framework/database.rb b/lib/metasploit/framework/database.rb index 7ff573a357..574fc7e047 100644 --- a/lib/metasploit/framework/database.rb +++ b/lib/metasploit/framework/database.rb @@ -1,5 +1,4 @@ require 'metasploit/framework' -require 'msf/base/config' module Metasploit module Framework diff --git a/lib/msf/base.rb b/lib/msf/base.rb index 332724ccb4..e980fc6e1a 100644 --- a/lib/msf/base.rb +++ b/lib/msf/base.rb @@ -1,37 +1,4 @@ # -*- coding: binary -*- -# -# 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 - -# Configuration -require 'msf/base/config' -require 'msf/base/logging' - -# Simple wrapper -require 'msf/base/simple' - -# Sessions -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/tty' - -# Serialization -require 'msf/base/serializer/readable_text' -require 'msf/base/serializer/json' - -# Persistent Storage -require 'msf/base/persistent_storage' # Utilities require 'msf/util' diff --git a/lib/msf/base/logging.rb b/lib/msf/base/logging.rb index f86da7da54..b299b877af 100644 --- a/lib/msf/base/logging.rb +++ b/lib/msf/base/logging.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- require 'rex' -require 'msf/base' require 'msf/core' module Msf diff --git a/lib/msf/base/persistent_storage.rb b/lib/msf/base/persistent_storage.rb index b7f93a01f6..456487f77b 100644 --- a/lib/msf/base/persistent_storage.rb +++ b/lib/msf/base/persistent_storage.rb @@ -74,4 +74,3 @@ end end -require 'msf/base/persistent_storage/flatfile' diff --git a/lib/msf/base/sessions/command_shell.rb b/lib/msf/base/sessions/command_shell.rb index c3997e2705..4ef4462a68 100644 --- a/lib/msf/base/sessions/command_shell.rb +++ b/lib/msf/base/sessions/command_shell.rb @@ -1,7 +1,4 @@ # -*- coding: binary -*- -require 'msf/base' -require 'msf/base/sessions/scriptable' -require 'msf/base/sessions/command_shell_options' require 'shellwords' require 'rex/text/table' require "base64" @@ -28,7 +25,7 @@ class CommandShell # include Msf::Session::Provider::SingleCommandShell - include Msf::Session::Scriptable + include Msf::Sessions::Scriptable include Rex::Ui::Text::Resource @@ -762,25 +759,5 @@ protected end end -class CommandShellWindows < CommandShell - def initialize(*args) - self.platform = "windows" - super - end - def shell_command_token(cmd,timeout = 10) - shell_command_token_win32(cmd,timeout) - end -end - -class CommandShellUnix < CommandShell - def initialize(*args) - self.platform = "unix" - super - end - def shell_command_token(cmd,timeout = 10) - shell_command_token_unix(cmd,timeout) - end -end - end end diff --git a/lib/msf/base/sessions/command_shell_unix.rb b/lib/msf/base/sessions/command_shell_unix.rb new file mode 100644 index 0000000000..c3bd2dd135 --- /dev/null +++ b/lib/msf/base/sessions/command_shell_unix.rb @@ -0,0 +1,13 @@ +module Msf::Sessions + + class CommandShellUnix < CommandShell + def initialize(*args) + self.platform = "unix" + super + end + def shell_command_token(cmd,timeout = 10) + shell_command_token_unix(cmd,timeout) + end + end + +end diff --git a/lib/msf/base/sessions/command_shell_windows.rb b/lib/msf/base/sessions/command_shell_windows.rb new file mode 100644 index 0000000000..b98667a758 --- /dev/null +++ b/lib/msf/base/sessions/command_shell_windows.rb @@ -0,0 +1,14 @@ + +module Msf::Sessions + + class CommandShellWindows < CommandShell + def initialize(*args) + self.platform = "windows" + super + end + def shell_command_token(cmd,timeout = 10) + shell_command_token_win32(cmd,timeout) + end + end + +end diff --git a/lib/msf/base/sessions/encrypted_shell.rb b/lib/msf/base/sessions/encrypted_shell.rb index cf014f3037..ca97c960b3 100644 --- a/lib/msf/base/sessions/encrypted_shell.rb +++ b/lib/msf/base/sessions/encrypted_shell.rb @@ -1,5 +1,4 @@ # -*- coding: binary -*- -require 'msf/base' require 'securerandom' module Msf diff --git a/lib/msf/base/sessions/hwbridge.rb b/lib/msf/base/sessions/hwbridge.rb index e6c9bc6190..1252d75adb 100644 --- a/lib/msf/base/sessions/hwbridge.rb +++ b/lib/msf/base/sessions/hwbridge.rb @@ -1,7 +1,5 @@ # -*- coding: binary -*- -require 'msf/base' -require 'msf/base/sessions/scriptable' require 'rex/post/hwbridge' module Msf @@ -24,7 +22,7 @@ class HWBridge < Rex::Post::HWBridge::Client # This interface supports interactive commands. # include Msf::Session::Interactive - include Msf::Session::Scriptable + include Msf::Sessions::Scriptable # # Initialize the HWBridge console diff --git a/lib/msf/base/sessions/mainframe_shell.rb b/lib/msf/base/sessions/mainframe_shell.rb index 900f3e8063..ab9cc86f00 100644 --- a/lib/msf/base/sessions/mainframe_shell.rb +++ b/lib/msf/base/sessions/mainframe_shell.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/command_shell' module Msf::Sessions diff --git a/lib/msf/base/sessions/meterpreter.rb b/lib/msf/base/sessions/meterpreter.rb index 9c92a1cd09..659d42694b 100644 --- a/lib/msf/base/sessions/meterpreter.rb +++ b/lib/msf/base/sessions/meterpreter.rb @@ -1,7 +1,5 @@ # -*- coding: binary -*- -require 'msf/base' -require 'msf/base/sessions/scriptable' require 'rex/post/meterpreter' module Msf @@ -29,7 +27,7 @@ class Meterpreter < Rex::Post::Meterpreter::Client # include Msf::Session::Provider::SingleCommandShell - include Msf::Session::Scriptable + include Msf::Sessions::Scriptable # Override for server implementations that can't do SSL def supports_ssl? diff --git a/lib/msf/base/sessions/meterpreter_aarch64_apple_ios.rb b/lib/msf/base/sessions/meterpreter_aarch64_apple_ios.rb index 49859514e6..aca1f5a220 100644 --- a/lib/msf/base/sessions/meterpreter_aarch64_apple_ios.rb +++ b/lib/msf/base/sessions/meterpreter_aarch64_apple_ios.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/meterpreter' module Msf module Sessions diff --git a/lib/msf/base/sessions/meterpreter_aarch64_linux.rb b/lib/msf/base/sessions/meterpreter_aarch64_linux.rb index d071c5f004..22475de510 100644 --- a/lib/msf/base/sessions/meterpreter_aarch64_linux.rb +++ b/lib/msf/base/sessions/meterpreter_aarch64_linux.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/meterpreter' module Msf module Sessions diff --git a/lib/msf/base/sessions/meterpreter_android.rb b/lib/msf/base/sessions/meterpreter_android.rb index c1d54326ed..3d77051fb7 100644 --- a/lib/msf/base/sessions/meterpreter_android.rb +++ b/lib/msf/base/sessions/meterpreter_android.rb @@ -1,8 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/meterpreter' -require 'msf/base/sessions/meterpreter_java' -require 'msf/base/sessions/meterpreter_options' module Msf module Sessions diff --git a/lib/msf/base/sessions/meterpreter_armbe_linux.rb b/lib/msf/base/sessions/meterpreter_armbe_linux.rb index 8b23c48fd2..102b97c235 100644 --- a/lib/msf/base/sessions/meterpreter_armbe_linux.rb +++ b/lib/msf/base/sessions/meterpreter_armbe_linux.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/meterpreter' module Msf module Sessions diff --git a/lib/msf/base/sessions/meterpreter_armle_apple_ios.rb b/lib/msf/base/sessions/meterpreter_armle_apple_ios.rb index d184ce10d4..bbe2c3ce86 100644 --- a/lib/msf/base/sessions/meterpreter_armle_apple_ios.rb +++ b/lib/msf/base/sessions/meterpreter_armle_apple_ios.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/meterpreter' module Msf module Sessions diff --git a/lib/msf/base/sessions/meterpreter_armle_linux.rb b/lib/msf/base/sessions/meterpreter_armle_linux.rb index 856c34b63f..dcf56f0cc0 100644 --- a/lib/msf/base/sessions/meterpreter_armle_linux.rb +++ b/lib/msf/base/sessions/meterpreter_armle_linux.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/meterpreter' module Msf module Sessions diff --git a/lib/msf/base/sessions/meterpreter_java.rb b/lib/msf/base/sessions/meterpreter_java.rb index 9768c3f040..4cb58ed640 100644 --- a/lib/msf/base/sessions/meterpreter_java.rb +++ b/lib/msf/base/sessions/meterpreter_java.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/meterpreter' module Msf module Sessions diff --git a/lib/msf/base/sessions/meterpreter_mips64_linux.rb b/lib/msf/base/sessions/meterpreter_mips64_linux.rb index 51f3ed47f0..42168ed18a 100644 --- a/lib/msf/base/sessions/meterpreter_mips64_linux.rb +++ b/lib/msf/base/sessions/meterpreter_mips64_linux.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/meterpreter' module Msf module Sessions diff --git a/lib/msf/base/sessions/meterpreter_mipsbe_linux.rb b/lib/msf/base/sessions/meterpreter_mipsbe_linux.rb index f449f91b7d..2f8dc8bc27 100644 --- a/lib/msf/base/sessions/meterpreter_mipsbe_linux.rb +++ b/lib/msf/base/sessions/meterpreter_mipsbe_linux.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/meterpreter' module Msf module Sessions diff --git a/lib/msf/base/sessions/meterpreter_mipsle_linux.rb b/lib/msf/base/sessions/meterpreter_mipsle_linux.rb index 7d6599cf61..acc569de5f 100644 --- a/lib/msf/base/sessions/meterpreter_mipsle_linux.rb +++ b/lib/msf/base/sessions/meterpreter_mipsle_linux.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/meterpreter' module Msf module Sessions diff --git a/lib/msf/base/sessions/meterpreter_multi.rb b/lib/msf/base/sessions/meterpreter_multi.rb index 0d8a3f154b..cc213b891b 100644 --- a/lib/msf/base/sessions/meterpreter_multi.rb +++ b/lib/msf/base/sessions/meterpreter_multi.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/meterpreter' module Msf module Sessions @@ -21,23 +20,17 @@ class Meterpreter_Multi < Msf::Sessions::Meterpreter # TODO: fill in more cases here case opts[:payload_uuid].platform when 'python' - require 'msf/base/sessions/meterpreter_python' return Msf::Sessions::Meterpreter_Python_Python.new(rstream, opts) when 'java' - require 'msf/base/sessions/meterpreter_java' return Msf::Sessions::Meterpreter_Java_Java.new(rstream, opts) when 'android' - require 'msf/base/sessions/meterpreter_android' return Msf::Sessions::Meterpreter_Java_Android.new(rstream, opts) when 'php' - require 'msf/base/sessions/meterpreter_php' return Msf::Sessions::Meterpreter_Php_Php.new(rstream, opts) when 'windows' if opts[:payload_uuid].arch == ARCH_X86 - require 'msf/base/sessions/meterpreter_x86_win' return Msf::Sessions::Meterpreter_x86_Win.new(rstream, opts) end - require 'msf/base/sessions/meterpreter_x64_win' return Msf::Sessions::Meterpreter_x64_Win.new(rstream, opts) end diff --git a/lib/msf/base/sessions/meterpreter_php.rb b/lib/msf/base/sessions/meterpreter_php.rb index abecdb642f..83b7eabc1e 100644 --- a/lib/msf/base/sessions/meterpreter_php.rb +++ b/lib/msf/base/sessions/meterpreter_php.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/meterpreter' module Msf module Sessions diff --git a/lib/msf/base/sessions/meterpreter_ppc64le_linux.rb b/lib/msf/base/sessions/meterpreter_ppc64le_linux.rb index 75d6a52ce8..e3e161f241 100644 --- a/lib/msf/base/sessions/meterpreter_ppc64le_linux.rb +++ b/lib/msf/base/sessions/meterpreter_ppc64le_linux.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/meterpreter' module Msf module Sessions diff --git a/lib/msf/base/sessions/meterpreter_ppc_linux.rb b/lib/msf/base/sessions/meterpreter_ppc_linux.rb index 8402d8f838..bc14e05bdb 100644 --- a/lib/msf/base/sessions/meterpreter_ppc_linux.rb +++ b/lib/msf/base/sessions/meterpreter_ppc_linux.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/meterpreter' module Msf module Sessions diff --git a/lib/msf/base/sessions/meterpreter_ppce500v2_linux.rb b/lib/msf/base/sessions/meterpreter_ppce500v2_linux.rb index 85f1b69b3b..fa5c06d5f7 100644 --- a/lib/msf/base/sessions/meterpreter_ppce500v2_linux.rb +++ b/lib/msf/base/sessions/meterpreter_ppce500v2_linux.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/meterpreter' module Msf module Sessions diff --git a/lib/msf/base/sessions/meterpreter_python.rb b/lib/msf/base/sessions/meterpreter_python.rb index f660361ad0..0f05a954e7 100644 --- a/lib/msf/base/sessions/meterpreter_python.rb +++ b/lib/msf/base/sessions/meterpreter_python.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/meterpreter' require 'msf/windows_error' module Msf diff --git a/lib/msf/base/sessions/meterpreter_x64_linux.rb b/lib/msf/base/sessions/meterpreter_x64_linux.rb index 98e61cdfbd..4932ff5884 100644 --- a/lib/msf/base/sessions/meterpreter_x64_linux.rb +++ b/lib/msf/base/sessions/meterpreter_x64_linux.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/meterpreter' module Msf module Sessions diff --git a/lib/msf/base/sessions/meterpreter_x64_osx.rb b/lib/msf/base/sessions/meterpreter_x64_osx.rb index 2e507e9055..49811c7f26 100644 --- a/lib/msf/base/sessions/meterpreter_x64_osx.rb +++ b/lib/msf/base/sessions/meterpreter_x64_osx.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/meterpreter' module Msf module Sessions diff --git a/lib/msf/base/sessions/meterpreter_x64_win.rb b/lib/msf/base/sessions/meterpreter_x64_win.rb index 14ad589896..844ab64fb1 100644 --- a/lib/msf/base/sessions/meterpreter_x64_win.rb +++ b/lib/msf/base/sessions/meterpreter_x64_win.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/meterpreter' require 'msf/windows_error' module Msf diff --git a/lib/msf/base/sessions/meterpreter_x86_bsd.rb b/lib/msf/base/sessions/meterpreter_x86_bsd.rb index bd6283e992..de9336f22e 100644 --- a/lib/msf/base/sessions/meterpreter_x86_bsd.rb +++ b/lib/msf/base/sessions/meterpreter_x86_bsd.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/meterpreter' module Msf module Sessions diff --git a/lib/msf/base/sessions/meterpreter_x86_linux.rb b/lib/msf/base/sessions/meterpreter_x86_linux.rb index ca83001525..ea162a117f 100644 --- a/lib/msf/base/sessions/meterpreter_x86_linux.rb +++ b/lib/msf/base/sessions/meterpreter_x86_linux.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/meterpreter' module Msf module Sessions diff --git a/lib/msf/base/sessions/meterpreter_x86_osx.rb b/lib/msf/base/sessions/meterpreter_x86_osx.rb index c7e25efac9..8befddb1f2 100644 --- a/lib/msf/base/sessions/meterpreter_x86_osx.rb +++ b/lib/msf/base/sessions/meterpreter_x86_osx.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/meterpreter' module Msf module Sessions diff --git a/lib/msf/base/sessions/meterpreter_x86_win.rb b/lib/msf/base/sessions/meterpreter_x86_win.rb index c2de448301..7659715806 100644 --- a/lib/msf/base/sessions/meterpreter_x86_win.rb +++ b/lib/msf/base/sessions/meterpreter_x86_win.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/meterpreter' require 'msf/windows_error' module Msf diff --git a/lib/msf/base/sessions/meterpreter_zarch_linux.rb b/lib/msf/base/sessions/meterpreter_zarch_linux.rb index 65ac0f1e96..6a5d56249b 100644 --- a/lib/msf/base/sessions/meterpreter_zarch_linux.rb +++ b/lib/msf/base/sessions/meterpreter_zarch_linux.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/meterpreter' module Msf module Sessions diff --git a/lib/msf/base/sessions/pingback.rb b/lib/msf/base/sessions/pingback.rb index ea38a422d4..600e5dc225 100644 --- a/lib/msf/base/sessions/pingback.rb +++ b/lib/msf/base/sessions/pingback.rb @@ -1,5 +1,4 @@ # -*- coding: binary -*- -require 'msf/base' module Msf module Sessions diff --git a/lib/msf/base/sessions/powershell.rb b/lib/msf/base/sessions/powershell.rb index 05fb67643d..0c823ec42f 100644 --- a/lib/msf/base/sessions/powershell.rb +++ b/lib/msf/base/sessions/powershell.rb @@ -1,5 +1,4 @@ # -*- coding: binary -*- -require 'msf/base/sessions/command_shell' class Msf::Sessions::PowerShell < Msf::Sessions::CommandShell # diff --git a/lib/msf/base/sessions/scriptable.rb b/lib/msf/base/sessions/scriptable.rb index 62cdd9d2f8..02dafca7d8 100644 --- a/lib/msf/base/sessions/scriptable.rb +++ b/lib/msf/base/sessions/scriptable.rb @@ -1,6 +1,6 @@ # -*- coding: binary -*- -module Msf::Session +module Msf::Sessions module Scriptable diff --git a/lib/msf/base/sessions/ssh_command_shell.rb b/lib/msf/base/sessions/ssh_command_shell.rb index d762cc5f2a..6a8d54d51b 100644 --- a/lib/msf/base/sessions/ssh_command_shell.rb +++ b/lib/msf/base/sessions/ssh_command_shell.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/command_shell' module Msf::Sessions diff --git a/lib/msf/base/sessions/tty.rb b/lib/msf/base/sessions/tty.rb index 241baaea94..71f187e7e3 100644 --- a/lib/msf/base/sessions/tty.rb +++ b/lib/msf/base/sessions/tty.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base' module Msf module Sessions diff --git a/lib/msf/base/sessions/vncinject.rb b/lib/msf/base/sessions/vncinject.rb index eaa7decf8f..5db95ce766 100644 --- a/lib/msf/base/sessions/vncinject.rb +++ b/lib/msf/base/sessions/vncinject.rb @@ -1,5 +1,4 @@ # -*- coding: binary -*- -require 'msf/base' require 'rex/services/local_relay' module Msf diff --git a/lib/msf/base/simple.rb b/lib/msf/base/simple.rb index f460f450b9..d2a500e06e 100644 --- a/lib/msf/base/simple.rb +++ b/lib/msf/base/simple.rb @@ -1,17 +1,5 @@ # -*- coding: binary -*- -# Buffer management -require 'msf/base/simple/buffer' -require 'msf/base/simple/statistics' -# Simplified module interfaces -require 'msf/base/simple/module' -require 'msf/base/simple/encoder' -require 'msf/base/simple/exploit' -require 'msf/base/simple/nop' -require 'msf/base/simple/payload' -require 'msf/base/simple/auxiliary' -require 'msf/base/simple/post' -require 'msf/base/simple/evasion' +module Msf::Simple -# Simplified framework interface -require 'msf/base/simple/framework' +end \ No newline at end of file diff --git a/lib/msf/base/simple/buffer.rb b/lib/msf/base/simple/buffer.rb index 1daaa8bdd4..6353f31181 100644 --- a/lib/msf/base/simple/buffer.rb +++ b/lib/msf/base/simple/buffer.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base' module Msf module Simple diff --git a/lib/msf/base/simple/evasion.rb b/lib/msf/base/simple/evasion.rb index 5d53f72043..04d1c1432a 100644 --- a/lib/msf/base/simple/evasion.rb +++ b/lib/msf/base/simple/evasion.rb @@ -1,5 +1,4 @@ # -*- coding: binary -*- -require 'msf/base' module Msf module Simple diff --git a/lib/msf/base/simple/exploit.rb b/lib/msf/base/simple/exploit.rb index ec78fd3c5b..c4696d7635 100644 --- a/lib/msf/base/simple/exploit.rb +++ b/lib/msf/base/simple/exploit.rb @@ -1,5 +1,4 @@ # -*- coding: binary -*- -require 'msf/base' module Msf module Simple diff --git a/lib/msf/base/simple/framework.rb b/lib/msf/base/simple/framework.rb index 48ab768e67..7a425b1144 100644 --- a/lib/msf/base/simple/framework.rb +++ b/lib/msf/base/simple/framework.rb @@ -1,7 +1,4 @@ # -*- coding: binary -*- -require 'msf/base/simple' -require 'msf/base/simple/framework/module_paths' -require 'msf/base/simple/noop_job_listener' require 'msf/core/constants' module Msf module Simple diff --git a/lib/msf/base/simple/module.rb b/lib/msf/base/simple/module.rb index a5b948d79a..6c8780e21b 100644 --- a/lib/msf/base/simple/module.rb +++ b/lib/msf/base/simple/module.rb @@ -1,5 +1,4 @@ # -*- coding: binary -*- -require 'msf/base' module Msf module Simple diff --git a/lib/msf/base/simple/nop.rb b/lib/msf/base/simple/nop.rb index 4d64657fdb..12862933e3 100644 --- a/lib/msf/base/simple/nop.rb +++ b/lib/msf/base/simple/nop.rb @@ -1,5 +1,4 @@ # -*- coding: binary -*- -require 'msf/base' module Msf module Simple diff --git a/lib/msf/base/simple/payload.rb b/lib/msf/base/simple/payload.rb index 48a4e563de..eb2778c10d 100644 --- a/lib/msf/base/simple/payload.rb +++ b/lib/msf/base/simple/payload.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base' module Msf module Simple diff --git a/lib/msf/core/auxiliary/command_shell.rb b/lib/msf/core/auxiliary/command_shell.rb index 33677b88cd..2b2a2bda87 100644 --- a/lib/msf/core/auxiliary/command_shell.rb +++ b/lib/msf/core/auxiliary/command_shell.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/command_shell_options' module Msf diff --git a/lib/msf/core/db_manager.rb b/lib/msf/core/db_manager.rb index 5c3b3a4c1c..47bffd9904 100644 --- a/lib/msf/core/db_manager.rb +++ b/lib/msf/core/db_manager.rb @@ -10,7 +10,6 @@ require 'rex/socket' # Project # require 'metasploit/framework/require' -require 'msf/base/config' require 'metasploit/framework/data_service' diff --git a/lib/msf/core/framework.rb b/lib/msf/core/framework.rb index 1555a516c2..a5ff81edc8 100644 --- a/lib/msf/core/framework.rb +++ b/lib/msf/core/framework.rb @@ -11,7 +11,6 @@ require 'monitor' # require 'metasploit/framework/version' -require 'msf/base/config' require 'msf/util' require 'msf/events' require 'rex/socket/ssl' diff --git a/lib/msf/core/handler/reverse_ssh.rb b/lib/msf/core/handler/reverse_ssh.rb index f1f59e096f..2edc081c11 100644 --- a/lib/msf/core/handler/reverse_ssh.rb +++ b/lib/msf/core/handler/reverse_ssh.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- require 'rex/proto/ssh' -require 'msf/base/sessions/ssh_command_shell' module Msf module Handler diff --git a/lib/msf/core/payload/android/meterpreter_loader.rb b/lib/msf/core/payload/android/meterpreter_loader.rb index 9749d13529..10a5fa7015 100644 --- a/lib/msf/core/payload/android/meterpreter_loader.rb +++ b/lib/msf/core/payload/android/meterpreter_loader.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/meterpreter_options' module Msf diff --git a/lib/msf/core/payload/java/meterpreter_loader.rb b/lib/msf/core/payload/java/meterpreter_loader.rb index 2a1d4c3846..230491e480 100644 --- a/lib/msf/core/payload/java/meterpreter_loader.rb +++ b/lib/msf/core/payload/java/meterpreter_loader.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/meterpreter_options' module Msf diff --git a/lib/msf/core/payload/python/meterpreter_loader.rb b/lib/msf/core/payload/python/meterpreter_loader.rb index 22fbfe9135..8c105c1d6b 100644 --- a/lib/msf/core/payload/python/meterpreter_loader.rb +++ b/lib/msf/core/payload/python/meterpreter_loader.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- -require 'msf/base/sessions/meterpreter_options' module Msf diff --git a/lib/msf/core/web_services/framework_extension.rb b/lib/msf/core/web_services/framework_extension.rb index 92822de3ac..457b658678 100644 --- a/lib/msf/core/web_services/framework_extension.rb +++ b/lib/msf/core/web_services/framework_extension.rb @@ -2,7 +2,6 @@ require 'sinatra/base' require 'uri' require 'metasploit/framework/data_service/remote/http/core' -require 'msf/base/simple/framework' module Msf::WebServices # Extension provides a Metasploit Framework instance to a Sinatra application. diff --git a/lib/msf/ui/console/command_dispatcher/payload.rb b/lib/msf/ui/console/command_dispatcher/payload.rb index ff9ec13fe5..556b7e7f52 100644 --- a/lib/msf/ui/console/command_dispatcher/payload.rb +++ b/lib/msf/ui/console/command_dispatcher/payload.rb @@ -1,6 +1,7 @@ # -*- coding: binary -*- require 'rex/parser/arguments' +require 'msf/util/exe' module Msf module Ui diff --git a/lib/msf/ui/console/driver.rb b/lib/msf/ui/console/driver.rb index d0d7983235..5f32146a50 100644 --- a/lib/msf/ui/console/driver.rb +++ b/lib/msf/ui/console/driver.rb @@ -1,5 +1,4 @@ # -*- coding: binary -*- -require 'msf/base' require 'msf/ui' require 'msf/ui/console/framework_event_manager' require 'msf/ui/console/command_dispatcher' diff --git a/lib/msf/ui/console/module_command_dispatcher.rb b/lib/msf/ui/console/module_command_dispatcher.rb index cbafc746fd..f59216c714 100644 --- a/lib/msf/ui/console/module_command_dispatcher.rb +++ b/lib/msf/ui/console/module_command_dispatcher.rb @@ -1,5 +1,6 @@ # -*- coding: binary -*- require 'msf/ui/console/command_dispatcher' +require 'rex/parser/arguments' module Msf module Ui diff --git a/lib/msf/ui/web/driver.rb b/lib/msf/ui/web/driver.rb index 108854e40f..a327c8b387 100644 --- a/lib/msf/ui/web/driver.rb +++ b/lib/msf/ui/web/driver.rb @@ -1,6 +1,5 @@ # -*- coding: binary -*- require 'rex/proto/http' -require 'msf/base' require 'msf/ui' module Msf diff --git a/lib/msf_autoload.rb b/lib/msf_autoload.rb index 126c28b4e8..93304180a1 100644 --- a/lib/msf_autoload.rb +++ b/lib/msf_autoload.rb @@ -15,6 +15,10 @@ class TempInflector < Zeitwerk::Inflector 'Osx' elsif basename == 'exe' && abspath.end_with?('lib/msf/core/exe', 'lib/msf/core/exe.rb') 'Exe' + elsif basename == 'json' && abspath.end_with?('lib/msf/base/serializer/json.rb') + 'Json' + elsif basename == 'powershell' && abspath.end_with?('lib/msf/base/sessions/powershell.rb') + 'PowerShell' else super end @@ -24,6 +28,8 @@ end loader = Zeitwerk::Loader.new loader.push_dir("#{__dir__}/msf/core/", namespace: Msf) loader.push_dir("#{__dir__}/../app/validators/") +loader.push_dir("#{__dir__}/msf/base/", namespace: Msf) + loader.ignore( "#{__dir__}/msf/core/constants.rb", @@ -40,7 +46,8 @@ loader.collapse( "#{__dir__}/msf/core/payload/osx/x64", "#{__dir__}/msf/core/payload/windows/x64", "#{__dir__}/msf/core/payload/linux/x64", - "#{__dir__}/msf/core/web_services/servlet" + "#{__dir__}/msf/core/web_services/servlet", + "#{__dir__}/msf/base", ) loader.inflector = TempInflector.new @@ -187,7 +194,35 @@ loader.inflector.inflect( 'wmap_scan_ssl' => 'WmapScanSSL', 'http_db_manager_service' => 'HttpDBManagerService', 'vyos' => 'VYOS', - 'windows_constants' => 'Windows_Constants' -) + 'windows_constants' => 'Windows_Constants', + 'tty' => 'TTY', + 'meterpreter_java' => 'Meterpreter_Java_Java', + 'meterpreter_android' => 'Meterpreter_Java_Android', + 'meterpreter_zarch_linux' => 'Meterpreter_zarch_Linux', + 'meterpreter_python' => 'Meterpreter_Python_Python', + 'meterpreter_ppce500v2_linux' => 'Meterpreter_ppce500v2_Linux', + 'meterpreter_x86_osx' => 'Meterpreter_x86_OSX', + 'meterpreter_armbe_linux' => 'Meterpreter_armbe_Linux', + 'meterpreter_ppc64le_linux' => 'Meterpreter_ppc64le_Linux', + 'meterpreter_x64_linux' => 'Meterpreter_x64_Linux', + 'meterpreter_armle_linux' => 'Meterpreter_armle_Linux', + 'meterpreter_aarch64_linux' => 'Meterpreter_aarch64_Linux', + 'meterpreter_x86_win' => 'Meterpreter_x86_Win', + 'meterpreter_armle_apple_ios' => 'Meterpreter_armle_Apple_iOS', + 'meterpreter_mipsle_linux' => 'Meterpreter_mipsle_Linux', + 'meterpreter_x86_bsd' => 'Meterpreter_x86_BSD', + 'meterpreter_mips64_linux' => 'Meterpreter_mips64_Linux', + 'meterpreter_x86_linux' => 'Meterpreter_x86_Linux', + 'meterpreter_mipsbe_linux' => 'Meterpreter_mipsbe_Linux', + 'meterpreter_aarch64_apple_ios' => 'Meterpreter_aarch64_Apple_iOS', + 'meterpreter_x64_osx' => 'Meterpreter_x64_OSX', + 'meterpreter_ppc_linux' => 'Meterpreter_ppc_Linux', + 'meterpreter_x64_win' => 'Meterpreter_x64_Win', + 'meterpreter_php' => 'Meterpreter_Php_Php', + 'meterpreter_multi' => 'Meterpreter_Multi', + 'hwbridge' => 'HWBridge', + 'vncinject_options' => 'VncInjectOptions', + 'vncinject' => 'VncInject', + ) loader.setup # ready! diff --git a/lib/msfenv.rb b/lib/msfenv.rb index 98632e456a..0ec9243105 100644 --- a/lib/msfenv.rb +++ b/lib/msfenv.rb @@ -16,4 +16,5 @@ require config.join('boot') unless defined?(Rails) && !Rails.application.nil? require config.join('environment') end +require 'msf/core' require 'msf_autoload' diff --git a/lib/rex/logging/log_dispatcher.rb b/lib/rex/logging/log_dispatcher.rb index ddac0de9c9..d16a821652 100644 --- a/lib/rex/logging/log_dispatcher.rb +++ b/lib/rex/logging/log_dispatcher.rb @@ -1,5 +1,6 @@ # -*- coding: binary -*- require 'rex/sync' +require 'rex/logging' require 'rex/logging/log_sink' require 'rex/logging/log_sink_factory' diff --git a/lib/rex/logging/sinks/stdout_without_timestamps.rb b/lib/rex/logging/sinks/stdout_without_timestamps.rb index a9acbe27f2..e0e0279fec 100644 --- a/lib/rex/logging/sinks/stdout_without_timestamps.rb +++ b/lib/rex/logging/sinks/stdout_without_timestamps.rb @@ -1,4 +1,7 @@ # -*- coding: binary -*- + +require 'rex/logging' + module Rex module Logging module Sinks diff --git a/lib/rex/logging/sinks/stream.rb b/lib/rex/logging/sinks/stream.rb index 452e9d184e..392701265d 100644 --- a/lib/rex/logging/sinks/stream.rb +++ b/lib/rex/logging/sinks/stream.rb @@ -1,4 +1,7 @@ # -*- coding: binary -*- + +require 'rex/logging' + module Rex module Logging module Sinks diff --git a/lib/rex/logging/sinks/timestamp_colorless_flatfile.rb b/lib/rex/logging/sinks/timestamp_colorless_flatfile.rb index 5c42b44657..8681d696c2 100644 --- a/lib/rex/logging/sinks/timestamp_colorless_flatfile.rb +++ b/lib/rex/logging/sinks/timestamp_colorless_flatfile.rb @@ -1,4 +1,7 @@ # -*- coding: binary -*- + +require 'rex/logging' + module Rex module Logging module Sinks diff --git a/lib/rex/post/hwbridge/ui/console/command_dispatcher.rb b/lib/rex/post/hwbridge/ui/console/command_dispatcher.rb index 978af81858..58dc813eab 100644 --- a/lib/rex/post/hwbridge/ui/console/command_dispatcher.rb +++ b/lib/rex/post/hwbridge/ui/console/command_dispatcher.rb @@ -58,11 +58,6 @@ module Console::CommandDispatcher return @msf_loaded unless @msf_loaded.nil? # if we get here we must not have initialized yet - if client.framework - # We have a framework instance so the msf libraries should be - # available. Load up the ones we're going to use - require 'msf/base/serializer/readable_text' - end @msf_loaded = !!(client.framework) @msf_loaded end diff --git a/lib/rex/post/meterpreter/ui/console/command_dispatcher.rb b/lib/rex/post/meterpreter/ui/console/command_dispatcher.rb index b981342bb5..6824dc12e2 100644 --- a/lib/rex/post/meterpreter/ui/console/command_dispatcher.rb +++ b/lib/rex/post/meterpreter/ui/console/command_dispatcher.rb @@ -75,11 +75,6 @@ module Console::CommandDispatcher return @msf_loaded unless @msf_loaded.nil? # if we get here we must not have initialized yet - if client.framework - # We have a framework instance so the msf libraries should be - # available. Load up the ones we're going to use - require 'msf/base/serializer/readable_text' - end @msf_loaded = !!(client.framework) @msf_loaded end diff --git a/modules/auxiliary/client/hwbridge/connect.rb b/modules/auxiliary/client/hwbridge/connect.rb index 79ed4e7259..262fc961f2 100644 --- a/modules/auxiliary/client/hwbridge/connect.rb +++ b/modules/auxiliary/client/hwbridge/connect.rb @@ -3,7 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/hwbridge' class MetasploitModule < Msf::Auxiliary include Msf::Auxiliary::Report diff --git a/modules/payloads/singles/aix/ppc/shell_bind_tcp.rb b/modules/payloads/singles/aix/ppc/shell_bind_tcp.rb index db9ac06744..4bd8c3e5ac 100644 --- a/modules/payloads/singles/aix/ppc/shell_bind_tcp.rb +++ b/modules/payloads/singles/aix/ppc/shell_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/aix/ppc/shell_find_port.rb b/modules/payloads/singles/aix/ppc/shell_find_port.rb index 3811d5168b..8c08df7aa4 100644 --- a/modules/payloads/singles/aix/ppc/shell_find_port.rb +++ b/modules/payloads/singles/aix/ppc/shell_find_port.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/aix/ppc/shell_interact.rb b/modules/payloads/singles/aix/ppc/shell_interact.rb index b23a1c029d..3a00c2e3ea 100644 --- a/modules/payloads/singles/aix/ppc/shell_interact.rb +++ b/modules/payloads/singles/aix/ppc/shell_interact.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/aix/ppc/shell_reverse_tcp.rb b/modules/payloads/singles/aix/ppc/shell_reverse_tcp.rb index dc6364de13..c66a852566 100644 --- a/modules/payloads/singles/aix/ppc/shell_reverse_tcp.rb +++ b/modules/payloads/singles/aix/ppc/shell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/android/meterpreter_reverse_http.rb b/modules/payloads/singles/android/meterpreter_reverse_http.rb index 7bd65f5804..4f7f87b9ab 100644 --- a/modules/payloads/singles/android/meterpreter_reverse_http.rb +++ b/modules/payloads/singles/android/meterpreter_reverse_http.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_android' -require 'msf/base/sessions/meterpreter_options' require 'rex/payloads/meterpreter/config' module MetasploitModule diff --git a/modules/payloads/singles/android/meterpreter_reverse_https.rb b/modules/payloads/singles/android/meterpreter_reverse_https.rb index d42a6f67cd..cfb9e36636 100644 --- a/modules/payloads/singles/android/meterpreter_reverse_https.rb +++ b/modules/payloads/singles/android/meterpreter_reverse_https.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_android' -require 'msf/base/sessions/meterpreter_options' require 'rex/payloads/meterpreter/config' module MetasploitModule diff --git a/modules/payloads/singles/android/meterpreter_reverse_tcp.rb b/modules/payloads/singles/android/meterpreter_reverse_tcp.rb index 5140024df5..9ebab6325e 100644 --- a/modules/payloads/singles/android/meterpreter_reverse_tcp.rb +++ b/modules/payloads/singles/android/meterpreter_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_android' -require 'msf/base/sessions/meterpreter_options' require 'rex/payloads/meterpreter/config' module MetasploitModule diff --git a/modules/payloads/singles/apple_ios/aarch64/meterpreter_reverse_http.rb b/modules/payloads/singles/apple_ios/aarch64/meterpreter_reverse_http.rb index 0602c6b041..a19178ad3e 100644 --- a/modules/payloads/singles/apple_ios/aarch64/meterpreter_reverse_http.rb +++ b/modules/payloads/singles/apple_ios/aarch64/meterpreter_reverse_http.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_aarch64_apple_ios' module MetasploitModule diff --git a/modules/payloads/singles/apple_ios/aarch64/meterpreter_reverse_https.rb b/modules/payloads/singles/apple_ios/aarch64/meterpreter_reverse_https.rb index 02333b5505..d601814b75 100644 --- a/modules/payloads/singles/apple_ios/aarch64/meterpreter_reverse_https.rb +++ b/modules/payloads/singles/apple_ios/aarch64/meterpreter_reverse_https.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_aarch64_apple_ios' module MetasploitModule diff --git a/modules/payloads/singles/apple_ios/aarch64/meterpreter_reverse_tcp.rb b/modules/payloads/singles/apple_ios/aarch64/meterpreter_reverse_tcp.rb index 641cd6f01a..afbffc9a5c 100644 --- a/modules/payloads/singles/apple_ios/aarch64/meterpreter_reverse_tcp.rb +++ b/modules/payloads/singles/apple_ios/aarch64/meterpreter_reverse_tcp.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_aarch64_apple_ios' module MetasploitModule diff --git a/modules/payloads/singles/apple_ios/aarch64/shell_reverse_tcp.rb b/modules/payloads/singles/apple_ios/aarch64/shell_reverse_tcp.rb index b5996ce93b..1c519a400d 100644 --- a/modules/payloads/singles/apple_ios/aarch64/shell_reverse_tcp.rb +++ b/modules/payloads/singles/apple_ios/aarch64/shell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/apple_ios/armle/meterpreter_reverse_http.rb b/modules/payloads/singles/apple_ios/armle/meterpreter_reverse_http.rb index 533497ff74..13f2dc3c88 100644 --- a/modules/payloads/singles/apple_ios/armle/meterpreter_reverse_http.rb +++ b/modules/payloads/singles/apple_ios/armle/meterpreter_reverse_http.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_armle_apple_ios' module MetasploitModule diff --git a/modules/payloads/singles/apple_ios/armle/meterpreter_reverse_https.rb b/modules/payloads/singles/apple_ios/armle/meterpreter_reverse_https.rb index 341ce74df2..f68fc71bf9 100644 --- a/modules/payloads/singles/apple_ios/armle/meterpreter_reverse_https.rb +++ b/modules/payloads/singles/apple_ios/armle/meterpreter_reverse_https.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_armle_apple_ios' module MetasploitModule diff --git a/modules/payloads/singles/apple_ios/armle/meterpreter_reverse_tcp.rb b/modules/payloads/singles/apple_ios/armle/meterpreter_reverse_tcp.rb index 4931d4ef2c..5076a268e1 100644 --- a/modules/payloads/singles/apple_ios/armle/meterpreter_reverse_tcp.rb +++ b/modules/payloads/singles/apple_ios/armle/meterpreter_reverse_tcp.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_armle_apple_ios' module MetasploitModule diff --git a/modules/payloads/singles/bsd/sparc/shell_bind_tcp.rb b/modules/payloads/singles/bsd/sparc/shell_bind_tcp.rb index daa187f083..74443d8b57 100644 --- a/modules/payloads/singles/bsd/sparc/shell_bind_tcp.rb +++ b/modules/payloads/singles/bsd/sparc/shell_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/bsd/sparc/shell_reverse_tcp.rb b/modules/payloads/singles/bsd/sparc/shell_reverse_tcp.rb index 1c6ecd4426..1f2f8556da 100644 --- a/modules/payloads/singles/bsd/sparc/shell_reverse_tcp.rb +++ b/modules/payloads/singles/bsd/sparc/shell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/bsd/x64/shell_bind_ipv6_tcp.rb b/modules/payloads/singles/bsd/x64/shell_bind_ipv6_tcp.rb index e1e274bdcf..adaa756126 100644 --- a/modules/payloads/singles/bsd/x64/shell_bind_ipv6_tcp.rb +++ b/modules/payloads/singles/bsd/x64/shell_bind_ipv6_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/bsd/x64/shell_bind_tcp_small.rb b/modules/payloads/singles/bsd/x64/shell_bind_tcp_small.rb index 4853dcce21..3a29f4afb2 100644 --- a/modules/payloads/singles/bsd/x64/shell_bind_tcp_small.rb +++ b/modules/payloads/singles/bsd/x64/shell_bind_tcp_small.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/bsd/x64/shell_reverse_ipv6_tcp.rb b/modules/payloads/singles/bsd/x64/shell_reverse_ipv6_tcp.rb index d5fce8817e..d8e046bb7d 100644 --- a/modules/payloads/singles/bsd/x64/shell_reverse_ipv6_tcp.rb +++ b/modules/payloads/singles/bsd/x64/shell_reverse_ipv6_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/bsd/x64/shell_reverse_tcp_small.rb b/modules/payloads/singles/bsd/x64/shell_reverse_tcp_small.rb index ce4184021e..83328e3f0f 100644 --- a/modules/payloads/singles/bsd/x64/shell_reverse_tcp_small.rb +++ b/modules/payloads/singles/bsd/x64/shell_reverse_tcp_small.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/bsd/x86/metsvc_bind_tcp.rb b/modules/payloads/singles/bsd/x86/metsvc_bind_tcp.rb index 70e74b55e9..aef536e39f 100644 --- a/modules/payloads/singles/bsd/x86/metsvc_bind_tcp.rb +++ b/modules/payloads/singles/bsd/x86/metsvc_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_x86_bsd' -require 'msf/base/sessions/meterpreter_options' module MetasploitModule diff --git a/modules/payloads/singles/bsd/x86/metsvc_reverse_tcp.rb b/modules/payloads/singles/bsd/x86/metsvc_reverse_tcp.rb index 8356b3edb5..e8e78d1f49 100644 --- a/modules/payloads/singles/bsd/x86/metsvc_reverse_tcp.rb +++ b/modules/payloads/singles/bsd/x86/metsvc_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_x86_bsd' -require 'msf/base/sessions/meterpreter_options' module MetasploitModule diff --git a/modules/payloads/singles/bsd/x86/shell_bind_tcp.rb b/modules/payloads/singles/bsd/x86/shell_bind_tcp.rb index 5c8596362e..08ff6a764c 100644 --- a/modules/payloads/singles/bsd/x86/shell_bind_tcp.rb +++ b/modules/payloads/singles/bsd/x86/shell_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/bsd/x86/shell_bind_tcp_ipv6.rb b/modules/payloads/singles/bsd/x86/shell_bind_tcp_ipv6.rb index eebc956341..e394ac404e 100644 --- a/modules/payloads/singles/bsd/x86/shell_bind_tcp_ipv6.rb +++ b/modules/payloads/singles/bsd/x86/shell_bind_tcp_ipv6.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/bsd/x86/shell_find_port.rb b/modules/payloads/singles/bsd/x86/shell_find_port.rb index 034acd4030..20d1b8c0c6 100644 --- a/modules/payloads/singles/bsd/x86/shell_find_port.rb +++ b/modules/payloads/singles/bsd/x86/shell_find_port.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/bsd/x86/shell_find_tag.rb b/modules/payloads/singles/bsd/x86/shell_find_tag.rb index 43dfb81a21..3087258930 100644 --- a/modules/payloads/singles/bsd/x86/shell_find_tag.rb +++ b/modules/payloads/singles/bsd/x86/shell_find_tag.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/bsd/x86/shell_reverse_tcp.rb b/modules/payloads/singles/bsd/x86/shell_reverse_tcp.rb index f101748c2f..458904e26f 100644 --- a/modules/payloads/singles/bsd/x86/shell_reverse_tcp.rb +++ b/modules/payloads/singles/bsd/x86/shell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/bsd/x86/shell_reverse_tcp_ipv6.rb b/modules/payloads/singles/bsd/x86/shell_reverse_tcp_ipv6.rb index 0147281bdc..14508ff38c 100644 --- a/modules/payloads/singles/bsd/x86/shell_reverse_tcp_ipv6.rb +++ b/modules/payloads/singles/bsd/x86/shell_reverse_tcp_ipv6.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/bsdi/x86/shell_bind_tcp.rb b/modules/payloads/singles/bsdi/x86/shell_bind_tcp.rb index a442734ee3..056d087035 100644 --- a/modules/payloads/singles/bsdi/x86/shell_bind_tcp.rb +++ b/modules/payloads/singles/bsdi/x86/shell_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/bsdi/x86/shell_find_port.rb b/modules/payloads/singles/bsdi/x86/shell_find_port.rb index 6d920c21bf..2a47e4e8cb 100644 --- a/modules/payloads/singles/bsdi/x86/shell_find_port.rb +++ b/modules/payloads/singles/bsdi/x86/shell_find_port.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/bsdi/x86/shell_reverse_tcp.rb b/modules/payloads/singles/bsdi/x86/shell_reverse_tcp.rb index 08ed266b82..b43c8e7a36 100644 --- a/modules/payloads/singles/bsdi/x86/shell_reverse_tcp.rb +++ b/modules/payloads/singles/bsdi/x86/shell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/mainframe/apf_privesc_jcl.rb b/modules/payloads/singles/cmd/mainframe/apf_privesc_jcl.rb index fa3ce7853a..e311e18974 100644 --- a/modules/payloads/singles/cmd/mainframe/apf_privesc_jcl.rb +++ b/modules/payloads/singles/cmd/mainframe/apf_privesc_jcl.rb @@ -18,8 +18,6 @@ # Auto scan for writable APF authorized library. ## -require 'msf/base/sessions/mainframe_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule CachedSize = 3156 diff --git a/modules/payloads/singles/cmd/mainframe/bind_shell_jcl.rb b/modules/payloads/singles/cmd/mainframe/bind_shell_jcl.rb index 94b77fca28..0dd281f871 100644 --- a/modules/payloads/singles/cmd/mainframe/bind_shell_jcl.rb +++ b/modules/payloads/singles/cmd/mainframe/bind_shell_jcl.rb @@ -8,8 +8,6 @@ # on the system as JCL to JES2 ## -require 'msf/base/sessions/mainframe_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule CachedSize = 10712 diff --git a/modules/payloads/singles/cmd/mainframe/generic_jcl.rb b/modules/payloads/singles/cmd/mainframe/generic_jcl.rb index 5007c36a01..080227df57 100644 --- a/modules/payloads/singles/cmd/mainframe/generic_jcl.rb +++ b/modules/payloads/singles/cmd/mainframe/generic_jcl.rb @@ -12,8 +12,6 @@ # for more information on IEFBR14 ## -require 'msf/base/sessions/mainframe_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule CachedSize = 150 diff --git a/modules/payloads/singles/cmd/mainframe/reverse_shell_jcl.rb b/modules/payloads/singles/cmd/mainframe/reverse_shell_jcl.rb index 2a0a1ba38d..d010a608bf 100644 --- a/modules/payloads/singles/cmd/mainframe/reverse_shell_jcl.rb +++ b/modules/payloads/singles/cmd/mainframe/reverse_shell_jcl.rb @@ -8,8 +8,6 @@ # on the system as JCL to JES2 ## -require 'msf/base/sessions/mainframe_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule CachedSize = 8993 diff --git a/modules/payloads/singles/cmd/unix/bind_awk.rb b/modules/payloads/singles/cmd/unix/bind_awk.rb index a047bb04fa..8c42a54c43 100644 --- a/modules/payloads/singles/cmd/unix/bind_awk.rb +++ b/modules/payloads/singles/cmd/unix/bind_awk.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/bind_busybox_telnetd.rb b/modules/payloads/singles/cmd/unix/bind_busybox_telnetd.rb index 1eb911874d..0bc2695430 100644 --- a/modules/payloads/singles/cmd/unix/bind_busybox_telnetd.rb +++ b/modules/payloads/singles/cmd/unix/bind_busybox_telnetd.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/bind_inetd.rb b/modules/payloads/singles/cmd/unix/bind_inetd.rb index b76480187f..9b1a1de845 100644 --- a/modules/payloads/singles/cmd/unix/bind_inetd.rb +++ b/modules/payloads/singles/cmd/unix/bind_inetd.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/bind_jjs.rb b/modules/payloads/singles/cmd/unix/bind_jjs.rb index 257200726c..0262ad8d8d 100644 --- a/modules/payloads/singles/cmd/unix/bind_jjs.rb +++ b/modules/payloads/singles/cmd/unix/bind_jjs.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/bind_lua.rb b/modules/payloads/singles/cmd/unix/bind_lua.rb index b8f13a9438..86db882c63 100644 --- a/modules/payloads/singles/cmd/unix/bind_lua.rb +++ b/modules/payloads/singles/cmd/unix/bind_lua.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/bind_netcat.rb b/modules/payloads/singles/cmd/unix/bind_netcat.rb index 08d5167b37..c55a3ffe61 100644 --- a/modules/payloads/singles/cmd/unix/bind_netcat.rb +++ b/modules/payloads/singles/cmd/unix/bind_netcat.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/bind_netcat_gaping.rb b/modules/payloads/singles/cmd/unix/bind_netcat_gaping.rb index 3c75ea6a9a..f07112254a 100644 --- a/modules/payloads/singles/cmd/unix/bind_netcat_gaping.rb +++ b/modules/payloads/singles/cmd/unix/bind_netcat_gaping.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/bind_netcat_gaping_ipv6.rb b/modules/payloads/singles/cmd/unix/bind_netcat_gaping_ipv6.rb index 8734d29917..d337ccffb4 100644 --- a/modules/payloads/singles/cmd/unix/bind_netcat_gaping_ipv6.rb +++ b/modules/payloads/singles/cmd/unix/bind_netcat_gaping_ipv6.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/bind_nodejs.rb b/modules/payloads/singles/cmd/unix/bind_nodejs.rb index bd8ac95717..1ba951728e 100644 --- a/modules/payloads/singles/cmd/unix/bind_nodejs.rb +++ b/modules/payloads/singles/cmd/unix/bind_nodejs.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/bind_perl.rb b/modules/payloads/singles/cmd/unix/bind_perl.rb index 39b5f2d1d1..6bea28a6df 100644 --- a/modules/payloads/singles/cmd/unix/bind_perl.rb +++ b/modules/payloads/singles/cmd/unix/bind_perl.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/bind_perl_ipv6.rb b/modules/payloads/singles/cmd/unix/bind_perl_ipv6.rb index 60fc79ec25..9ca4d7bb87 100644 --- a/modules/payloads/singles/cmd/unix/bind_perl_ipv6.rb +++ b/modules/payloads/singles/cmd/unix/bind_perl_ipv6.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/bind_r.rb b/modules/payloads/singles/cmd/unix/bind_r.rb index b19bac856c..1df342901e 100644 --- a/modules/payloads/singles/cmd/unix/bind_r.rb +++ b/modules/payloads/singles/cmd/unix/bind_r.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/bind_ruby.rb b/modules/payloads/singles/cmd/unix/bind_ruby.rb index ee176a3297..4d005a632f 100644 --- a/modules/payloads/singles/cmd/unix/bind_ruby.rb +++ b/modules/payloads/singles/cmd/unix/bind_ruby.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/bind_ruby_ipv6.rb b/modules/payloads/singles/cmd/unix/bind_ruby_ipv6.rb index 801c0516f0..1ff6c23060 100644 --- a/modules/payloads/singles/cmd/unix/bind_ruby_ipv6.rb +++ b/modules/payloads/singles/cmd/unix/bind_ruby_ipv6.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/bind_socat_udp.rb b/modules/payloads/singles/cmd/unix/bind_socat_udp.rb index 89f33a00c0..160788ee04 100644 --- a/modules/payloads/singles/cmd/unix/bind_socat_udp.rb +++ b/modules/payloads/singles/cmd/unix/bind_socat_udp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/bind_stub.rb b/modules/payloads/singles/cmd/unix/bind_stub.rb index 43e783a7c7..a252582a87 100644 --- a/modules/payloads/singles/cmd/unix/bind_stub.rb +++ b/modules/payloads/singles/cmd/unix/bind_stub.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/bind_zsh.rb b/modules/payloads/singles/cmd/unix/bind_zsh.rb index ff425405e5..e7a213883c 100644 --- a/modules/payloads/singles/cmd/unix/bind_zsh.rb +++ b/modules/payloads/singles/cmd/unix/bind_zsh.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/generic.rb b/modules/payloads/singles/cmd/unix/generic.rb index 1537c58abc..465a578e42 100644 --- a/modules/payloads/singles/cmd/unix/generic.rb +++ b/modules/payloads/singles/cmd/unix/generic.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/interact.rb b/modules/payloads/singles/cmd/unix/interact.rb index 4251699a93..3a13333f13 100644 --- a/modules/payloads/singles/cmd/unix/interact.rb +++ b/modules/payloads/singles/cmd/unix/interact.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/pingback_bind.rb b/modules/payloads/singles/cmd/unix/pingback_bind.rb index f793c84700..e9c7a0856d 100644 --- a/modules/payloads/singles/cmd/unix/pingback_bind.rb +++ b/modules/payloads/singles/cmd/unix/pingback_bind.rb @@ -3,7 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/pingback' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/pingback_reverse.rb b/modules/payloads/singles/cmd/unix/pingback_reverse.rb index f59dcb3652..e1b9e86475 100644 --- a/modules/payloads/singles/cmd/unix/pingback_reverse.rb +++ b/modules/payloads/singles/cmd/unix/pingback_reverse.rb @@ -3,7 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/pingback' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/reverse.rb b/modules/payloads/singles/cmd/unix/reverse.rb index 7a7fb90f6b..ab1494300c 100644 --- a/modules/payloads/singles/cmd/unix/reverse.rb +++ b/modules/payloads/singles/cmd/unix/reverse.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/reverse_awk.rb b/modules/payloads/singles/cmd/unix/reverse_awk.rb index 042bd78656..ecb165a5bd 100644 --- a/modules/payloads/singles/cmd/unix/reverse_awk.rb +++ b/modules/payloads/singles/cmd/unix/reverse_awk.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/reverse_bash.rb b/modules/payloads/singles/cmd/unix/reverse_bash.rb index 6696bc5f83..6a92a95620 100644 --- a/modules/payloads/singles/cmd/unix/reverse_bash.rb +++ b/modules/payloads/singles/cmd/unix/reverse_bash.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/reverse_bash_telnet_ssl.rb b/modules/payloads/singles/cmd/unix/reverse_bash_telnet_ssl.rb index 65b5b74952..57358f6d0c 100644 --- a/modules/payloads/singles/cmd/unix/reverse_bash_telnet_ssl.rb +++ b/modules/payloads/singles/cmd/unix/reverse_bash_telnet_ssl.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/reverse_bash_udp.rb b/modules/payloads/singles/cmd/unix/reverse_bash_udp.rb index e9fb658b1f..973d070663 100644 --- a/modules/payloads/singles/cmd/unix/reverse_bash_udp.rb +++ b/modules/payloads/singles/cmd/unix/reverse_bash_udp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/reverse_jjs.rb b/modules/payloads/singles/cmd/unix/reverse_jjs.rb index 9cd748b0fb..135afd66a7 100644 --- a/modules/payloads/singles/cmd/unix/reverse_jjs.rb +++ b/modules/payloads/singles/cmd/unix/reverse_jjs.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/reverse_ksh.rb b/modules/payloads/singles/cmd/unix/reverse_ksh.rb index ff81757397..b91af2e0b6 100644 --- a/modules/payloads/singles/cmd/unix/reverse_ksh.rb +++ b/modules/payloads/singles/cmd/unix/reverse_ksh.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/reverse_lua.rb b/modules/payloads/singles/cmd/unix/reverse_lua.rb index c1bb58f296..6076b1bd59 100644 --- a/modules/payloads/singles/cmd/unix/reverse_lua.rb +++ b/modules/payloads/singles/cmd/unix/reverse_lua.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/reverse_ncat_ssl.rb b/modules/payloads/singles/cmd/unix/reverse_ncat_ssl.rb index 3f673ed759..9f6f37e5f2 100644 --- a/modules/payloads/singles/cmd/unix/reverse_ncat_ssl.rb +++ b/modules/payloads/singles/cmd/unix/reverse_ncat_ssl.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/reverse_netcat.rb b/modules/payloads/singles/cmd/unix/reverse_netcat.rb index 371ce525f7..0f9876835f 100644 --- a/modules/payloads/singles/cmd/unix/reverse_netcat.rb +++ b/modules/payloads/singles/cmd/unix/reverse_netcat.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/reverse_netcat_gaping.rb b/modules/payloads/singles/cmd/unix/reverse_netcat_gaping.rb index 6dd57b0086..1045901eb4 100644 --- a/modules/payloads/singles/cmd/unix/reverse_netcat_gaping.rb +++ b/modules/payloads/singles/cmd/unix/reverse_netcat_gaping.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/reverse_nodejs.rb b/modules/payloads/singles/cmd/unix/reverse_nodejs.rb index 5c1a4f367a..9665756471 100644 --- a/modules/payloads/singles/cmd/unix/reverse_nodejs.rb +++ b/modules/payloads/singles/cmd/unix/reverse_nodejs.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/reverse_openssl.rb b/modules/payloads/singles/cmd/unix/reverse_openssl.rb index 28010b680c..2a6c392386 100644 --- a/modules/payloads/singles/cmd/unix/reverse_openssl.rb +++ b/modules/payloads/singles/cmd/unix/reverse_openssl.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/reverse_perl.rb b/modules/payloads/singles/cmd/unix/reverse_perl.rb index 4070a151ef..05f3a0caca 100644 --- a/modules/payloads/singles/cmd/unix/reverse_perl.rb +++ b/modules/payloads/singles/cmd/unix/reverse_perl.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/reverse_perl_ssl.rb b/modules/payloads/singles/cmd/unix/reverse_perl_ssl.rb index 1066209f73..44e7f6e2c0 100644 --- a/modules/payloads/singles/cmd/unix/reverse_perl_ssl.rb +++ b/modules/payloads/singles/cmd/unix/reverse_perl_ssl.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/reverse_php_ssl.rb b/modules/payloads/singles/cmd/unix/reverse_php_ssl.rb index 7b86005ea4..c1f5827266 100644 --- a/modules/payloads/singles/cmd/unix/reverse_php_ssl.rb +++ b/modules/payloads/singles/cmd/unix/reverse_php_ssl.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/reverse_python.rb b/modules/payloads/singles/cmd/unix/reverse_python.rb index 3f078fc2b3..48f7c94f66 100644 --- a/modules/payloads/singles/cmd/unix/reverse_python.rb +++ b/modules/payloads/singles/cmd/unix/reverse_python.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/reverse_python_ssl.rb b/modules/payloads/singles/cmd/unix/reverse_python_ssl.rb index 9c38f5ddda..c353de479b 100644 --- a/modules/payloads/singles/cmd/unix/reverse_python_ssl.rb +++ b/modules/payloads/singles/cmd/unix/reverse_python_ssl.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/reverse_r.rb b/modules/payloads/singles/cmd/unix/reverse_r.rb index e10886f7b1..6a839bcdf1 100644 --- a/modules/payloads/singles/cmd/unix/reverse_r.rb +++ b/modules/payloads/singles/cmd/unix/reverse_r.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/reverse_ruby.rb b/modules/payloads/singles/cmd/unix/reverse_ruby.rb index ec6fb81733..ab239f1a8d 100644 --- a/modules/payloads/singles/cmd/unix/reverse_ruby.rb +++ b/modules/payloads/singles/cmd/unix/reverse_ruby.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/reverse_ruby_ssl.rb b/modules/payloads/singles/cmd/unix/reverse_ruby_ssl.rb index b83f20e52c..b47a0b5de0 100644 --- a/modules/payloads/singles/cmd/unix/reverse_ruby_ssl.rb +++ b/modules/payloads/singles/cmd/unix/reverse_ruby_ssl.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/reverse_socat_udp.rb b/modules/payloads/singles/cmd/unix/reverse_socat_udp.rb index 6c25094ada..f5ea8597f8 100644 --- a/modules/payloads/singles/cmd/unix/reverse_socat_udp.rb +++ b/modules/payloads/singles/cmd/unix/reverse_socat_udp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/reverse_ssh.rb b/modules/payloads/singles/cmd/unix/reverse_ssh.rb index edb27e4d27..ea62ac0484 100644 --- a/modules/payloads/singles/cmd/unix/reverse_ssh.rb +++ b/modules/payloads/singles/cmd/unix/reverse_ssh.rb @@ -4,8 +4,6 @@ ## require 'msf/core/handler/reverse_ssh' -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/reverse_ssl_double_telnet.rb b/modules/payloads/singles/cmd/unix/reverse_ssl_double_telnet.rb index f449744b04..fdd26c4afa 100644 --- a/modules/payloads/singles/cmd/unix/reverse_ssl_double_telnet.rb +++ b/modules/payloads/singles/cmd/unix/reverse_ssl_double_telnet.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/reverse_stub.rb b/modules/payloads/singles/cmd/unix/reverse_stub.rb index 36f8a67ccc..486497c5a1 100644 --- a/modules/payloads/singles/cmd/unix/reverse_stub.rb +++ b/modules/payloads/singles/cmd/unix/reverse_stub.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/reverse_tclsh.rb b/modules/payloads/singles/cmd/unix/reverse_tclsh.rb index d299db257f..ef7ae2ec9c 100644 --- a/modules/payloads/singles/cmd/unix/reverse_tclsh.rb +++ b/modules/payloads/singles/cmd/unix/reverse_tclsh.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/unix/reverse_zsh.rb b/modules/payloads/singles/cmd/unix/reverse_zsh.rb index 179f5c038f..2233584be9 100644 --- a/modules/payloads/singles/cmd/unix/reverse_zsh.rb +++ b/modules/payloads/singles/cmd/unix/reverse_zsh.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/windows/adduser.rb b/modules/payloads/singles/cmd/windows/adduser.rb index 2f8425622c..be88691f29 100644 --- a/modules/payloads/singles/cmd/windows/adduser.rb +++ b/modules/payloads/singles/cmd/windows/adduser.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/windows/bind_lua.rb b/modules/payloads/singles/cmd/windows/bind_lua.rb index df79cdaf0d..e54f204bc8 100644 --- a/modules/payloads/singles/cmd/windows/bind_lua.rb +++ b/modules/payloads/singles/cmd/windows/bind_lua.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/windows/bind_perl.rb b/modules/payloads/singles/cmd/windows/bind_perl.rb index 96e80d3715..d3c6de5b3c 100644 --- a/modules/payloads/singles/cmd/windows/bind_perl.rb +++ b/modules/payloads/singles/cmd/windows/bind_perl.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/windows/bind_perl_ipv6.rb b/modules/payloads/singles/cmd/windows/bind_perl_ipv6.rb index 5f1f19687f..5210fa3058 100644 --- a/modules/payloads/singles/cmd/windows/bind_perl_ipv6.rb +++ b/modules/payloads/singles/cmd/windows/bind_perl_ipv6.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/windows/bind_ruby.rb b/modules/payloads/singles/cmd/windows/bind_ruby.rb index c443935b18..4a3e1dc2e1 100644 --- a/modules/payloads/singles/cmd/windows/bind_ruby.rb +++ b/modules/payloads/singles/cmd/windows/bind_ruby.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/windows/download_eval_vbs.rb b/modules/payloads/singles/cmd/windows/download_eval_vbs.rb index 90212ef4b7..fd4fd7eda4 100644 --- a/modules/payloads/singles/cmd/windows/download_eval_vbs.rb +++ b/modules/payloads/singles/cmd/windows/download_eval_vbs.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/windows/download_exec_vbs.rb b/modules/payloads/singles/cmd/windows/download_exec_vbs.rb index f8a5df912c..d25ba9c9cd 100644 --- a/modules/payloads/singles/cmd/windows/download_exec_vbs.rb +++ b/modules/payloads/singles/cmd/windows/download_exec_vbs.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/windows/generic.rb b/modules/payloads/singles/cmd/windows/generic.rb index 82820f7a95..f283d39606 100644 --- a/modules/payloads/singles/cmd/windows/generic.rb +++ b/modules/payloads/singles/cmd/windows/generic.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/windows/powershell_bind_tcp.rb b/modules/payloads/singles/cmd/windows/powershell_bind_tcp.rb index eb12d7b63a..b28f719e9a 100644 --- a/modules/payloads/singles/cmd/windows/powershell_bind_tcp.rb +++ b/modules/payloads/singles/cmd/windows/powershell_bind_tcp.rb @@ -3,7 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/powershell' module MetasploitModule CachedSize = 1553 diff --git a/modules/payloads/singles/cmd/windows/powershell_reverse_tcp.rb b/modules/payloads/singles/cmd/windows/powershell_reverse_tcp.rb index d96d8b3629..893aaa34e5 100644 --- a/modules/payloads/singles/cmd/windows/powershell_reverse_tcp.rb +++ b/modules/payloads/singles/cmd/windows/powershell_reverse_tcp.rb @@ -3,7 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/powershell' module MetasploitModule CachedSize = 1561 diff --git a/modules/payloads/singles/cmd/windows/reverse_lua.rb b/modules/payloads/singles/cmd/windows/reverse_lua.rb index e2b92e89ce..39fa3e2bc4 100644 --- a/modules/payloads/singles/cmd/windows/reverse_lua.rb +++ b/modules/payloads/singles/cmd/windows/reverse_lua.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/windows/reverse_perl.rb b/modules/payloads/singles/cmd/windows/reverse_perl.rb index f8cca5aa27..5ef57ace42 100644 --- a/modules/payloads/singles/cmd/windows/reverse_perl.rb +++ b/modules/payloads/singles/cmd/windows/reverse_perl.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/windows/reverse_powershell.rb b/modules/payloads/singles/cmd/windows/reverse_powershell.rb index 2bf40fa1d4..8518e3b263 100644 --- a/modules/payloads/singles/cmd/windows/reverse_powershell.rb +++ b/modules/payloads/singles/cmd/windows/reverse_powershell.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/cmd/windows/reverse_ruby.rb b/modules/payloads/singles/cmd/windows/reverse_ruby.rb index 6abc8d9465..4818b53b0b 100644 --- a/modules/payloads/singles/cmd/windows/reverse_ruby.rb +++ b/modules/payloads/singles/cmd/windows/reverse_ruby.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/firefox/shell_bind_tcp.rb b/modules/payloads/singles/firefox/shell_bind_tcp.rb index 5ddefccb8e..ceecbcf92c 100644 --- a/modules/payloads/singles/firefox/shell_bind_tcp.rb +++ b/modules/payloads/singles/firefox/shell_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/firefox/shell_reverse_tcp.rb b/modules/payloads/singles/firefox/shell_reverse_tcp.rb index 33df8eecce..d8c199884d 100644 --- a/modules/payloads/singles/firefox/shell_reverse_tcp.rb +++ b/modules/payloads/singles/firefox/shell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/java/jsp_shell_bind_tcp.rb b/modules/payloads/singles/java/jsp_shell_bind_tcp.rb index d40e2a9e0b..f38180a879 100644 --- a/modules/payloads/singles/java/jsp_shell_bind_tcp.rb +++ b/modules/payloads/singles/java/jsp_shell_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/java/jsp_shell_reverse_tcp.rb b/modules/payloads/singles/java/jsp_shell_reverse_tcp.rb index 1fd83542ea..a9285a246a 100644 --- a/modules/payloads/singles/java/jsp_shell_reverse_tcp.rb +++ b/modules/payloads/singles/java/jsp_shell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/java/shell_reverse_tcp.rb b/modules/payloads/singles/java/shell_reverse_tcp.rb index 61fb7a1b9b..77e7ba91f1 100644 --- a/modules/payloads/singles/java/shell_reverse_tcp.rb +++ b/modules/payloads/singles/java/shell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/linux/aarch64/meterpreter_reverse_http.rb b/modules/payloads/singles/linux/aarch64/meterpreter_reverse_http.rb index 16d68910ee..05c849b856 100644 --- a/modules/payloads/singles/linux/aarch64/meterpreter_reverse_http.rb +++ b/modules/payloads/singles/linux/aarch64/meterpreter_reverse_http.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_aarch64_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/aarch64/meterpreter_reverse_https.rb b/modules/payloads/singles/linux/aarch64/meterpreter_reverse_https.rb index fcc37bfb59..ed7b57ba96 100644 --- a/modules/payloads/singles/linux/aarch64/meterpreter_reverse_https.rb +++ b/modules/payloads/singles/linux/aarch64/meterpreter_reverse_https.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_aarch64_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/aarch64/meterpreter_reverse_tcp.rb b/modules/payloads/singles/linux/aarch64/meterpreter_reverse_tcp.rb index d6cea6285d..027332dd55 100644 --- a/modules/payloads/singles/linux/aarch64/meterpreter_reverse_tcp.rb +++ b/modules/payloads/singles/linux/aarch64/meterpreter_reverse_tcp.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_aarch64_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/aarch64/shell_reverse_tcp.rb b/modules/payloads/singles/linux/aarch64/shell_reverse_tcp.rb index 0f64a06274..a8f87b69b3 100644 --- a/modules/payloads/singles/linux/aarch64/shell_reverse_tcp.rb +++ b/modules/payloads/singles/linux/aarch64/shell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/linux/armbe/meterpreter_reverse_http.rb b/modules/payloads/singles/linux/armbe/meterpreter_reverse_http.rb index e486e322c2..ac951142e1 100644 --- a/modules/payloads/singles/linux/armbe/meterpreter_reverse_http.rb +++ b/modules/payloads/singles/linux/armbe/meterpreter_reverse_http.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_armbe_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/armbe/meterpreter_reverse_https.rb b/modules/payloads/singles/linux/armbe/meterpreter_reverse_https.rb index 5e3b8a3ff8..cf9ce284d9 100644 --- a/modules/payloads/singles/linux/armbe/meterpreter_reverse_https.rb +++ b/modules/payloads/singles/linux/armbe/meterpreter_reverse_https.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_armbe_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/armbe/meterpreter_reverse_tcp.rb b/modules/payloads/singles/linux/armbe/meterpreter_reverse_tcp.rb index 2cb4fe4c5a..21bd14b086 100644 --- a/modules/payloads/singles/linux/armbe/meterpreter_reverse_tcp.rb +++ b/modules/payloads/singles/linux/armbe/meterpreter_reverse_tcp.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_armbe_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/armbe/shell_bind_tcp.rb b/modules/payloads/singles/linux/armbe/shell_bind_tcp.rb index 219741c742..af1fa5cba2 100644 --- a/modules/payloads/singles/linux/armbe/shell_bind_tcp.rb +++ b/modules/payloads/singles/linux/armbe/shell_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/linux/armle/meterpreter_reverse_http.rb b/modules/payloads/singles/linux/armle/meterpreter_reverse_http.rb index a5453038e1..c8ef25a574 100644 --- a/modules/payloads/singles/linux/armle/meterpreter_reverse_http.rb +++ b/modules/payloads/singles/linux/armle/meterpreter_reverse_http.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_armle_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/armle/meterpreter_reverse_https.rb b/modules/payloads/singles/linux/armle/meterpreter_reverse_https.rb index d1ae7a2471..80707f194f 100644 --- a/modules/payloads/singles/linux/armle/meterpreter_reverse_https.rb +++ b/modules/payloads/singles/linux/armle/meterpreter_reverse_https.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_armle_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/armle/meterpreter_reverse_tcp.rb b/modules/payloads/singles/linux/armle/meterpreter_reverse_tcp.rb index 4ff599122b..56a0b03310 100644 --- a/modules/payloads/singles/linux/armle/meterpreter_reverse_tcp.rb +++ b/modules/payloads/singles/linux/armle/meterpreter_reverse_tcp.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_armle_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/armle/shell_bind_tcp.rb b/modules/payloads/singles/linux/armle/shell_bind_tcp.rb index 08a26d358e..5b294f5a50 100644 --- a/modules/payloads/singles/linux/armle/shell_bind_tcp.rb +++ b/modules/payloads/singles/linux/armle/shell_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/linux/armle/shell_reverse_tcp.rb b/modules/payloads/singles/linux/armle/shell_reverse_tcp.rb index 42cdb8259c..80c869700f 100644 --- a/modules/payloads/singles/linux/armle/shell_reverse_tcp.rb +++ b/modules/payloads/singles/linux/armle/shell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/linux/mips64/meterpreter_reverse_http.rb b/modules/payloads/singles/linux/mips64/meterpreter_reverse_http.rb index cbb9784531..a2f2d1cccc 100644 --- a/modules/payloads/singles/linux/mips64/meterpreter_reverse_http.rb +++ b/modules/payloads/singles/linux/mips64/meterpreter_reverse_http.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_mips64_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/mips64/meterpreter_reverse_https.rb b/modules/payloads/singles/linux/mips64/meterpreter_reverse_https.rb index 221eb4ba71..8f264fb923 100644 --- a/modules/payloads/singles/linux/mips64/meterpreter_reverse_https.rb +++ b/modules/payloads/singles/linux/mips64/meterpreter_reverse_https.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_mips64_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/mips64/meterpreter_reverse_tcp.rb b/modules/payloads/singles/linux/mips64/meterpreter_reverse_tcp.rb index 3cae5b29fa..27ff1eae07 100644 --- a/modules/payloads/singles/linux/mips64/meterpreter_reverse_tcp.rb +++ b/modules/payloads/singles/linux/mips64/meterpreter_reverse_tcp.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_mips64_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/mipsbe/meterpreter_reverse_http.rb b/modules/payloads/singles/linux/mipsbe/meterpreter_reverse_http.rb index b454c44f80..91da2faaee 100644 --- a/modules/payloads/singles/linux/mipsbe/meterpreter_reverse_http.rb +++ b/modules/payloads/singles/linux/mipsbe/meterpreter_reverse_http.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_mipsbe_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/mipsbe/meterpreter_reverse_https.rb b/modules/payloads/singles/linux/mipsbe/meterpreter_reverse_https.rb index 154a3ef720..7707b79b74 100644 --- a/modules/payloads/singles/linux/mipsbe/meterpreter_reverse_https.rb +++ b/modules/payloads/singles/linux/mipsbe/meterpreter_reverse_https.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_mipsbe_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/mipsbe/meterpreter_reverse_tcp.rb b/modules/payloads/singles/linux/mipsbe/meterpreter_reverse_tcp.rb index b7338ecb06..9238cce6b5 100644 --- a/modules/payloads/singles/linux/mipsbe/meterpreter_reverse_tcp.rb +++ b/modules/payloads/singles/linux/mipsbe/meterpreter_reverse_tcp.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_mipsbe_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/mipsbe/shell_bind_tcp.rb b/modules/payloads/singles/linux/mipsbe/shell_bind_tcp.rb index 9060a945b8..16c0ec8da8 100644 --- a/modules/payloads/singles/linux/mipsbe/shell_bind_tcp.rb +++ b/modules/payloads/singles/linux/mipsbe/shell_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/linux/mipsbe/shell_reverse_tcp.rb b/modules/payloads/singles/linux/mipsbe/shell_reverse_tcp.rb index 0324590d63..b08d052344 100644 --- a/modules/payloads/singles/linux/mipsbe/shell_reverse_tcp.rb +++ b/modules/payloads/singles/linux/mipsbe/shell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/linux/mipsle/meterpreter_reverse_http.rb b/modules/payloads/singles/linux/mipsle/meterpreter_reverse_http.rb index 0559ed8f22..55ae3c8fd9 100644 --- a/modules/payloads/singles/linux/mipsle/meterpreter_reverse_http.rb +++ b/modules/payloads/singles/linux/mipsle/meterpreter_reverse_http.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_mipsle_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/mipsle/meterpreter_reverse_https.rb b/modules/payloads/singles/linux/mipsle/meterpreter_reverse_https.rb index 9b6352f7d3..9a080e0855 100644 --- a/modules/payloads/singles/linux/mipsle/meterpreter_reverse_https.rb +++ b/modules/payloads/singles/linux/mipsle/meterpreter_reverse_https.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_mipsle_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/mipsle/meterpreter_reverse_tcp.rb b/modules/payloads/singles/linux/mipsle/meterpreter_reverse_tcp.rb index 59e229a421..76c03ba14b 100644 --- a/modules/payloads/singles/linux/mipsle/meterpreter_reverse_tcp.rb +++ b/modules/payloads/singles/linux/mipsle/meterpreter_reverse_tcp.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_mipsle_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/mipsle/shell_bind_tcp.rb b/modules/payloads/singles/linux/mipsle/shell_bind_tcp.rb index 9095d77979..e49e0fc539 100644 --- a/modules/payloads/singles/linux/mipsle/shell_bind_tcp.rb +++ b/modules/payloads/singles/linux/mipsle/shell_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/linux/mipsle/shell_reverse_tcp.rb b/modules/payloads/singles/linux/mipsle/shell_reverse_tcp.rb index fd11f47f11..0c0ac5c21b 100644 --- a/modules/payloads/singles/linux/mipsle/shell_reverse_tcp.rb +++ b/modules/payloads/singles/linux/mipsle/shell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/linux/ppc/meterpreter_reverse_http.rb b/modules/payloads/singles/linux/ppc/meterpreter_reverse_http.rb index 71685aae68..268c86cc9b 100644 --- a/modules/payloads/singles/linux/ppc/meterpreter_reverse_http.rb +++ b/modules/payloads/singles/linux/ppc/meterpreter_reverse_http.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_ppc_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/ppc/meterpreter_reverse_https.rb b/modules/payloads/singles/linux/ppc/meterpreter_reverse_https.rb index ffd6279155..8a8bc9a7ba 100644 --- a/modules/payloads/singles/linux/ppc/meterpreter_reverse_https.rb +++ b/modules/payloads/singles/linux/ppc/meterpreter_reverse_https.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_ppc_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/ppc/meterpreter_reverse_tcp.rb b/modules/payloads/singles/linux/ppc/meterpreter_reverse_tcp.rb index 97bf3d10b8..368ed8d5f6 100644 --- a/modules/payloads/singles/linux/ppc/meterpreter_reverse_tcp.rb +++ b/modules/payloads/singles/linux/ppc/meterpreter_reverse_tcp.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_ppc_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/ppc/shell_bind_tcp.rb b/modules/payloads/singles/linux/ppc/shell_bind_tcp.rb index 760df26ab6..d40e531e54 100644 --- a/modules/payloads/singles/linux/ppc/shell_bind_tcp.rb +++ b/modules/payloads/singles/linux/ppc/shell_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/linux/ppc/shell_find_port.rb b/modules/payloads/singles/linux/ppc/shell_find_port.rb index 98952a8cd8..5246b984bb 100644 --- a/modules/payloads/singles/linux/ppc/shell_find_port.rb +++ b/modules/payloads/singles/linux/ppc/shell_find_port.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/linux/ppc/shell_reverse_tcp.rb b/modules/payloads/singles/linux/ppc/shell_reverse_tcp.rb index dd37ef661c..42777fbcb0 100644 --- a/modules/payloads/singles/linux/ppc/shell_reverse_tcp.rb +++ b/modules/payloads/singles/linux/ppc/shell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/linux/ppc64/shell_bind_tcp.rb b/modules/payloads/singles/linux/ppc64/shell_bind_tcp.rb index 4f2018e3b7..7f52841110 100644 --- a/modules/payloads/singles/linux/ppc64/shell_bind_tcp.rb +++ b/modules/payloads/singles/linux/ppc64/shell_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/linux/ppc64/shell_find_port.rb b/modules/payloads/singles/linux/ppc64/shell_find_port.rb index 96eac866d9..d1e046e40c 100644 --- a/modules/payloads/singles/linux/ppc64/shell_find_port.rb +++ b/modules/payloads/singles/linux/ppc64/shell_find_port.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/linux/ppc64/shell_reverse_tcp.rb b/modules/payloads/singles/linux/ppc64/shell_reverse_tcp.rb index 74fffccae4..6b66f82803 100644 --- a/modules/payloads/singles/linux/ppc64/shell_reverse_tcp.rb +++ b/modules/payloads/singles/linux/ppc64/shell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/linux/ppc64le/meterpreter_reverse_http.rb b/modules/payloads/singles/linux/ppc64le/meterpreter_reverse_http.rb index 45c5b50db5..9e2489e444 100644 --- a/modules/payloads/singles/linux/ppc64le/meterpreter_reverse_http.rb +++ b/modules/payloads/singles/linux/ppc64le/meterpreter_reverse_http.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_ppc64le_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/ppc64le/meterpreter_reverse_https.rb b/modules/payloads/singles/linux/ppc64le/meterpreter_reverse_https.rb index 341e52796e..8d7f26ef62 100644 --- a/modules/payloads/singles/linux/ppc64le/meterpreter_reverse_https.rb +++ b/modules/payloads/singles/linux/ppc64le/meterpreter_reverse_https.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_ppc64le_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/ppc64le/meterpreter_reverse_tcp.rb b/modules/payloads/singles/linux/ppc64le/meterpreter_reverse_tcp.rb index 2fd8884b0c..9340597888 100644 --- a/modules/payloads/singles/linux/ppc64le/meterpreter_reverse_tcp.rb +++ b/modules/payloads/singles/linux/ppc64le/meterpreter_reverse_tcp.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_ppc64le_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/ppce500v2/meterpreter_reverse_http.rb b/modules/payloads/singles/linux/ppce500v2/meterpreter_reverse_http.rb index c581d55520..3df8862aca 100644 --- a/modules/payloads/singles/linux/ppce500v2/meterpreter_reverse_http.rb +++ b/modules/payloads/singles/linux/ppce500v2/meterpreter_reverse_http.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_ppce500v2_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/ppce500v2/meterpreter_reverse_https.rb b/modules/payloads/singles/linux/ppce500v2/meterpreter_reverse_https.rb index a561547e2c..fe83728716 100644 --- a/modules/payloads/singles/linux/ppce500v2/meterpreter_reverse_https.rb +++ b/modules/payloads/singles/linux/ppce500v2/meterpreter_reverse_https.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_ppce500v2_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/ppce500v2/meterpreter_reverse_tcp.rb b/modules/payloads/singles/linux/ppce500v2/meterpreter_reverse_tcp.rb index 996ccfc66a..39bc74b48d 100644 --- a/modules/payloads/singles/linux/ppce500v2/meterpreter_reverse_tcp.rb +++ b/modules/payloads/singles/linux/ppce500v2/meterpreter_reverse_tcp.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_ppce500v2_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/x64/meterpreter_reverse_http.rb b/modules/payloads/singles/linux/x64/meterpreter_reverse_http.rb index 252fe46aa9..4a71e4f336 100644 --- a/modules/payloads/singles/linux/x64/meterpreter_reverse_http.rb +++ b/modules/payloads/singles/linux/x64/meterpreter_reverse_http.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_x64_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/x64/meterpreter_reverse_https.rb b/modules/payloads/singles/linux/x64/meterpreter_reverse_https.rb index 8e010a3e54..1c815e9533 100644 --- a/modules/payloads/singles/linux/x64/meterpreter_reverse_https.rb +++ b/modules/payloads/singles/linux/x64/meterpreter_reverse_https.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_x64_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/x64/meterpreter_reverse_tcp.rb b/modules/payloads/singles/linux/x64/meterpreter_reverse_tcp.rb index 3f927037a0..115092bb3d 100644 --- a/modules/payloads/singles/linux/x64/meterpreter_reverse_tcp.rb +++ b/modules/payloads/singles/linux/x64/meterpreter_reverse_tcp.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_x64_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/x64/pingback_bind_tcp.rb b/modules/payloads/singles/linux/x64/pingback_bind_tcp.rb index cf4c48dc28..d75e6057de 100644 --- a/modules/payloads/singles/linux/x64/pingback_bind_tcp.rb +++ b/modules/payloads/singles/linux/x64/pingback_bind_tcp.rb @@ -3,7 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/pingback' module MetasploitModule diff --git a/modules/payloads/singles/linux/x64/pingback_reverse_tcp.rb b/modules/payloads/singles/linux/x64/pingback_reverse_tcp.rb index 3c41186a81..6c9e2aa16c 100644 --- a/modules/payloads/singles/linux/x64/pingback_reverse_tcp.rb +++ b/modules/payloads/singles/linux/x64/pingback_reverse_tcp.rb @@ -3,7 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/pingback' module MetasploitModule diff --git a/modules/payloads/singles/linux/x64/shell_bind_ipv6_tcp.rb b/modules/payloads/singles/linux/x64/shell_bind_ipv6_tcp.rb index 3d63567b78..a48e88cbb4 100644 --- a/modules/payloads/singles/linux/x64/shell_bind_ipv6_tcp.rb +++ b/modules/payloads/singles/linux/x64/shell_bind_ipv6_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/linux/x64/shell_bind_tcp.rb b/modules/payloads/singles/linux/x64/shell_bind_tcp.rb index 83d923a8c0..b71f319056 100644 --- a/modules/payloads/singles/linux/x64/shell_bind_tcp.rb +++ b/modules/payloads/singles/linux/x64/shell_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/linux/x64/shell_find_port.rb b/modules/payloads/singles/linux/x64/shell_find_port.rb index 155a090d25..5e2cab58b8 100644 --- a/modules/payloads/singles/linux/x64/shell_find_port.rb +++ b/modules/payloads/singles/linux/x64/shell_find_port.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/linux/x64/shell_reverse_ipv6_tcp.rb b/modules/payloads/singles/linux/x64/shell_reverse_ipv6_tcp.rb index f4b9c3596f..7b3f7a3f45 100644 --- a/modules/payloads/singles/linux/x64/shell_reverse_ipv6_tcp.rb +++ b/modules/payloads/singles/linux/x64/shell_reverse_ipv6_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/linux/x64/shell_reverse_tcp.rb b/modules/payloads/singles/linux/x64/shell_reverse_tcp.rb index 5e0cd554f0..a96fd8fceb 100644 --- a/modules/payloads/singles/linux/x64/shell_reverse_tcp.rb +++ b/modules/payloads/singles/linux/x64/shell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/linux/x86/meterpreter_reverse_http.rb b/modules/payloads/singles/linux/x86/meterpreter_reverse_http.rb index 690f448bd0..26f5e5aa6b 100644 --- a/modules/payloads/singles/linux/x86/meterpreter_reverse_http.rb +++ b/modules/payloads/singles/linux/x86/meterpreter_reverse_http.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_x86_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/x86/meterpreter_reverse_https.rb b/modules/payloads/singles/linux/x86/meterpreter_reverse_https.rb index f7a2e1cff5..53c28db4bb 100644 --- a/modules/payloads/singles/linux/x86/meterpreter_reverse_https.rb +++ b/modules/payloads/singles/linux/x86/meterpreter_reverse_https.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_x86_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/x86/meterpreter_reverse_tcp.rb b/modules/payloads/singles/linux/x86/meterpreter_reverse_tcp.rb index 1f16292d58..a9cf7d6ad9 100644 --- a/modules/payloads/singles/linux/x86/meterpreter_reverse_tcp.rb +++ b/modules/payloads/singles/linux/x86/meterpreter_reverse_tcp.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_x86_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/x86/metsvc_bind_tcp.rb b/modules/payloads/singles/linux/x86/metsvc_bind_tcp.rb index f293d8e1dd..538b2d812a 100644 --- a/modules/payloads/singles/linux/x86/metsvc_bind_tcp.rb +++ b/modules/payloads/singles/linux/x86/metsvc_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_x86_linux' -require 'msf/base/sessions/meterpreter_options' module MetasploitModule diff --git a/modules/payloads/singles/linux/x86/metsvc_reverse_tcp.rb b/modules/payloads/singles/linux/x86/metsvc_reverse_tcp.rb index 6b5b95db25..2883ea6f0b 100644 --- a/modules/payloads/singles/linux/x86/metsvc_reverse_tcp.rb +++ b/modules/payloads/singles/linux/x86/metsvc_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_x86_linux' -require 'msf/base/sessions/meterpreter_options' module MetasploitModule diff --git a/modules/payloads/singles/linux/x86/shell_bind_ipv6_tcp.rb b/modules/payloads/singles/linux/x86/shell_bind_ipv6_tcp.rb index c39d3be546..2f374d73f3 100644 --- a/modules/payloads/singles/linux/x86/shell_bind_ipv6_tcp.rb +++ b/modules/payloads/singles/linux/x86/shell_bind_ipv6_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/linux/x86/shell_bind_tcp.rb b/modules/payloads/singles/linux/x86/shell_bind_tcp.rb index a452bc777b..f1e8d10b4b 100644 --- a/modules/payloads/singles/linux/x86/shell_bind_tcp.rb +++ b/modules/payloads/singles/linux/x86/shell_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/linux/x86/shell_find_port.rb b/modules/payloads/singles/linux/x86/shell_find_port.rb index bd48406c3b..9ad0de7127 100644 --- a/modules/payloads/singles/linux/x86/shell_find_port.rb +++ b/modules/payloads/singles/linux/x86/shell_find_port.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/linux/x86/shell_find_tag.rb b/modules/payloads/singles/linux/x86/shell_find_tag.rb index 4c54548429..b15ada4dfc 100644 --- a/modules/payloads/singles/linux/x86/shell_find_tag.rb +++ b/modules/payloads/singles/linux/x86/shell_find_tag.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/linux/x86/shell_reverse_tcp.rb b/modules/payloads/singles/linux/x86/shell_reverse_tcp.rb index 0d43af3b6d..0bc1ad4928 100644 --- a/modules/payloads/singles/linux/x86/shell_reverse_tcp.rb +++ b/modules/payloads/singles/linux/x86/shell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/linux/x86/shell_reverse_tcp_ipv6.rb b/modules/payloads/singles/linux/x86/shell_reverse_tcp_ipv6.rb index 9ac9cc8518..01d4c1dda4 100644 --- a/modules/payloads/singles/linux/x86/shell_reverse_tcp_ipv6.rb +++ b/modules/payloads/singles/linux/x86/shell_reverse_tcp_ipv6.rb @@ -4,8 +4,6 @@ ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/linux/zarch/meterpreter_reverse_http.rb b/modules/payloads/singles/linux/zarch/meterpreter_reverse_http.rb index 947c72fba4..41bf3a8f5a 100644 --- a/modules/payloads/singles/linux/zarch/meterpreter_reverse_http.rb +++ b/modules/payloads/singles/linux/zarch/meterpreter_reverse_http.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_zarch_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/zarch/meterpreter_reverse_https.rb b/modules/payloads/singles/linux/zarch/meterpreter_reverse_https.rb index aa0f61346a..59a6a67fad 100644 --- a/modules/payloads/singles/linux/zarch/meterpreter_reverse_https.rb +++ b/modules/payloads/singles/linux/zarch/meterpreter_reverse_https.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_zarch_linux' module MetasploitModule diff --git a/modules/payloads/singles/linux/zarch/meterpreter_reverse_tcp.rb b/modules/payloads/singles/linux/zarch/meterpreter_reverse_tcp.rb index 57d807e247..b124f67ac1 100644 --- a/modules/payloads/singles/linux/zarch/meterpreter_reverse_tcp.rb +++ b/modules/payloads/singles/linux/zarch/meterpreter_reverse_tcp.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_zarch_linux' module MetasploitModule diff --git a/modules/payloads/singles/mainframe/shell_reverse_tcp.rb b/modules/payloads/singles/mainframe/shell_reverse_tcp.rb index e1c8e45bc3..247bfd2df0 100644 --- a/modules/payloads/singles/mainframe/shell_reverse_tcp.rb +++ b/modules/payloads/singles/mainframe/shell_reverse_tcp.rb @@ -7,8 +7,6 @@ # ## -require 'msf/base/sessions/mainframe_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule CachedSize = 339 diff --git a/modules/payloads/singles/nodejs/shell_bind_tcp.rb b/modules/payloads/singles/nodejs/shell_bind_tcp.rb index 80a29350ef..e0519eb7e7 100644 --- a/modules/payloads/singles/nodejs/shell_bind_tcp.rb +++ b/modules/payloads/singles/nodejs/shell_bind_tcp.rb @@ -7,7 +7,6 @@ # differ so greatly when it comes to require() paths for net modules, we will # settle for just getting shells on nodejs. -require 'msf/base/sessions/command_shell' module MetasploitModule diff --git a/modules/payloads/singles/nodejs/shell_reverse_tcp.rb b/modules/payloads/singles/nodejs/shell_reverse_tcp.rb index f019674ded..c3f056a87d 100644 --- a/modules/payloads/singles/nodejs/shell_reverse_tcp.rb +++ b/modules/payloads/singles/nodejs/shell_reverse_tcp.rb @@ -7,7 +7,6 @@ # differ so greatly when it comes to require() paths for net modules, we will # settle for just getting shells on nodejs. -require 'msf/base/sessions/command_shell' module MetasploitModule diff --git a/modules/payloads/singles/nodejs/shell_reverse_tcp_ssl.rb b/modules/payloads/singles/nodejs/shell_reverse_tcp_ssl.rb index e4b41dceb4..cc0db7cc22 100644 --- a/modules/payloads/singles/nodejs/shell_reverse_tcp_ssl.rb +++ b/modules/payloads/singles/nodejs/shell_reverse_tcp_ssl.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/osx/armle/shell_bind_tcp.rb b/modules/payloads/singles/osx/armle/shell_bind_tcp.rb index 6898f7fdb2..76552d4799 100644 --- a/modules/payloads/singles/osx/armle/shell_bind_tcp.rb +++ b/modules/payloads/singles/osx/armle/shell_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/osx/armle/shell_reverse_tcp.rb b/modules/payloads/singles/osx/armle/shell_reverse_tcp.rb index a74706848e..dba36ade21 100644 --- a/modules/payloads/singles/osx/armle/shell_reverse_tcp.rb +++ b/modules/payloads/singles/osx/armle/shell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/osx/ppc/shell_bind_tcp.rb b/modules/payloads/singles/osx/ppc/shell_bind_tcp.rb index a93e84f06a..fdf772cd7d 100644 --- a/modules/payloads/singles/osx/ppc/shell_bind_tcp.rb +++ b/modules/payloads/singles/osx/ppc/shell_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/osx/ppc/shell_reverse_tcp.rb b/modules/payloads/singles/osx/ppc/shell_reverse_tcp.rb index deae45dd86..04520e9bb1 100644 --- a/modules/payloads/singles/osx/ppc/shell_reverse_tcp.rb +++ b/modules/payloads/singles/osx/ppc/shell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/osx/x64/meterpreter_reverse_http.rb b/modules/payloads/singles/osx/x64/meterpreter_reverse_http.rb index f906e4b9aa..a07c902e33 100644 --- a/modules/payloads/singles/osx/x64/meterpreter_reverse_http.rb +++ b/modules/payloads/singles/osx/x64/meterpreter_reverse_http.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_x64_osx' module MetasploitModule diff --git a/modules/payloads/singles/osx/x64/meterpreter_reverse_https.rb b/modules/payloads/singles/osx/x64/meterpreter_reverse_https.rb index 51da0d0ebd..5195cccd2f 100644 --- a/modules/payloads/singles/osx/x64/meterpreter_reverse_https.rb +++ b/modules/payloads/singles/osx/x64/meterpreter_reverse_https.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_x64_osx' module MetasploitModule diff --git a/modules/payloads/singles/osx/x64/meterpreter_reverse_tcp.rb b/modules/payloads/singles/osx/x64/meterpreter_reverse_tcp.rb index 63866d8d06..f267e55bea 100644 --- a/modules/payloads/singles/osx/x64/meterpreter_reverse_tcp.rb +++ b/modules/payloads/singles/osx/x64/meterpreter_reverse_tcp.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' -require 'msf/base/sessions/meterpreter_x64_osx' module MetasploitModule diff --git a/modules/payloads/singles/osx/x64/shell_find_tag.rb b/modules/payloads/singles/osx/x64/shell_find_tag.rb index 5fb3a6ebe9..dbee0f4771 100644 --- a/modules/payloads/singles/osx/x64/shell_find_tag.rb +++ b/modules/payloads/singles/osx/x64/shell_find_tag.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/osx/x86/shell_bind_tcp.rb b/modules/payloads/singles/osx/x86/shell_bind_tcp.rb index 1203e1faa1..69fb1ebaf6 100644 --- a/modules/payloads/singles/osx/x86/shell_bind_tcp.rb +++ b/modules/payloads/singles/osx/x86/shell_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/osx/x86/shell_find_port.rb b/modules/payloads/singles/osx/x86/shell_find_port.rb index e1ece296e8..f624549df3 100644 --- a/modules/payloads/singles/osx/x86/shell_find_port.rb +++ b/modules/payloads/singles/osx/x86/shell_find_port.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/osx/x86/shell_reverse_tcp.rb b/modules/payloads/singles/osx/x86/shell_reverse_tcp.rb index cdd6f69cdd..7ce227b577 100644 --- a/modules/payloads/singles/osx/x86/shell_reverse_tcp.rb +++ b/modules/payloads/singles/osx/x86/shell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/osx/x86/vforkshell_bind_tcp.rb b/modules/payloads/singles/osx/x86/vforkshell_bind_tcp.rb index 3b389102c1..ff202b02ea 100644 --- a/modules/payloads/singles/osx/x86/vforkshell_bind_tcp.rb +++ b/modules/payloads/singles/osx/x86/vforkshell_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/osx/x86/vforkshell_reverse_tcp.rb b/modules/payloads/singles/osx/x86/vforkshell_reverse_tcp.rb index bb30ecd062..89f4e1d319 100644 --- a/modules/payloads/singles/osx/x86/vforkshell_reverse_tcp.rb +++ b/modules/payloads/singles/osx/x86/vforkshell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/php/bind_perl.rb b/modules/payloads/singles/php/bind_perl.rb index 5b83ac12e2..8384c7c498 100644 --- a/modules/payloads/singles/php/bind_perl.rb +++ b/modules/payloads/singles/php/bind_perl.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/php/bind_perl_ipv6.rb b/modules/payloads/singles/php/bind_perl_ipv6.rb index c10f23e72a..e51e21f21b 100644 --- a/modules/payloads/singles/php/bind_perl_ipv6.rb +++ b/modules/payloads/singles/php/bind_perl_ipv6.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/php/bind_php.rb b/modules/payloads/singles/php/bind_php.rb index 576d10d598..fbb4d1014d 100644 --- a/modules/payloads/singles/php/bind_php.rb +++ b/modules/payloads/singles/php/bind_php.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/php/bind_php_ipv6.rb b/modules/payloads/singles/php/bind_php_ipv6.rb index cc1aa79e4c..4d0af0d964 100644 --- a/modules/payloads/singles/php/bind_php_ipv6.rb +++ b/modules/payloads/singles/php/bind_php_ipv6.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/php/exec.rb b/modules/payloads/singles/php/exec.rb index 4fc50e0825..d4adc40653 100644 --- a/modules/payloads/singles/php/exec.rb +++ b/modules/payloads/singles/php/exec.rb @@ -3,7 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' module MetasploitModule diff --git a/modules/payloads/singles/php/meterpreter_reverse_tcp.rb b/modules/payloads/singles/php/meterpreter_reverse_tcp.rb index f97071178b..3cfc40f03a 100644 --- a/modules/payloads/singles/php/meterpreter_reverse_tcp.rb +++ b/modules/payloads/singles/php/meterpreter_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_php' -require 'msf/base/sessions/meterpreter_options' module MetasploitModule diff --git a/modules/payloads/singles/php/reverse_perl.rb b/modules/payloads/singles/php/reverse_perl.rb index e6e01775c6..c620870170 100644 --- a/modules/payloads/singles/php/reverse_perl.rb +++ b/modules/payloads/singles/php/reverse_perl.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/php/reverse_php.rb b/modules/payloads/singles/php/reverse_php.rb index 45cab6f45d..02eccd529f 100644 --- a/modules/payloads/singles/php/reverse_php.rb +++ b/modules/payloads/singles/php/reverse_php.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/php/shell_findsock.rb b/modules/payloads/singles/php/shell_findsock.rb index 175effbb1c..55f3fdb567 100644 --- a/modules/payloads/singles/php/shell_findsock.rb +++ b/modules/payloads/singles/php/shell_findsock.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/python/meterpreter_bind_tcp.rb b/modules/payloads/singles/python/meterpreter_bind_tcp.rb index b6b63f3e33..1eb16848f4 100644 --- a/modules/payloads/singles/python/meterpreter_bind_tcp.rb +++ b/modules/payloads/singles/python/meterpreter_bind_tcp.rb @@ -3,7 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_python' module MetasploitModule diff --git a/modules/payloads/singles/python/meterpreter_reverse_http.rb b/modules/payloads/singles/python/meterpreter_reverse_http.rb index b67fcac290..137dec18d7 100644 --- a/modules/payloads/singles/python/meterpreter_reverse_http.rb +++ b/modules/payloads/singles/python/meterpreter_reverse_http.rb @@ -3,7 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_python' module MetasploitModule diff --git a/modules/payloads/singles/python/meterpreter_reverse_https.rb b/modules/payloads/singles/python/meterpreter_reverse_https.rb index fd02f94c65..ad7f981ffe 100644 --- a/modules/payloads/singles/python/meterpreter_reverse_https.rb +++ b/modules/payloads/singles/python/meterpreter_reverse_https.rb @@ -3,7 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_python' module MetasploitModule diff --git a/modules/payloads/singles/python/meterpreter_reverse_tcp.rb b/modules/payloads/singles/python/meterpreter_reverse_tcp.rb index e7d88ddbab..20748a4232 100644 --- a/modules/payloads/singles/python/meterpreter_reverse_tcp.rb +++ b/modules/payloads/singles/python/meterpreter_reverse_tcp.rb @@ -3,7 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_python' module MetasploitModule diff --git a/modules/payloads/singles/python/pingback_bind_tcp.rb b/modules/payloads/singles/python/pingback_bind_tcp.rb index 7a6f688d7b..118c5c5477 100644 --- a/modules/payloads/singles/python/pingback_bind_tcp.rb +++ b/modules/payloads/singles/python/pingback_bind_tcp.rb @@ -1,4 +1,3 @@ -require 'msf/base/sessions/pingback' module MetasploitModule diff --git a/modules/payloads/singles/python/pingback_reverse_tcp.rb b/modules/payloads/singles/python/pingback_reverse_tcp.rb index 14baf7f40f..c8a295447f 100644 --- a/modules/payloads/singles/python/pingback_reverse_tcp.rb +++ b/modules/payloads/singles/python/pingback_reverse_tcp.rb @@ -1,4 +1,3 @@ -require 'msf/base/sessions/pingback' module MetasploitModule diff --git a/modules/payloads/singles/python/shell_bind_tcp.rb b/modules/payloads/singles/python/shell_bind_tcp.rb index 7cd9eeeba6..43132ac251 100644 --- a/modules/payloads/singles/python/shell_bind_tcp.rb +++ b/modules/payloads/singles/python/shell_bind_tcp.rb @@ -1,5 +1,3 @@ -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/python/shell_reverse_tcp.rb b/modules/payloads/singles/python/shell_reverse_tcp.rb index c9c930cbd9..58315e9c9b 100644 --- a/modules/payloads/singles/python/shell_reverse_tcp.rb +++ b/modules/payloads/singles/python/shell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/python/shell_reverse_tcp_ssl.rb b/modules/payloads/singles/python/shell_reverse_tcp_ssl.rb index 63a794fe2e..e38ed22ee2 100644 --- a/modules/payloads/singles/python/shell_reverse_tcp_ssl.rb +++ b/modules/payloads/singles/python/shell_reverse_tcp_ssl.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/python/shell_reverse_udp.rb b/modules/payloads/singles/python/shell_reverse_udp.rb index d51d6576a8..572d9a35a3 100644 --- a/modules/payloads/singles/python/shell_reverse_udp.rb +++ b/modules/payloads/singles/python/shell_reverse_udp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/r/shell_bind_tcp.rb b/modules/payloads/singles/r/shell_bind_tcp.rb index d0759327b1..84aa7db1c8 100644 --- a/modules/payloads/singles/r/shell_bind_tcp.rb +++ b/modules/payloads/singles/r/shell_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/r/shell_reverse_tcp.rb b/modules/payloads/singles/r/shell_reverse_tcp.rb index 01ae9745f4..92e5aa3b75 100644 --- a/modules/payloads/singles/r/shell_reverse_tcp.rb +++ b/modules/payloads/singles/r/shell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/ruby/pingback_bind_tcp.rb b/modules/payloads/singles/ruby/pingback_bind_tcp.rb index 72d94fdfcc..451ba1d432 100644 --- a/modules/payloads/singles/ruby/pingback_bind_tcp.rb +++ b/modules/payloads/singles/ruby/pingback_bind_tcp.rb @@ -1,4 +1,3 @@ -require 'msf/base/sessions/pingback' module MetasploitModule diff --git a/modules/payloads/singles/ruby/pingback_reverse_tcp.rb b/modules/payloads/singles/ruby/pingback_reverse_tcp.rb index aea2aac5e1..ab0ac7367c 100644 --- a/modules/payloads/singles/ruby/pingback_reverse_tcp.rb +++ b/modules/payloads/singles/ruby/pingback_reverse_tcp.rb @@ -1,4 +1,3 @@ -require 'msf/base/sessions/pingback' module MetasploitModule diff --git a/modules/payloads/singles/ruby/shell_bind_tcp.rb b/modules/payloads/singles/ruby/shell_bind_tcp.rb index 48691fc1e8..ec0d24b461 100644 --- a/modules/payloads/singles/ruby/shell_bind_tcp.rb +++ b/modules/payloads/singles/ruby/shell_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/ruby/shell_bind_tcp_ipv6.rb b/modules/payloads/singles/ruby/shell_bind_tcp_ipv6.rb index d3f03f863c..734d9a082e 100644 --- a/modules/payloads/singles/ruby/shell_bind_tcp_ipv6.rb +++ b/modules/payloads/singles/ruby/shell_bind_tcp_ipv6.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/ruby/shell_reverse_tcp.rb b/modules/payloads/singles/ruby/shell_reverse_tcp.rb index 6599460547..90db98f518 100644 --- a/modules/payloads/singles/ruby/shell_reverse_tcp.rb +++ b/modules/payloads/singles/ruby/shell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/ruby/shell_reverse_tcp_ssl.rb b/modules/payloads/singles/ruby/shell_reverse_tcp_ssl.rb index 2693188e70..bd225d4569 100644 --- a/modules/payloads/singles/ruby/shell_reverse_tcp_ssl.rb +++ b/modules/payloads/singles/ruby/shell_reverse_tcp_ssl.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/solaris/sparc/shell_bind_tcp.rb b/modules/payloads/singles/solaris/sparc/shell_bind_tcp.rb index 2e28d0ca77..14801b6e4b 100644 --- a/modules/payloads/singles/solaris/sparc/shell_bind_tcp.rb +++ b/modules/payloads/singles/solaris/sparc/shell_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/solaris/sparc/shell_find_port.rb b/modules/payloads/singles/solaris/sparc/shell_find_port.rb index 0a1df3bce8..38451ad87c 100644 --- a/modules/payloads/singles/solaris/sparc/shell_find_port.rb +++ b/modules/payloads/singles/solaris/sparc/shell_find_port.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/solaris/sparc/shell_reverse_tcp.rb b/modules/payloads/singles/solaris/sparc/shell_reverse_tcp.rb index 3772f7e251..97a739fd33 100644 --- a/modules/payloads/singles/solaris/sparc/shell_reverse_tcp.rb +++ b/modules/payloads/singles/solaris/sparc/shell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/solaris/x86/shell_bind_tcp.rb b/modules/payloads/singles/solaris/x86/shell_bind_tcp.rb index 2f473b9dc2..726fa899fa 100644 --- a/modules/payloads/singles/solaris/x86/shell_bind_tcp.rb +++ b/modules/payloads/singles/solaris/x86/shell_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/solaris/x86/shell_find_port.rb b/modules/payloads/singles/solaris/x86/shell_find_port.rb index edf79318e7..f2f8c98e5f 100644 --- a/modules/payloads/singles/solaris/x86/shell_find_port.rb +++ b/modules/payloads/singles/solaris/x86/shell_find_port.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/solaris/x86/shell_reverse_tcp.rb b/modules/payloads/singles/solaris/x86/shell_reverse_tcp.rb index e189a9e9a3..e420d3cde7 100644 --- a/modules/payloads/singles/solaris/x86/shell_reverse_tcp.rb +++ b/modules/payloads/singles/solaris/x86/shell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/tty/unix/interact.rb b/modules/payloads/singles/tty/unix/interact.rb index 57a2297234..6968482d51 100644 --- a/modules/payloads/singles/tty/unix/interact.rb +++ b/modules/payloads/singles/tty/unix/interact.rb @@ -3,7 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' module MetasploitModule diff --git a/modules/payloads/singles/windows/encrypted_shell_reverse_tcp.rb b/modules/payloads/singles/windows/encrypted_shell_reverse_tcp.rb index 278ac075aa..bbf28e73c4 100644 --- a/modules/payloads/singles/windows/encrypted_shell_reverse_tcp.rb +++ b/modules/payloads/singles/windows/encrypted_shell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/encrypted_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule CachedSize = 4416 diff --git a/modules/payloads/singles/windows/meterpreter_bind_named_pipe.rb b/modules/payloads/singles/windows/meterpreter_bind_named_pipe.rb index 2555711ee6..93d7c8cbac 100644 --- a/modules/payloads/singles/windows/meterpreter_bind_named_pipe.rb +++ b/modules/payloads/singles/windows/meterpreter_bind_named_pipe.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_x86_win' -require 'msf/base/sessions/meterpreter_options' require 'rex/payloads/meterpreter/config' module MetasploitModule diff --git a/modules/payloads/singles/windows/meterpreter_bind_tcp.rb b/modules/payloads/singles/windows/meterpreter_bind_tcp.rb index e27c7cf515..8368f1006e 100644 --- a/modules/payloads/singles/windows/meterpreter_bind_tcp.rb +++ b/modules/payloads/singles/windows/meterpreter_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_x86_win' -require 'msf/base/sessions/meterpreter_options' require 'rex/payloads/meterpreter/config' module MetasploitModule diff --git a/modules/payloads/singles/windows/meterpreter_reverse_http.rb b/modules/payloads/singles/windows/meterpreter_reverse_http.rb index a59a51608c..fa1941ce63 100644 --- a/modules/payloads/singles/windows/meterpreter_reverse_http.rb +++ b/modules/payloads/singles/windows/meterpreter_reverse_http.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_x86_win' -require 'msf/base/sessions/meterpreter_options' require 'rex/payloads/meterpreter/config' module MetasploitModule diff --git a/modules/payloads/singles/windows/meterpreter_reverse_https.rb b/modules/payloads/singles/windows/meterpreter_reverse_https.rb index d286f1f275..aa5d1d0eb9 100644 --- a/modules/payloads/singles/windows/meterpreter_reverse_https.rb +++ b/modules/payloads/singles/windows/meterpreter_reverse_https.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_x86_win' -require 'msf/base/sessions/meterpreter_options' require 'rex/payloads/meterpreter/config' module MetasploitModule diff --git a/modules/payloads/singles/windows/meterpreter_reverse_ipv6_tcp.rb b/modules/payloads/singles/windows/meterpreter_reverse_ipv6_tcp.rb index 73c5456b3c..c9a6f610a5 100644 --- a/modules/payloads/singles/windows/meterpreter_reverse_ipv6_tcp.rb +++ b/modules/payloads/singles/windows/meterpreter_reverse_ipv6_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_x86_win' -require 'msf/base/sessions/meterpreter_options' require 'rex/payloads/meterpreter/config' module MetasploitModule diff --git a/modules/payloads/singles/windows/meterpreter_reverse_tcp.rb b/modules/payloads/singles/windows/meterpreter_reverse_tcp.rb index 670413d431..fe13360801 100644 --- a/modules/payloads/singles/windows/meterpreter_reverse_tcp.rb +++ b/modules/payloads/singles/windows/meterpreter_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_x86_win' -require 'msf/base/sessions/meterpreter_options' require 'rex/payloads/meterpreter/config' module MetasploitModule diff --git a/modules/payloads/singles/windows/metsvc_bind_tcp.rb b/modules/payloads/singles/windows/metsvc_bind_tcp.rb index 39ce8efd0f..f7472940a1 100644 --- a/modules/payloads/singles/windows/metsvc_bind_tcp.rb +++ b/modules/payloads/singles/windows/metsvc_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_x86_win' -require 'msf/base/sessions/meterpreter_options' module MetasploitModule diff --git a/modules/payloads/singles/windows/metsvc_reverse_tcp.rb b/modules/payloads/singles/windows/metsvc_reverse_tcp.rb index ef35c09400..b6a223daca 100644 --- a/modules/payloads/singles/windows/metsvc_reverse_tcp.rb +++ b/modules/payloads/singles/windows/metsvc_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_x86_win' -require 'msf/base/sessions/meterpreter_options' module MetasploitModule diff --git a/modules/payloads/singles/windows/pingback_bind_tcp.rb b/modules/payloads/singles/windows/pingback_bind_tcp.rb index 7725f1513e..316d1586bd 100644 --- a/modules/payloads/singles/windows/pingback_bind_tcp.rb +++ b/modules/payloads/singles/windows/pingback_bind_tcp.rb @@ -3,7 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/pingback' module MetasploitModule diff --git a/modules/payloads/singles/windows/pingback_reverse_tcp.rb b/modules/payloads/singles/windows/pingback_reverse_tcp.rb index fce303b082..93910f911f 100644 --- a/modules/payloads/singles/windows/pingback_reverse_tcp.rb +++ b/modules/payloads/singles/windows/pingback_reverse_tcp.rb @@ -3,7 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/pingback' module MetasploitModule diff --git a/modules/payloads/singles/windows/powershell_bind_tcp.rb b/modules/payloads/singles/windows/powershell_bind_tcp.rb index 387fab5bc8..ab9f4f9e9f 100644 --- a/modules/payloads/singles/windows/powershell_bind_tcp.rb +++ b/modules/payloads/singles/windows/powershell_bind_tcp.rb @@ -3,7 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/powershell' ### # diff --git a/modules/payloads/singles/windows/powershell_reverse_tcp.rb b/modules/payloads/singles/windows/powershell_reverse_tcp.rb index d5f7352532..8f7ee0a3a2 100644 --- a/modules/payloads/singles/windows/powershell_reverse_tcp.rb +++ b/modules/payloads/singles/windows/powershell_reverse_tcp.rb @@ -3,7 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/powershell' ### # diff --git a/modules/payloads/singles/windows/shell_bind_tcp.rb b/modules/payloads/singles/windows/shell_bind_tcp.rb index 277a9e2085..6911568377 100644 --- a/modules/payloads/singles/windows/shell_bind_tcp.rb +++ b/modules/payloads/singles/windows/shell_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/windows/shell_bind_tcp_xpfw.rb b/modules/payloads/singles/windows/shell_bind_tcp_xpfw.rb index 2d96ef9d46..d401e639e8 100644 --- a/modules/payloads/singles/windows/shell_bind_tcp_xpfw.rb +++ b/modules/payloads/singles/windows/shell_bind_tcp_xpfw.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/windows/shell_hidden_bind_tcp.rb b/modules/payloads/singles/windows/shell_hidden_bind_tcp.rb index 1984c99e3b..ac5937e424 100644 --- a/modules/payloads/singles/windows/shell_hidden_bind_tcp.rb +++ b/modules/payloads/singles/windows/shell_hidden_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/windows/shell_reverse_tcp.rb b/modules/payloads/singles/windows/shell_reverse_tcp.rb index c6eec16fb0..87c95c00f2 100644 --- a/modules/payloads/singles/windows/shell_reverse_tcp.rb +++ b/modules/payloads/singles/windows/shell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/windows/x64/encrypted_shell_reverse_tcp.rb b/modules/payloads/singles/windows/x64/encrypted_shell_reverse_tcp.rb index 91a1664195..f14fa26d5a 100644 --- a/modules/payloads/singles/windows/x64/encrypted_shell_reverse_tcp.rb +++ b/modules/payloads/singles/windows/x64/encrypted_shell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/encrypted_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/windows/x64/meterpreter_bind_named_pipe.rb b/modules/payloads/singles/windows/x64/meterpreter_bind_named_pipe.rb index 7c3c6523eb..932aeb6880 100644 --- a/modules/payloads/singles/windows/x64/meterpreter_bind_named_pipe.rb +++ b/modules/payloads/singles/windows/x64/meterpreter_bind_named_pipe.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_x64_win' -require 'msf/base/sessions/meterpreter_options' require 'rex/payloads/meterpreter/config' module MetasploitModule diff --git a/modules/payloads/singles/windows/x64/meterpreter_bind_tcp.rb b/modules/payloads/singles/windows/x64/meterpreter_bind_tcp.rb index b62829207f..4ceef416c2 100644 --- a/modules/payloads/singles/windows/x64/meterpreter_bind_tcp.rb +++ b/modules/payloads/singles/windows/x64/meterpreter_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_x64_win' -require 'msf/base/sessions/meterpreter_options' require 'rex/payloads/meterpreter/config' module MetasploitModule diff --git a/modules/payloads/singles/windows/x64/meterpreter_reverse_http.rb b/modules/payloads/singles/windows/x64/meterpreter_reverse_http.rb index 22ea7b4f71..959607f5c6 100644 --- a/modules/payloads/singles/windows/x64/meterpreter_reverse_http.rb +++ b/modules/payloads/singles/windows/x64/meterpreter_reverse_http.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_x64_win' -require 'msf/base/sessions/meterpreter_options' require 'rex/payloads/meterpreter/config' module MetasploitModule diff --git a/modules/payloads/singles/windows/x64/meterpreter_reverse_https.rb b/modules/payloads/singles/windows/x64/meterpreter_reverse_https.rb index ad75b61def..45691e0fd8 100644 --- a/modules/payloads/singles/windows/x64/meterpreter_reverse_https.rb +++ b/modules/payloads/singles/windows/x64/meterpreter_reverse_https.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_x64_win' -require 'msf/base/sessions/meterpreter_options' require 'rex/payloads/meterpreter/config' module MetasploitModule diff --git a/modules/payloads/singles/windows/x64/meterpreter_reverse_ipv6_tcp.rb b/modules/payloads/singles/windows/x64/meterpreter_reverse_ipv6_tcp.rb index 1f83120d60..74fb1a1532 100644 --- a/modules/payloads/singles/windows/x64/meterpreter_reverse_ipv6_tcp.rb +++ b/modules/payloads/singles/windows/x64/meterpreter_reverse_ipv6_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_x64_win' -require 'msf/base/sessions/meterpreter_options' require 'rex/payloads/meterpreter/config' module MetasploitModule diff --git a/modules/payloads/singles/windows/x64/meterpreter_reverse_tcp.rb b/modules/payloads/singles/windows/x64/meterpreter_reverse_tcp.rb index 092d8ad8b2..67b68b9ce1 100644 --- a/modules/payloads/singles/windows/x64/meterpreter_reverse_tcp.rb +++ b/modules/payloads/singles/windows/x64/meterpreter_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_x64_win' -require 'msf/base/sessions/meterpreter_options' require 'rex/payloads/meterpreter/config' module MetasploitModule diff --git a/modules/payloads/singles/windows/x64/pingback_reverse_tcp.rb b/modules/payloads/singles/windows/x64/pingback_reverse_tcp.rb index d0cdfd58c4..ab5fee2e07 100644 --- a/modules/payloads/singles/windows/x64/pingback_reverse_tcp.rb +++ b/modules/payloads/singles/windows/x64/pingback_reverse_tcp.rb @@ -3,7 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/pingback' module MetasploitModule CachedSize = 425 diff --git a/modules/payloads/singles/windows/x64/powershell_bind_tcp.rb b/modules/payloads/singles/windows/x64/powershell_bind_tcp.rb index 61d617530d..24df89358b 100644 --- a/modules/payloads/singles/windows/x64/powershell_bind_tcp.rb +++ b/modules/payloads/singles/windows/x64/powershell_bind_tcp.rb @@ -3,7 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/powershell' ### # diff --git a/modules/payloads/singles/windows/x64/powershell_reverse_tcp.rb b/modules/payloads/singles/windows/x64/powershell_reverse_tcp.rb index 2e1f8a6bb0..c154f4540b 100644 --- a/modules/payloads/singles/windows/x64/powershell_reverse_tcp.rb +++ b/modules/payloads/singles/windows/x64/powershell_reverse_tcp.rb @@ -3,7 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/powershell' ### # diff --git a/modules/payloads/singles/windows/x64/shell_bind_tcp.rb b/modules/payloads/singles/windows/x64/shell_bind_tcp.rb index 069c2f06f0..41752e84b5 100644 --- a/modules/payloads/singles/windows/x64/shell_bind_tcp.rb +++ b/modules/payloads/singles/windows/x64/shell_bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/singles/windows/x64/shell_reverse_tcp.rb b/modules/payloads/singles/windows/x64/shell_reverse_tcp.rb index 9411cd171f..c44caeb87c 100644 --- a/modules/payloads/singles/windows/x64/shell_reverse_tcp.rb +++ b/modules/payloads/singles/windows/x64/shell_reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/stagers/python/bind_tcp.rb b/modules/payloads/stagers/python/bind_tcp.rb index b84b288e60..dbce4d91f1 100644 --- a/modules/payloads/stagers/python/bind_tcp.rb +++ b/modules/payloads/stagers/python/bind_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/stagers/python/bind_tcp_uuid.rb b/modules/payloads/stagers/python/bind_tcp_uuid.rb index 0cea1c17b8..b06945db11 100644 --- a/modules/payloads/stagers/python/bind_tcp_uuid.rb +++ b/modules/payloads/stagers/python/bind_tcp_uuid.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/stagers/python/reverse_tcp.rb b/modules/payloads/stagers/python/reverse_tcp.rb index 03809ea38a..4dd6d0327e 100644 --- a/modules/payloads/stagers/python/reverse_tcp.rb +++ b/modules/payloads/stagers/python/reverse_tcp.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/stagers/python/reverse_tcp_uuid.rb b/modules/payloads/stagers/python/reverse_tcp_uuid.rb index 6254a0ed86..e474718434 100644 --- a/modules/payloads/stagers/python/reverse_tcp_uuid.rb +++ b/modules/payloads/stagers/python/reverse_tcp_uuid.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/stages/android/meterpreter.rb b/modules/payloads/stages/android/meterpreter.rb index ecb6a53858..96a2162f97 100644 --- a/modules/payloads/stages/android/meterpreter.rb +++ b/modules/payloads/stages/android/meterpreter.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_android' -require 'msf/base/sessions/meterpreter_options' module MetasploitModule diff --git a/modules/payloads/stages/android/shell.rb b/modules/payloads/stages/android/shell.rb index 54180f088d..f01db09af3 100644 --- a/modules/payloads/stages/android/shell.rb +++ b/modules/payloads/stages/android/shell.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/stages/bsd/x86/shell.rb b/modules/payloads/stages/bsd/x86/shell.rb index bbe9bf3e55..e643b402d4 100644 --- a/modules/payloads/stages/bsd/x86/shell.rb +++ b/modules/payloads/stages/bsd/x86/shell.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/stages/bsdi/x86/shell.rb b/modules/payloads/stages/bsdi/x86/shell.rb index a24b559406..514f03de49 100644 --- a/modules/payloads/stages/bsdi/x86/shell.rb +++ b/modules/payloads/stages/bsdi/x86/shell.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/stages/java/meterpreter.rb b/modules/payloads/stages/java/meterpreter.rb index 4b955a8699..611a677f93 100644 --- a/modules/payloads/stages/java/meterpreter.rb +++ b/modules/payloads/stages/java/meterpreter.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_java' -require 'msf/base/sessions/meterpreter_options' module MetasploitModule diff --git a/modules/payloads/stages/java/shell.rb b/modules/payloads/stages/java/shell.rb index 5c17b687f5..6bfd23db52 100644 --- a/modules/payloads/stages/java/shell.rb +++ b/modules/payloads/stages/java/shell.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/stages/linux/aarch64/meterpreter.rb b/modules/payloads/stages/linux/aarch64/meterpreter.rb index 333ef9fbd0..fb237f49f2 100644 --- a/modules/payloads/stages/linux/aarch64/meterpreter.rb +++ b/modules/payloads/stages/linux/aarch64/meterpreter.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_aarch64_linux' -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' require 'rex/elfparsey' module MetasploitModule diff --git a/modules/payloads/stages/linux/aarch64/shell.rb b/modules/payloads/stages/linux/aarch64/shell.rb index ecb9b43f6b..cb0fcf1fa2 100644 --- a/modules/payloads/stages/linux/aarch64/shell.rb +++ b/modules/payloads/stages/linux/aarch64/shell.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/stages/linux/armle/meterpreter.rb b/modules/payloads/stages/linux/armle/meterpreter.rb index 29105a99e5..4e7be4e498 100644 --- a/modules/payloads/stages/linux/armle/meterpreter.rb +++ b/modules/payloads/stages/linux/armle/meterpreter.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_armle_linux' -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' require 'rex/elfparsey' module MetasploitModule diff --git a/modules/payloads/stages/linux/armle/shell.rb b/modules/payloads/stages/linux/armle/shell.rb index c7a54b9eb5..802030c94b 100644 --- a/modules/payloads/stages/linux/armle/shell.rb +++ b/modules/payloads/stages/linux/armle/shell.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/stages/linux/mipsbe/meterpreter.rb b/modules/payloads/stages/linux/mipsbe/meterpreter.rb index 343e05bd02..32a6fd2718 100644 --- a/modules/payloads/stages/linux/mipsbe/meterpreter.rb +++ b/modules/payloads/stages/linux/mipsbe/meterpreter.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_mipsbe_linux' -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' require 'rex/elfparsey' module MetasploitModule diff --git a/modules/payloads/stages/linux/mipsbe/shell.rb b/modules/payloads/stages/linux/mipsbe/shell.rb index 69dba70ebb..d8a7695fe1 100644 --- a/modules/payloads/stages/linux/mipsbe/shell.rb +++ b/modules/payloads/stages/linux/mipsbe/shell.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' - module MetasploitModule include Msf::Payload::Linux include Msf::Sessions::CommandShellOptions diff --git a/modules/payloads/stages/linux/mipsle/meterpreter.rb b/modules/payloads/stages/linux/mipsle/meterpreter.rb index 76cf09a60a..50e0ebe61e 100644 --- a/modules/payloads/stages/linux/mipsle/meterpreter.rb +++ b/modules/payloads/stages/linux/mipsle/meterpreter.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_mipsle_linux' -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' require 'rex/elfparsey' module MetasploitModule diff --git a/modules/payloads/stages/linux/mipsle/shell.rb b/modules/payloads/stages/linux/mipsle/shell.rb index c3efa04620..0d96e44c4d 100644 --- a/modules/payloads/stages/linux/mipsle/shell.rb +++ b/modules/payloads/stages/linux/mipsle/shell.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule include Msf::Payload::Linux diff --git a/modules/payloads/stages/linux/x64/meterpreter.rb b/modules/payloads/stages/linux/x64/meterpreter.rb index a6c15246be..14d46797ec 100644 --- a/modules/payloads/stages/linux/x64/meterpreter.rb +++ b/modules/payloads/stages/linux/x64/meterpreter.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_x64_linux' -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' require 'rex/elfparsey' module MetasploitModule diff --git a/modules/payloads/stages/linux/x64/shell.rb b/modules/payloads/stages/linux/x64/shell.rb index b5bc6ac265..3fd72f8df8 100644 --- a/modules/payloads/stages/linux/x64/shell.rb +++ b/modules/payloads/stages/linux/x64/shell.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule include Msf::Payload::Linux diff --git a/modules/payloads/stages/linux/x86/meterpreter.rb b/modules/payloads/stages/linux/x86/meterpreter.rb index f23cd075bf..7f8a3f9c48 100644 --- a/modules/payloads/stages/linux/x86/meterpreter.rb +++ b/modules/payloads/stages/linux/x86/meterpreter.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_x86_linux' -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' require 'rex/elfparsey' module MetasploitModule diff --git a/modules/payloads/stages/linux/x86/shell.rb b/modules/payloads/stages/linux/x86/shell.rb index bda71f408e..d6bec2b16c 100644 --- a/modules/payloads/stages/linux/x86/shell.rb +++ b/modules/payloads/stages/linux/x86/shell.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule include Msf::Payload::Linux diff --git a/modules/payloads/stages/multi/meterpreter.rb b/modules/payloads/stages/multi/meterpreter.rb index 80c2935faa..75293d2c33 100644 --- a/modules/payloads/stages/multi/meterpreter.rb +++ b/modules/payloads/stages/multi/meterpreter.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_multi' -require 'msf/base/sessions/meterpreter_options' ### # diff --git a/modules/payloads/stages/netware/shell.rb b/modules/payloads/stages/netware/shell.rb index 963d7a3baa..c29191ff45 100644 --- a/modules/payloads/stages/netware/shell.rb +++ b/modules/payloads/stages/netware/shell.rb @@ -4,8 +4,6 @@ ## require 'metasm' -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/stages/osx/armle/execute.rb b/modules/payloads/stages/osx/armle/execute.rb index 702216e348..d3a9efaadb 100644 --- a/modules/payloads/stages/osx/armle/execute.rb +++ b/modules/payloads/stages/osx/armle/execute.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/stages/osx/armle/shell.rb b/modules/payloads/stages/osx/armle/shell.rb index 46beae7aa6..e9696aa1a2 100644 --- a/modules/payloads/stages/osx/armle/shell.rb +++ b/modules/payloads/stages/osx/armle/shell.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/stages/osx/ppc/shell.rb b/modules/payloads/stages/osx/ppc/shell.rb index c4805fc9f3..dd45cd999f 100644 --- a/modules/payloads/stages/osx/ppc/shell.rb +++ b/modules/payloads/stages/osx/ppc/shell.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/stages/osx/x64/dupandexecve.rb b/modules/payloads/stages/osx/x64/dupandexecve.rb index 84f193b167..ecdd91c333 100644 --- a/modules/payloads/stages/osx/x64/dupandexecve.rb +++ b/modules/payloads/stages/osx/x64/dupandexecve.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/stages/osx/x64/meterpreter.rb b/modules/payloads/stages/osx/x64/meterpreter.rb index 9d5cbc2b39..0a2560b01d 100644 --- a/modules/payloads/stages/osx/x64/meterpreter.rb +++ b/modules/payloads/stages/osx/x64/meterpreter.rb @@ -3,9 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_x64_osx' -require 'msf/base/sessions/meterpreter_options' -require 'msf/base/sessions/mettle_config' module MetasploitModule include Msf::Sessions::MeterpreterOptions diff --git a/modules/payloads/stages/osx/x86/isight.rb b/modules/payloads/stages/osx/x86/isight.rb index b946e81b90..4ad9edd59c 100644 --- a/modules/payloads/stages/osx/x86/isight.rb +++ b/modules/payloads/stages/osx/x86/isight.rb @@ -3,11 +3,8 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/vncinject' require 'fileutils' require 'rex/compat' -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' ### # diff --git a/modules/payloads/stages/osx/x86/vforkshell.rb b/modules/payloads/stages/osx/x86/vforkshell.rb index 46a99f0ace..40319160df 100644 --- a/modules/payloads/stages/osx/x86/vforkshell.rb +++ b/modules/payloads/stages/osx/x86/vforkshell.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/stages/php/meterpreter.rb b/modules/payloads/stages/php/meterpreter.rb index 4fbe78b5be..c4a340a141 100644 --- a/modules/payloads/stages/php/meterpreter.rb +++ b/modules/payloads/stages/php/meterpreter.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_php' -require 'msf/base/sessions/meterpreter_options' require 'securerandom' module MetasploitModule diff --git a/modules/payloads/stages/python/meterpreter.rb b/modules/payloads/stages/python/meterpreter.rb index f6c6642546..bb77fab5e0 100644 --- a/modules/payloads/stages/python/meterpreter.rb +++ b/modules/payloads/stages/python/meterpreter.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_python' -require 'msf/base/sessions/meterpreter_options' module MetasploitModule diff --git a/modules/payloads/stages/windows/encrypted_shell.rb b/modules/payloads/stages/windows/encrypted_shell.rb index 9465654de2..d713903f99 100644 --- a/modules/payloads/stages/windows/encrypted_shell.rb +++ b/modules/payloads/stages/windows/encrypted_shell.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/encrypted_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/stages/windows/meterpreter.rb b/modules/payloads/stages/windows/meterpreter.rb index fef09ee0e3..a3024afb2f 100644 --- a/modules/payloads/stages/windows/meterpreter.rb +++ b/modules/payloads/stages/windows/meterpreter.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_x86_win' -require 'msf/base/sessions/meterpreter_options' ### # diff --git a/modules/payloads/stages/windows/patchupmeterpreter.rb b/modules/payloads/stages/windows/patchupmeterpreter.rb index 89796bb784..2b5edaff4e 100644 --- a/modules/payloads/stages/windows/patchupmeterpreter.rb +++ b/modules/payloads/stages/windows/patchupmeterpreter.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_x86_win' -require 'msf/base/sessions/meterpreter_options' ### # diff --git a/modules/payloads/stages/windows/shell.rb b/modules/payloads/stages/windows/shell.rb index 26dc4be562..d389ad71b5 100644 --- a/modules/payloads/stages/windows/shell.rb +++ b/modules/payloads/stages/windows/shell.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/stages/windows/upexec.rb b/modules/payloads/stages/windows/upexec.rb index 8b33317646..982d590381 100644 --- a/modules/payloads/stages/windows/upexec.rb +++ b/modules/payloads/stages/windows/upexec.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/stages/windows/vncinject.rb b/modules/payloads/stages/windows/vncinject.rb index 90492cd0e7..c51bb769c7 100644 --- a/modules/payloads/stages/windows/vncinject.rb +++ b/modules/payloads/stages/windows/vncinject.rb @@ -5,8 +5,6 @@ # Copyright (c) 2008 Stephen Fewer of Harmony Security (www.harmonysecurity.com) -require 'msf/base/sessions/vncinject' -require 'msf/base/sessions/vncinject_options' ### # diff --git a/modules/payloads/stages/windows/x64/encrypted_shell.rb b/modules/payloads/stages/windows/x64/encrypted_shell.rb index 94b2386ffc..ccd13cbb9a 100644 --- a/modules/payloads/stages/windows/x64/encrypted_shell.rb +++ b/modules/payloads/stages/windows/x64/encrypted_shell.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/encrypted_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/stages/windows/x64/meterpreter.rb b/modules/payloads/stages/windows/x64/meterpreter.rb index 4163aa1c41..7f931b5342 100644 --- a/modules/payloads/stages/windows/x64/meterpreter.rb +++ b/modules/payloads/stages/windows/x64/meterpreter.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/meterpreter_x64_win' -require 'msf/base/sessions/meterpreter_options' ### # diff --git a/modules/payloads/stages/windows/x64/shell.rb b/modules/payloads/stages/windows/x64/shell.rb index 2ff881aacd..8692964fe5 100644 --- a/modules/payloads/stages/windows/x64/shell.rb +++ b/modules/payloads/stages/windows/x64/shell.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/command_shell' -require 'msf/base/sessions/command_shell_options' module MetasploitModule diff --git a/modules/payloads/stages/windows/x64/vncinject.rb b/modules/payloads/stages/windows/x64/vncinject.rb index 0db23e673b..8351959ffc 100644 --- a/modules/payloads/stages/windows/x64/vncinject.rb +++ b/modules/payloads/stages/windows/x64/vncinject.rb @@ -3,8 +3,6 @@ # Current source: https://github.com/rapid7/metasploit-framework ## -require 'msf/base/sessions/vncinject' -require 'msf/base/sessions/vncinject_options' ### # diff --git a/msfvenom b/msfvenom index 3009c5355e..9d699126d1 100755 --- a/msfvenom +++ b/msfvenom @@ -32,6 +32,7 @@ def require_deps require 'msf/ui' require 'msf/base' require 'msf/core/payload_generator' + require 'msf/core/constants' @framework_loaded = true end diff --git a/spec/lib/msf/base/sessions/mainframe_shell_spec.rb b/spec/lib/msf/base/sessions/mainframe_shell_spec.rb index d015770ec7..37026959b9 100644 --- a/spec/lib/msf/base/sessions/mainframe_shell_spec.rb +++ b/spec/lib/msf/base/sessions/mainframe_shell_spec.rb @@ -1,6 +1,5 @@ # -*- coding:binary -*- require 'spec_helper' -require 'msf/base/sessions/mainframe_shell' ## # diff --git a/spec/lib/msf/base/sessions/meterpreter_spec.rb b/spec/lib/msf/base/sessions/meterpreter_spec.rb index 8932664f29..1de154598d 100644 --- a/spec/lib/msf/base/sessions/meterpreter_spec.rb +++ b/spec/lib/msf/base/sessions/meterpreter_spec.rb @@ -1,5 +1,4 @@ require 'spec_helper' -require 'msf/base/sessions/meterpreter' require 'rex/post/meterpreter/extensions/stdapi/net/interface' require 'rex/post/meterpreter/extensions/stdapi/net/route' diff --git a/spec/lib/msf/debug_spec.rb b/spec/lib/msf/debug_spec.rb index 41b37941bf..3c49e59fa1 100644 --- a/spec/lib/msf/debug_spec.rb +++ b/spec/lib/msf/debug_spec.rb @@ -1,6 +1,5 @@ require 'spec_helper' require 'msf/ui/debug' -require 'msf/base/config' require 'msf/ui/console/driver' RSpec.describe Msf::Ui::Debug do diff --git a/spec/lib/rex/proto/pjl/client_spec.rb b/spec/lib/rex/proto/pjl/client_spec.rb index 9e9b1ea633..188a7af7a5 100644 --- a/spec/lib/rex/proto/pjl/client_spec.rb +++ b/spec/lib/rex/proto/pjl/client_spec.rb @@ -1,6 +1,5 @@ require 'spec_helper' require 'msfenv' -require 'msf/base' require 'rex/proto/pjl' RSpec.describe Rex::Proto::PJL::Client do diff --git a/spec/support/shared/contexts/msf/simple/framework.rb b/spec/support/shared/contexts/msf/simple/framework.rb index 75455ce28f..06fbb6e231 100644 --- a/spec/support/shared/contexts/msf/simple/framework.rb +++ b/spec/support/shared/contexts/msf/simple/framework.rb @@ -1,5 +1,4 @@ # -*- coding:binary -*- -require 'msf/base/simple/framework' require 'metasploit/framework' RSpec.shared_context 'Msf::Simple::Framework' do diff --git a/spec/tools/cpassword_decrypt_spec.rb b/spec/tools/cpassword_decrypt_spec.rb index d3775df251..65780bcf74 100644 --- a/spec/tools/cpassword_decrypt_spec.rb +++ b/spec/tools/cpassword_decrypt_spec.rb @@ -3,7 +3,6 @@ require 'spec_helper' load Metasploit::Framework.root.join('tools/password/cpassword_decrypt.rb').to_path require 'msfenv' -require 'msf/base' RSpec.describe CPassword do context "Class methods" do diff --git a/spec/tools/virustotal_spec.rb b/spec/tools/virustotal_spec.rb index 04d9362261..f89ff7770b 100644 --- a/spec/tools/virustotal_spec.rb +++ b/spec/tools/virustotal_spec.rb @@ -3,7 +3,6 @@ require 'spec_helper' load Metasploit::Framework.root.join('tools/exploit/virustotal.rb').to_path require 'msfenv' -require 'msf/base' require 'digest/sha2' RSpec.describe VirusTotalUtility do diff --git a/test/functional/framework/msfconsole_spec.rb b/test/functional/framework/msfconsole_spec.rb index be47e1d987..5434c78492 100644 --- a/test/functional/framework/msfconsole_spec.rb +++ b/test/functional/framework/msfconsole_spec.rb @@ -4,7 +4,6 @@ $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..', 'lib')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..', 'test', 'lib')) require 'fileutils' -require 'msf/base' require 'msf_matchers' require 'msf_test_case' diff --git a/test/functional/meterpreter/meterpreter_java_spec.rb b/test/functional/meterpreter/meterpreter_java_spec.rb index cb63843318..a6b467458e 100644 --- a/test/functional/meterpreter/meterpreter_java_spec.rb +++ b/test/functional/meterpreter/meterpreter_java_spec.rb @@ -3,7 +3,6 @@ $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..', 'lib')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..', 'test', 'lib')) require 'fileutils' -require 'msf/base' require 'meterpreter_spec_helper' require 'meterpreter_specs' diff --git a/test/functional/meterpreter/meterpreter_php_spec.rb b/test/functional/meterpreter/meterpreter_php_spec.rb index c0caaa31d1..c892617314 100644 --- a/test/functional/meterpreter/meterpreter_php_spec.rb +++ b/test/functional/meterpreter/meterpreter_php_spec.rb @@ -3,7 +3,6 @@ $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..', 'lib')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..', 'test', 'lib')) require 'fileutils' -require 'msf/base' require 'meterpreter_spec_helper' require 'meterpreter_specs' diff --git a/test/functional/meterpreter/meterpreter_win32_spec.rb b/test/functional/meterpreter/meterpreter_win32_spec.rb index 4a53adea17..a768594750 100644 --- a/test/functional/meterpreter/meterpreter_win32_spec.rb +++ b/test/functional/meterpreter/meterpreter_win32_spec.rb @@ -4,7 +4,6 @@ $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..', 'lib')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..', 'test', 'lib')) require 'fileutils' -require 'msf/base' require 'meterpreter_spec_helper' require 'msf_matchers' require 'meterpreter_specs' diff --git a/test/tests/test_encoders.rb b/test/tests/test_encoders.rb index 2dc857ec3e..8ff7f6dd75 100644 --- a/test/tests/test_encoders.rb +++ b/test/tests/test_encoders.rb @@ -12,7 +12,6 @@ end $:.unshift(File.expand_path(File.join(File.dirname(msfbase), '..', '..', 'lib'))) require 'msfenv' -require 'msf/base' $msf = Msf::Simple::Framework.create diff --git a/test/tests/testbase.rb b/test/tests/testbase.rb index 97754caae9..2b67fd308f 100644 --- a/test/tests/testbase.rb +++ b/test/tests/testbase.rb @@ -3,7 +3,6 @@ $:.unshift(File.join(File.expand_path(File.dirname(__FILE__)), '..', '..', 'lib')) require 'rex' -require 'msf/base' require 'msf/ui' $msf = Msf::Simple::Framework.create diff --git a/tools/exploit/egghunter.rb b/tools/exploit/egghunter.rb index 6c626c2c56..778791d87f 100755 --- a/tools/exploit/egghunter.rb +++ b/tools/exploit/egghunter.rb @@ -11,7 +11,6 @@ while File.symlink?(msfbase) end $:.unshift(File.expand_path(File.join(File.dirname(msfbase), '..', '..', 'lib'))) require 'msfenv' -require 'msf/base' require 'rex' require 'optparse' require 'rex/exploitation/egghunter' diff --git a/tools/exploit/exe2vba.rb b/tools/exploit/exe2vba.rb index 61cfb96405..61d3f3b278 100755 --- a/tools/exploit/exe2vba.rb +++ b/tools/exploit/exe2vba.rb @@ -21,7 +21,6 @@ require 'msfenv' $:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB'] require 'rex' -require 'msf/base' def usage $stderr.puts(" Usage: #{$0} [exe] [vba]\n") diff --git a/tools/exploit/exe2vbs.rb b/tools/exploit/exe2vbs.rb index 3b0c36098f..242e4cd5fd 100755 --- a/tools/exploit/exe2vbs.rb +++ b/tools/exploit/exe2vbs.rb @@ -20,7 +20,6 @@ require 'msfenv' $:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB'] require 'rex' -require 'msf/base' def usage $stderr.puts(" Usage: #{$0} [exe] [vbs]\n") diff --git a/tools/exploit/jsobfu.rb b/tools/exploit/jsobfu.rb index 3bdbf8a84f..293a807055 100755 --- a/tools/exploit/jsobfu.rb +++ b/tools/exploit/jsobfu.rb @@ -12,7 +12,6 @@ end $:.unshift(File.expand_path(File.join(File.dirname(msfbase), '..', '..', 'lib'))) require 'msfenv' require 'rex' -require 'msf/base' require 'optparse' require 'rex/exploitation/jsobfu' diff --git a/tools/exploit/msf_irb_shell.rb b/tools/exploit/msf_irb_shell.rb index 733f00e6d9..71c5c62f91 100755 --- a/tools/exploit/msf_irb_shell.rb +++ b/tools/exploit/msf_irb_shell.rb @@ -16,7 +16,6 @@ require 'msfenv' $:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB'] require 'rex' -require 'msf/base' require 'msf/ui' framework = Msf::Simple::Framework.create diff --git a/tools/modules/cve_xref.rb b/tools/modules/cve_xref.rb index b79ca39704..b466503c06 100644 --- a/tools/modules/cve_xref.rb +++ b/tools/modules/cve_xref.rb @@ -179,7 +179,6 @@ class Utility end require 'msfenv' -require 'msf/base' def main filter = 'All' diff --git a/tools/modules/missing_payload_tests.rb b/tools/modules/missing_payload_tests.rb index b6155aaf67..db50f03243 100755 --- a/tools/modules/missing_payload_tests.rb +++ b/tools/modules/missing_payload_tests.rb @@ -19,7 +19,6 @@ end $:.unshift(File.expand_path(File.join(File.dirname(msfbase), '..', '..', 'lib'))) require 'msfenv' -require 'msf/base' framework = Msf::Simple::Framework.create() diff --git a/tools/modules/module_count.rb b/tools/modules/module_count.rb index bdd95b703e..49f72b6b81 100755 --- a/tools/modules/module_count.rb +++ b/tools/modules/module_count.rb @@ -21,7 +21,6 @@ $:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB'] require 'rex' require 'msf/ui' -require 'msf/base' # Always disable the database (we never need it just to list module # information). diff --git a/tools/modules/module_description.rb b/tools/modules/module_description.rb index c9ecb687f9..7f661c2245 100755 --- a/tools/modules/module_description.rb +++ b/tools/modules/module_description.rb @@ -21,7 +21,6 @@ $:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB'] require 'rex' require 'msf/ui' -require 'msf/base' sort = 0 filter= 'All' diff --git a/tools/modules/module_disclodate.rb b/tools/modules/module_disclodate.rb index fb33b5755b..f6359cf310 100755 --- a/tools/modules/module_disclodate.rb +++ b/tools/modules/module_disclodate.rb @@ -21,7 +21,6 @@ $:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB'] require 'rex' require 'msf/ui' -require 'msf/base' nilc = false sort = 0 diff --git a/tools/modules/module_license.rb b/tools/modules/module_license.rb index ced768e068..cf6a4c5458 100755 --- a/tools/modules/module_license.rb +++ b/tools/modules/module_license.rb @@ -21,7 +21,6 @@ $:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB'] require 'rex' require 'msf/ui' -require 'msf/base' def lic_short(l) if (l.class == Array) diff --git a/tools/modules/module_missing_reference.rb b/tools/modules/module_missing_reference.rb index d473b4dc24..5e03e03a01 100644 --- a/tools/modules/module_missing_reference.rb +++ b/tools/modules/module_missing_reference.rb @@ -8,7 +8,6 @@ $:.unshift(File.expand_path(File.join(File.dirname(msfbase), '..', '..', 'lib')) $:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB'] require 'msfenv' -require 'msf/base' require 'rex' # See lib/msf/core/module/reference.rb diff --git a/tools/modules/module_mixins.rb b/tools/modules/module_mixins.rb index 147588df4f..ee4c0ce579 100755 --- a/tools/modules/module_mixins.rb +++ b/tools/modules/module_mixins.rb @@ -21,7 +21,6 @@ $:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB'] require 'rex' require 'msf/ui' -require 'msf/base' def do_want(klass) return false if klass.class != Module diff --git a/tools/modules/module_payloads.rb b/tools/modules/module_payloads.rb index afe920e61f..bc393834ea 100755 --- a/tools/modules/module_payloads.rb +++ b/tools/modules/module_payloads.rb @@ -21,7 +21,6 @@ $:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB'] require 'rex' require 'msf/ui' -require 'msf/base' # Initialize the simplified framework instance. $framework = Msf::Simple::Framework.create('DisableDatabase' => true) diff --git a/tools/modules/module_ports.rb b/tools/modules/module_ports.rb index 70ac8c81b3..5f35f78e45 100755 --- a/tools/modules/module_ports.rb +++ b/tools/modules/module_ports.rb @@ -21,7 +21,6 @@ $:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB'] require 'rex' require 'msf/ui' -require 'msf/base' # Initialize the simplified framework instance. $framework = Msf::Simple::Framework.create('DisableDatabase' => true) diff --git a/tools/modules/module_rank.rb b/tools/modules/module_rank.rb index 4affbf62c9..d71397ea6a 100755 --- a/tools/modules/module_rank.rb +++ b/tools/modules/module_rank.rb @@ -21,7 +21,6 @@ $:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB'] require 'rex' require 'msf/ui' -require 'msf/base' ranks= Hash.new diff --git a/tools/modules/module_reference.rb b/tools/modules/module_reference.rb index 72df651254..676a805b83 100755 --- a/tools/modules/module_reference.rb +++ b/tools/modules/module_reference.rb @@ -21,7 +21,6 @@ $:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB'] require 'rex' require 'msf/ui' -require 'msf/base' require 'uri' diff --git a/tools/modules/module_targets.rb b/tools/modules/module_targets.rb index 6c81157f94..0612c0c346 100755 --- a/tools/modules/module_targets.rb +++ b/tools/modules/module_targets.rb @@ -21,7 +21,6 @@ $:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB'] require 'rex' require 'msf/ui' -require 'msf/base' sort=0 fil = 0 diff --git a/tools/modules/payload_lengths.rb b/tools/modules/payload_lengths.rb index 724ea880ab..914c93d5bd 100755 --- a/tools/modules/payload_lengths.rb +++ b/tools/modules/payload_lengths.rb @@ -21,7 +21,6 @@ $:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB'] require 'rex' require 'msf/ui' -require 'msf/base' Indent = ' ' diff --git a/tools/modules/update_payload_cached_sizes.rb b/tools/modules/update_payload_cached_sizes.rb index f3c17ac05a..445a376171 100755 --- a/tools/modules/update_payload_cached_sizes.rb +++ b/tools/modules/update_payload_cached_sizes.rb @@ -23,7 +23,6 @@ gem 'rex-text' require 'rex' require 'msf/ui' -require 'msf/base' require 'msf/util/payload_cached_size' # Initialize the simplified framework instance. diff --git a/tools/payloads/ysoserial/dot_net.rb b/tools/payloads/ysoserial/dot_net.rb index 7cb97e413a..3126ea056f 100755 --- a/tools/payloads/ysoserial/dot_net.rb +++ b/tools/payloads/ysoserial/dot_net.rb @@ -11,7 +11,6 @@ while File.symlink?(msfbase) end $:.unshift(File.expand_path(File.join(File.dirname(msfbase), '..', '..', '..', 'lib'))) require 'msfenv' -require 'msf/base' require 'rex' require 'optparse'