Skip to content

Commit b95be3e

Browse files
committed
Zeitwerk rex folder
1 parent debe424 commit b95be3e

File tree

529 files changed

+420
-1316
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

529 files changed

+420
-1316
lines changed

lib/metasploit/framework/data_service/proxy/core.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
require 'open3'
2-
require 'rex/ui'
3-
require 'rex/logging'
42
require 'metasploit/framework/data_service/proxy/data_proxy_auto_loader'
53

64
#

lib/metasploit/framework/login_scanner/acpp.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
require 'metasploit/framework/tcp/client'
2-
require 'rex/proto/acpp'
32
require 'metasploit/framework/login_scanner/base'
43
require 'metasploit/framework/login_scanner/rex_socket'
54

lib/metasploit/framework/login_scanner/http.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require 'rex/proto/http'
1+
22
require 'metasploit/framework/login_scanner/base'
33
require 'metasploit/framework/login_scanner/rex_socket'
44

lib/metasploit/framework/login_scanner/mqtt.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
require 'metasploit/framework/tcp/client'
2-
require 'rex/proto/mqtt'
32
require 'metasploit/framework/login_scanner/base'
43
require 'metasploit/framework/login_scanner/rex_socket'
54

lib/metasploit/framework/login_scanner/vnc.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
require 'metasploit/framework/tcp/client'
2-
require 'rex/proto/rfb'
32
require 'metasploit/framework/login_scanner/base'
43
require 'metasploit/framework/login_scanner/rex_socket'
54

lib/msf.rb

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1-
require 'rex/proto/ntlm'
21
require 'rex/arch'
3-
include Rex::Arch
2+
require 'rex/logging'
43

5-
NTLM_CONST ||= ::Rex::Proto::NTLM::Constants
6-
NTLM_CRYPT ||= ::Rex::Proto::NTLM::Crypt
7-
NTLM_UTILS ||= ::Rex::Proto::NTLM::Utils
8-
NTLM_BASE ||= ::Rex::Proto::NTLM::Base
9-
NTLM_MESSAGE ||= ::Rex::Proto::NTLM::Message
4+
include Rex::Arch
5+
include Rex::Logging
106

117
module Msf
128

139
LogSource = "core"
1410
end
1511

1612
require 'msf/core/exception' # TODO: temporary require until we can split up the exceptions file and namespace properly
13+
require 'msf/core/constants'
1714
require 'msf_autoload'
15+
16+
NTLM_CONST ||= ::Rex::Proto::NTLM::Constants
17+
NTLM_CRYPT ||= ::Rex::Proto::NTLM::Crypt
18+
NTLM_UTILS ||= ::Rex::Proto::NTLM::Utils
19+
NTLM_BASE ||= ::Rex::Proto::NTLM::Base
20+
NTLM_MESSAGE ||= ::Rex::Proto::NTLM::Message

lib/msf/base/logging.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- coding: binary -*-
22
require 'rex'
3+
require 'rex/logging'
34
module Msf
45

56
# This module provides an initialization interface for logging.

lib/msf/base/sessions/command_shell.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
require 'shellwords'
33
require 'rex/text/table'
44
require "base64"
5-
require 'rex/parser/arguments'
65
module Msf
76
module Sessions
87

lib/msf/base/sessions/meterpreter.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: binary -*-
2-
3-
require 'rex/post/meterpreter'
2+
require 'rex/post/meterpreter/client'
3+
require 'rex/post/meterpreter/ui/console'
44

55
module Msf
66
module Sessions

lib/msf/base/sessions/vncinject.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: binary -*-
2-
require 'rex/services/local_relay'
32

43
module Msf
54
module Sessions

lib/msf/core/auxiliary/iax2.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: binary -*-
2-
require 'rex/proto/iax2/client'
32

43
module Msf
54

lib/msf/core/auxiliary/kademlia.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# -*- coding: binary -*-
22

3-
require 'rex/proto/kademlia'
43

54
module Msf
65

lib/msf/core/auxiliary/mqtt.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# -*- coding: binary -*-
22

3-
require 'rex/proto/mqtt'
43

54
module Msf
65
module Auxiliary::MQTT

lib/msf/core/auxiliary/natpmp.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: binary -*-
2-
require 'rex/proto/natpmp'
32

43
module Msf
54

lib/msf/core/auxiliary/nmap.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# -*- coding: binary -*-
2-
require 'rex/parser/nmap_nokogiri'
3-
require 'rex/parser/nmap_xml'
42
require 'open3'
53

64
module Msf

lib/msf/core/auxiliary/ntp.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: binary -*-
2-
require 'rex/proto/ntp'
32
module Msf
43

54
###

