Skip to content

Commit 04c368f

Browse files
authored
Merge pull request #20109 from dwelch-r7/rails-7.2-upgrade
Bump rails version to 7.2 [WIP]
2 parents a02dff9 + 39356d5 commit 04c368f

File tree

13 files changed

+193
-268
lines changed

13 files changed

+193
-268
lines changed

Gemfile.lock

Lines changed: 55 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ PATH
44
metasploit-framework (6.4.70)
55
aarch64
66
abbrev
7-
actionpack (~> 7.1.0)
8-
activerecord (~> 7.1.0)
9-
activesupport (~> 7.1.0)
7+
actionpack (~> 7.2.0)
8+
activerecord (~> 7.2.0)
9+
activesupport (~> 7.2.0)
1010
aws-sdk-ec2
1111
aws-sdk-ec2instanceconnect
1212
aws-sdk-iam
@@ -20,7 +20,6 @@ PATH
2020
bootsnap
2121
bson
2222
chunky_png
23-
concurrent-ruby (= 1.3.4)
2423
csv
2524
dnsruby
2625
drb
@@ -38,7 +37,7 @@ PATH
3837
getoptlong
3938
hrr_rb_ssh-ed25519
4039
http-cookie
41-
irb (~> 1.7.4)
40+
irb
4241
jsobfu
4342
json
4443
metasm
@@ -123,41 +122,41 @@ GEM
123122
aarch64 (2.1.0)
124123
racc (~> 1.6)
125124
abbrev (0.1.2)
126-
actionpack (7.1.5.1)
127-
actionview (= 7.1.5.1)
128-
activesupport (= 7.1.5.1)
125+
actionpack (7.2.2.1)
126+
actionview (= 7.2.2.1)
127+
activesupport (= 7.2.2.1)
129128
nokogiri (>= 1.8.5)
130129
racc
131-
rack (>= 2.2.4)
130+
rack (>= 2.2.4, < 3.2)
132131
rack-session (>= 1.0.1)
133132
rack-test (>= 0.6.3)
134133
rails-dom-testing (~> 2.2)
135134
rails-html-sanitizer (~> 1.6)
136-
actionview (7.1.5.1)
137-
activesupport (= 7.1.5.1)
135+
useragent (~> 0.16)
136+
actionview (7.2.2.1)
137+
activesupport (= 7.2.2.1)
138138
builder (~> 3.1)
139139
erubi (~> 1.11)
140140
rails-dom-testing (~> 2.2)
141141
rails-html-sanitizer (~> 1.6)
142-
activemodel (7.1.5.1)
143-
activesupport (= 7.1.5.1)
144-
activerecord (7.1.5.1)
145-
activemodel (= 7.1.5.1)
146-
activesupport (= 7.1.5.1)
142+
activemodel (7.2.2.1)
143+
activesupport (= 7.2.2.1)
144+
activerecord (7.2.2.1)
145+
activemodel (= 7.2.2.1)
146+
activesupport (= 7.2.2.1)
147147
timeout (>= 0.4.0)
148-
activesupport (7.1.5.1)
148+
activesupport (7.2.2.1)
149149
base64
150150
benchmark (>= 0.3)
151151
bigdecimal
152-
concurrent-ruby (~> 1.0, >= 1.0.2)
152+
concurrent-ruby (~> 1.0, >= 1.3.1)
153153
connection_pool (>= 2.2.5)
154154
drb
155155
i18n (>= 1.6, < 2)
156156
logger (>= 1.4.2)
157157
minitest (>= 5.1)
158-
mutex_m
159158
securerandom (>= 0.3)
160-
tzinfo (~> 2.0)
159+
tzinfo (~> 2.0, >= 2.0.5)
161160
addressable (2.8.7)
162161
public_suffix (>= 2.0.2, < 7.0)
163162
afm (0.2.2)
@@ -220,9 +219,9 @@ GEM
220219
csv (3.3.2)
221220
daemons (1.4.1)
222221
date (3.4.1)
223-
debug (1.8.0)
224-
irb (>= 1.5.0)
225-
reline (>= 0.3.1)
222+
debug (1.10.0)
223+
irb (~> 1.10)
224+
reline (>= 0.3.8)
226225
diff-lcs (1.6.0)
227226
dnsruby (1.72.4)
228227
base64 (~> 0.2.0)
@@ -243,6 +242,7 @@ GEM
243242
em-socksify (0.3.3)
244243
base64
245244
eventmachine (>= 1.0.0.beta.4)
245+
erb (5.0.1)
246246
erubi (1.13.1)
247247
eventmachine (1.2.7)
248248
factory_bot (6.5.1)
@@ -287,8 +287,10 @@ GEM
287287
concurrent-ruby (~> 1.0)
288288
io-console (0.8.0)
289289
ipaddr (1.2.7)
290-
irb (1.7.4)
291-
reline (>= 0.3.6)
290+
irb (1.15.2)
291+
pp (>= 0.6.0)
292+
rdoc (>= 4.0.0)
293+
reline (>= 0.4.2)
292294
jmespath (1.6.2)
293295
jsobfu (0.4.2)
294296
rkelly-remix
@@ -305,9 +307,11 @@ GEM
305307
nokogiri (>= 1.12.0)
306308
memory_profiler (1.1.0)
307309
metasm (1.0.5)
308-
metasploit-concern (5.0.4)
310+
metasploit-concern (5.0.5)
309311
activemodel (~> 7.0)
310312
activesupport (~> 7.0)
313+
drb
314+
mutex_m
311315
railties (~> 7.0)
312316
zeitwerk
313317
metasploit-credential (6.0.16)
@@ -324,9 +328,12 @@ GEM
324328
rex-socket
325329
rubyntlm
326330
rubyzip
327-
metasploit-model (5.0.3)
331+
metasploit-model (5.0.4)
328332
activemodel (~> 7.0)
329333
activesupport (~> 7.0)
334+
bigdecimal
335+
drb
336+
mutex_m
330337
railties (~> 7.0)
331338
metasploit-payloads (2.0.221)
332339
metasploit_data_models (6.0.9)
@@ -395,13 +402,19 @@ GEM
395402
ruby-rc4
396403
ttfunk
397404
pg (1.5.9)
405+
pp (0.6.2)
406+
prettyprint
407+
prettyprint (0.2.0)
398408
prism (1.4.0)
399409
pry (0.14.2)
400410
coderay (~> 1.1)
401411
method_source (~> 1.0)
402412
pry-byebug (3.10.1)
403413
byebug (~> 11.0)
404414
pry (>= 0.13, < 0.15)
415+
psych (5.2.6)
416+
date
417+
stringio
405418
public_suffix (6.0.1)
406419
puma (6.6.0)
407420
nio4r (~> 2.0)
@@ -424,10 +437,10 @@ GEM
424437
rails-html-sanitizer (1.6.2)
425438
loofah (~> 2.21)
426439
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
427-
railties (7.1.5.1)
428-
actionpack (= 7.1.5.1)
429-
activesupport (= 7.1.5.1)
430-
irb
440+
railties (7.2.2.1)
441+
actionpack (= 7.2.2.1)
442+
activesupport (= 7.2.2.1)
443+
irb (~> 1.13)
431444
rackup (>= 1.0.0)
432445
rake (>= 12.2)
433446
thor (~> 1.0, >= 1.2.2)
@@ -437,6 +450,9 @@ GEM
437450
rasn1 (0.14.0)
438451
strptime (~> 0.2.5)
439452
rb-readline (0.5.5)
453+
rdoc (6.14.0)
454+
erb
455+
psych (>= 4.0.0)
440456
recog (3.1.14)
441457
nokogiri
442458
redcarpet (3.6.1)
@@ -513,10 +529,10 @@ GEM
513529
rspec-mocks (3.13.2)
514530
diff-lcs (>= 1.2.0, < 2.0)
515531
rspec-support (~> 3.13.0)
516-
rspec-rails (7.1.1)
517-
actionpack (>= 7.0)
518-
activesupport (>= 7.0)
519-
railties (>= 7.0)
532+
rspec-rails (8.0.0)
533+
actionpack (>= 7.2)
534+
activesupport (>= 7.2)
535+
railties (>= 7.2)
520536
rspec-core (~> 3.13)
521537
rspec-expectations (~> 3.13)
522538
rspec-mocks (~> 3.13)
@@ -540,7 +556,8 @@ GEM
540556
prism (~> 1.4)
541557
ruby-macho (4.1.0)
542558
ruby-mysql (4.2.0)
543-
ruby-prof (1.7.1)
559+
ruby-prof (1.7.2)
560+
base64
544561
ruby-progressbar (1.13.0)
545562
ruby-rc4 (0.1.5)
546563
ruby2_keywords (0.0.5)
@@ -570,6 +587,7 @@ GEM
570587
sqlite3 (1.7.3)
571588
mini_portile2 (~> 2.8.0)
572589
sshkey (3.0.0)
590+
stringio (3.1.7)
573591
strptime (0.2.5)
574592
swagger-blocks (3.0.0)
575593
test-prof (1.4.4)
@@ -591,6 +609,7 @@ GEM
591609
unicode-emoji (~> 4.0, >= 4.0.4)
592610
unicode-emoji (4.0.4)
593611
unix-crypt (1.3.1)
612+
useragent (0.16.11)
594613
warden (1.2.9)
595614
rack (>= 2.0.9)
596615
webrick (1.9.1)

