Skip to content

Commit eb8e7ce

Browse files
authored
Merge pull request #20420 from dwelch-r7/rails-7.2-upgrade
Bump rails to 7.2
2 parents e40da3a + 0ce1617 commit eb8e7ce

File tree

13 files changed

+249
-349
lines changed

13 files changed

+249
-349
lines changed

Gemfile.lock

Lines changed: 112 additions & 118 deletions
Large diffs are not rendered by default.

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: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,6 @@ Gem::Specification.new do |spec|
249249
# to generate PNG files, not to parse untrusted PNG files.
250250
spec.add_runtime_dependency 'chunky_png'
251251

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

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)