lib/msf/core/auxiliary/password_cracker.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# -*- coding: binary -*-
22
require 'open3'
33
require 'fileutils'
4-
require 'rex/proto/ntlm/crypt'
54
require 'metasploit/framework/password_crackers/cracker'
65
require 'metasploit/framework/password_crackers/wordlist'
76
require 'metasploit/framework/password_crackers/jtr/formatter'

lib/msf/core/auxiliary/report.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# -*- coding: binary -*-
2+
3+
require 'metasploit/framework/require'
4+
25
module Msf
36

47
###

lib/msf/core/db_manager/import/acunetix.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'rex/parser/acunetix_nokogiri'
21

32
module Msf::DBManager::Import::Acunetix
43
def import_acunetix_noko_stream(args={},&block)

lib/msf/core/db_manager/import/appscan.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'rex/parser/appscan_nokogiri'
21

32
module Msf::DBManager::Import::Appscan
43
def import_appscan_noko_stream(args={},&block)

lib/msf/core/db_manager/import/burp_issue.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'rex/parser/burp_issue_nokogiri'
21

32
module Msf::DBManager::Import::BurpIssue
43
def import_burp_issue_xml(args={}, &block)

lib/msf/core/db_manager/import/burp_session.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'rex/parser/burp_session_nokogiri'
21

32
module Msf::DBManager::Import::BurpSession
43
def import_burp_session_noko_stream(args={},&block)
@@ -15,7 +14,6 @@ def import_burp_session_xml(args={}, &block)
1514
bl = validate_ips(args[:blacklist]) ? args[:blacklist].split : []
1615
wspace = Msf::Util::DBManager.process_opts_workspace(args, framework).name
1716
if Rex::Parser.nokogiri_loaded
18-
# Rex::Parser.reload("burp_session_nokogiri.rb")
1917
parser = "Nokogiri v#{::Nokogiri::VERSION}"
2018
noko_args = args.dup
2119
noko_args[:blacklist] = bl

lib/msf/core/db_manager/import/ci.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'rex/parser/ci_nokogiri'
21

32
module Msf::DBManager::Import::CI
43
def import_ci_noko_stream(args, &block)

lib/msf/core/db_manager/import/foundstone.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'rex/parser/foundstone_nokogiri'
21

32
module Msf::DBManager::Import::Foundstone
43
def import_foundstone_noko_stream(args={},&block)

lib/msf/core/db_manager/import/fusion_vm.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'rex/parser/fusionvm_nokogiri'
21

32
module Msf::DBManager::Import::FusionVM
43
def import_fusionvm_xml(args={})

lib/msf/core/db_manager/import/gpp.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'rex/parser/group_policy_preferences'
21

32
module Msf::DBManager::Import::GPP
43
def import_gpp_xml(args = {}, &block)
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
require 'rex/parser/ip360_aspl_xml'
21

32
module Msf::DBManager::Import::IP360
43
autoload :ASPL, 'msf/core/db_manager/import/ip360/aspl'
54
autoload :V3, 'msf/core/db_manager/import/ip360/v3'
65

76
include Msf::DBManager::Import::IP360::ASPL
87
include Msf::DBManager::Import::IP360::V3
9-
end
8+
end

lib/msf/core/db_manager/import/ip360/aspl.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'rex/parser/ip360_aspl_xml'
21

32
module Msf::DBManager::Import::IP360::ASPL
43
#

lib/msf/core/db_manager/import/ip360/v3.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'rex/parser/ip360_xml'
21

32
module Msf::DBManager::Import::IP360::V3
43
#

lib/msf/core/db_manager/import/mbsa.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'rex/parser/mbsa_nokogiri'
21

32
module Msf::DBManager::Import::MBSA
43
def import_mbsa_noko_stream(args={},&block)

lib/msf/core/db_manager/import/nessus/xml/v2.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'rex/parser/nessus_xml'
21

32
module Msf::DBManager::Import::Nessus::XML::V2
43
def import_nessus_xml_v2(args={}, &block)

lib/msf/core/db_manager/import/netsparker.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'rex/parser/netsparker_xml'
21

32
module Msf::DBManager::Import::Netsparker
43
# Process NetSparker XML

lib/msf/core/db_manager/import/nexpose/raw.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
require 'rex/parser/nexpose_raw_nokogiri'
2-
require 'rex/parser/nexpose_xml'
31

42
module Msf::DBManager::Import::Nexpose::Raw
53
def import_nexpose_raw_noko_stream(args, &block)

lib/msf/core/db_manager/import/nexpose/simple.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'rex/parser/nexpose_simple_nokogiri'
21

32
module Msf::DBManager::Import::Nexpose::Simple
43
def import_nexpose_noko_stream(args, &block)