config/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Application < Rails::Application
4141
config.paths['config/database'] = [Metasploit::Framework::Database.configurations_pathname.try(:to_path)]
4242
config.autoloader = :zeitwerk
4343

44-
config.load_defaults 7.1
44+
config.load_defaults 7.2
4545

4646
config.eager_load = false
4747
end

db/schema.rb

Lines changed: 1 addition & 2 deletions
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.1].define(version: 2025_02_04_172657) do
13+
ActiveRecord::Schema[7.2].define(version: 2025_02_04_172657) do
1414
# These are extensions that must be enabled in order to support this database
1515
enable_extension "plpgsql"
1616

@@ -803,5 +803,4 @@
803803
t.boolean "limit_to_network", default: false, null: false
804804
t.boolean "import_fingerprint", default: false
805805
end
806-
807806
end

lib/metasploit/framework/rails_version_constraint.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module Metasploit
44
module Framework
55
module RailsVersionConstraint
6-
RAILS_VERSION = '~> 7.1.0'
6+
RAILS_VERSION = '~> 7.2.0'
77
end
88
end
99
end

lib/msf/core/db_manager/cred.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def creds(opts)
1616
query = query.includes(logins: [ :service, { service: :host } ])
1717

1818
if opts[:type].present?
19-
query = query.where('"metasploit_credential_privates"."type" = ?', opts[:type])
19+
query = query.where('"metasploit_credential_privates"."type" = ?', opts[:type].to_s)
2020
end
2121

