Skip to content

Commit 0724b0d

Browse files
committed
Defer loading dependencies
1 parent 3106aef commit 0724b0d

19 files changed

Lines changed: 64 additions & 50 deletions

File tree

Gemfile.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ GEM
331331
mutex_m
332332
railties (~> 7.0)
333333
zeitwerk
334-
metasploit-credential (6.0.21)
334+
metasploit-credential (6.0.23)
335335
bigdecimal
336336
csv
337337
drb
@@ -353,17 +353,17 @@ GEM
353353
mutex_m
354354
railties (~> 7.0)
355355
metasploit-payloads (2.0.245)
356-
metasploit_data_models (6.0.15)
357-
activerecord (~> 7.0)
358-
activesupport (~> 7.0)
356+
metasploit_data_models (6.0.18)
357+
activerecord (>= 7.0, < 8.1)
358+
activesupport (>= 7.0, < 8.1)
359359
arel-helpers
360360
bigdecimal
361361
drb
362362
metasploit-concern
363-
metasploit-model (~> 5.0.4)
363+
metasploit-model (>= 5.0.4)
364364
mutex_m
365365
pg
366-
railties (~> 7.0)
366+
railties (>= 7.0, < 8.1)
367367
recog
368368
webrick
369369
metasploit_payloads-mettle (1.0.46)
@@ -498,7 +498,7 @@ GEM
498498
rex-struct2
499499
rex-text
500500
rex-core (0.1.36)
501-
rex-encoder (0.1.8)
501+
rex-encoder (0.1.10)
502502
metasm
503503
rex-arch
504504
rex-text
@@ -531,7 +531,7 @@ GEM
531531
metasm
532532
rex-core
533533
rex-text
534-
rex-socket (0.1.64)
534+
rex-socket (0.1.65)
535535
dnsruby
536536
rex-core
537537
rex-sslscan (0.1.13)

db/schema.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema[7.2].define(version: 2026_01_30_124052) do
13+
ActiveRecord::Schema[7.2].define(version: 2026_04_11_000000) do
1414
# These are extensions that must be enabled in order to support this database
1515
enable_extension "plpgsql"
1616

@@ -665,6 +665,8 @@
665665
t.integer "session_id"
666666
t.integer "loot_id"
667667
t.text "fail_detail"
668+
t.string "check_code"
669+
t.text "check_detail"
668670
end
669671

670672
create_table "vuln_details", id: :serial, force: :cascade do |t|

lib/metasploit/framework.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,10 @@
66
#
77

88
require 'active_support'
9-
require 'bcrypt'
109
require 'json'
1110
require 'msgpack'
1211
require 'metasploit/credential'
1312
require 'nokogiri'
14-
# railties has not autorequire defined
15-
# rkelly-remix is a fork of rkelly, so it's autorequire is 'rkelly' and not 'rkelly-remix'
16-
require 'rkelly'
17-
require 'robots'
18-
require 'zip'
1913
require 'msf'
2014
#
2115
# Project

lib/msf/core/db_manager/user.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'bcrypt'
21
require 'securerandom'
32

43
module Msf::DBManager::User

lib/msf/core/exe/segment_appender.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
module Msf
33
module Exe
44

5-
require 'metasm'
6-
75
class SegmentAppender < SegmentInjector
86

97
def payload_stub(prefix)

lib/msf/core/exe/segment_injector.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
module Msf
33
module Exe
44

5-
require 'metasm'
6-
75
class SegmentInjector
86

97
attr_accessor :payload

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# -*- coding: binary -*-
22
require 'rex/encoder/ndr'
3-
require 'recog'
43

54
module Msf
65
module Exploit::Remote::SMB

lib/msf/core/payload.rb

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

43
module Msf
54

lib/msf/util/document_generator/pull_request_finder.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'octokit'
21
require 'nokogiri'
32
require 'net/http'
43

@@ -39,6 +38,8 @@ def initialize
3938
raise PullRequestFinder::Exception, 'GITHUB_OAUTH_TOKEN environment variable not set.'
4039
end
4140

41+
require 'octokit'
42+
4243
self.owner = 'rapid7'
4344
self.repository = "#{owner}/metasploit-framework"
4445
self.branch = 'master'

lib/msf/util/exe/common.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ module Msf::Util::EXE::Common
66
require 'rex/random_identifier'
77
require 'rex/zip'
88
require 'rex/powershell'
9-
require 'metasm'
109
require 'digest/sha1'
1110

1211
def self.included(base)

0 commit comments

Comments
 (0)