lib/msf/core/db_manager/import/nmap.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
require 'rex/parser/nmap_nokogiri'
2-
require 'rex/parser/nmap_xml'
31

42
module Msf::DBManager::Import::Nmap
53
def import_nmap_noko_stream(args, &block)

lib/msf/core/db_manager/import/open_vas.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'rex/parser/openvas_nokogiri'
21

32
module Msf::DBManager::Import::OpenVAS
43
def import_openvas_noko_stream(args={}, &block)

lib/msf/core/db_manager/import/outpost24.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'rex/parser/outpost24_nokogiri'
21

32
module Msf::DBManager::Import::Outpost24
43
def import_outpost24_noko_stream(args={},&block)

lib/msf/core/db_manager/import/retina.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# -*- coding: binary -*-
22

3-
require 'rex/parser/retina_xml'
43

54
module Msf::DBManager::Import::Retina
65
# Process Retina XML

lib/msf/core/db_manager/import/wapiti.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'rex/parser/wapiti_nokogiri'
21

32
module Msf::DBManager::Import::Wapiti
43
def import_wapiti_xml(args={}, &block)

lib/msf/core/exploit/cmd_stager.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- coding: binary -*-
22

3+
require 'rex/exploitation'
34
require 'rex/exploitation/cmdstager'
45

56
module Msf

lib/msf/core/exploit/dhcp_server.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# -*- coding: binary -*-
22

3-
require 'rex/proto/dhcp'
43

54
module Msf
65

lib/msf/core/exploit/kernel_mode.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# -*- coding: binary -*-
22
module Msf
33

4-
require 'rex/payloads/win32/kernel'
54

65
module Exploit::KernelMode
76

lib/msf/core/exploit/remote/dcerpc.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: binary -*-
2-
require 'rex/proto/dcerpc'
32
require 'rex/encoder/ndr'
43
module Msf
54

lib/msf/core/exploit/remote/dns.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: binary -*-
2-
require 'rex/proto/dns'
32

43

54
module Msf

lib/msf/core/exploit/remote/dns/client.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: binary -*-
2-
require 'rex/proto/dns'
32

43

54
module Msf

lib/msf/core/exploit/remote/dns/common.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: binary -*-
2-
require 'rex/proto/dns'
32

43

54
module Msf

lib/msf/core/exploit/remote/dns/server.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: binary -*-
2-
require 'rex/proto/dns'
32

43
module Msf
54

lib/msf/core/exploit/remote/firefox_addon_generator.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#
88
###
99

10+
require 'rex/zip'
11+
1012
module Msf
1113
module Exploit::Remote::FirefoxAddonGenerator
1214
include Msf::Exploit::Remote::FirefoxPrivilegeEscalation

lib/msf/core/exploit/remote/http/wordpress/admin.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: binary -*-
2+
require 'rex/mime/message'
23

34
module Msf::Exploit::Remote::HTTP::Wordpress::Admin
45
# Uploads a plugin using a valid admin session.

lib/msf/core/exploit/remote/java/rmi/client.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: binary -*-
2-
require 'rex/proto/rmi'
32
require 'rex/java/serialization'
43
require 'stringio'
54
module Msf

lib/msf/core/exploit/remote/kerberos/client.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: binary -*-
2-
require 'rex/proto/kerberos'
32

43
module Msf
54
class Exploit

lib/msf/core/exploit/remote/kerberos/client/as_request.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: binary -*-
2-
require 'rex/proto/kerberos'
32

43
module Msf
54
class Exploit

lib/msf/core/exploit/remote/kerberos/client/as_response.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: binary -*-
2-
require 'rex/proto/kerberos'
32

43
module Msf
54
class Exploit

lib/msf/core/exploit/remote/kerberos/client/cache_credential.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: binary -*-
2-
require 'rex/proto/kerberos'
32

43
module Msf
54
class Exploit

lib/msf/core/exploit/remote/kerberos/client/pac.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: binary -*-
2-
require 'rex/proto/kerberos'
32

43
module Msf
54
class Exploit

lib/msf/core/exploit/remote/kerberos/client/tgs_request.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: binary -*-
2-
require 'rex/proto/kerberos'
32

43
module Msf
54
class Exploit

lib/msf/core/exploit/remote/kerberos/client/tgs_response.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: binary -*-
2-
require 'rex/proto/kerberos'
32

43
module Msf
54
class Exploit

lib/msf/core/exploit/remote/nuuo.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'rex/proto/nuuo'
21

32
###
43
#

lib/msf/core/exploit/remote/sip.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# -*- coding: binary -*-
22

3-
require 'rex/proto/sip/response'
43

54
module Msf
65
# SIP protocol support

0 commit comments

Comments
 (0)