2222
if opts[:jtr_format].present?

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def mysql_login(user='root', pass='', db=nil)
4343
begin
4444
self.mysql_conn = ::Rex::Proto::MySQL::Client.connect(rhost, user, pass, db, rport, io: self.sock)
4545
# Deprecating this in favor off `mysql_conn`
46-
@mysql_handle = ActiveSupport::Deprecation::DeprecatedInstanceVariableProxy.new(self, :mysql_conn, :@mysql_handle, ActiveSupport::Deprecation.new)
46+
@mysql_handle = ActiveSupport::Deprecation::DeprecatedInstanceVariableProxy.new(self, :mysql_conn, :@mysql_handle, deprecator: ActiveSupport::Deprecation.new)
4747

4848
rescue Errno::ECONNREFUSED
4949
print_error("Connection refused")

metasploit-framework.gemspec

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ Gem::Specification.new do |spec|
219219
# SSH server library with ed25519
220220
spec.add_runtime_dependency 'hrr_rb_ssh-ed25519'
221221
# Needed for irb internal command
222-
spec.add_runtime_dependency 'irb', '~> 1.7.4'
222+
spec.add_runtime_dependency 'irb'
223223

224224
# AWS enumeration modules
225225
spec.add_runtime_dependency 'aws-sdk-s3'
@@ -248,10 +248,6 @@ Gem::Specification.new do |spec|
248248
# to generate PNG files, not to parse untrusted PNG files.
249249
spec.add_runtime_dependency 'chunky_png'
250250

251-
# Temporary, remove once the Rails 7.1 update is complete
252-
# see: https://stackoverflow.com/questions/79360526/uninitialized-constant-activesupportloggerthreadsafelevellogger-nameerror
253-
spec.add_runtime_dependency 'concurrent-ruby', '1.3.4'
254-
255251
# Needed for multiline REPL support for interactive SQL sessions
256252
spec.add_runtime_dependency 'reline'
257253

modules/post/windows/gather/win_privs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def run
5454

5555
usr_tbl << [
5656
is_admin?.to_s.capitalize,
57-
system?.to_s.capitalize,
57+
is_system?.to_s.capitalize,
5858
is_in_admin_group?.to_s.capitalize,
5959
is_uac_enabled?.to_s.capitalize,
6060
fid,

modules/post/windows/manage/make_token.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def initialize(info = {})
3535
'Meterpreter' => {
3636
'Commands' => %w[
3737
stdapi_railgun_api
38-
stdapi_sys_config_revert_to_self
38+
stdapi_sys_config_rev2self
3939
stdapi_sys_config_update_token
4040
]
4141
}

0 commit comments

Comments
 (0)