Skip to content

Commit 21d6e4a

Browse files
committed
Move metasploit-concern to gemspec
MSP-11359 The dependency on `metasploit-concern` should not have been in the db group as `Metasploit::Concern.run` is called for `Msf::Exploit:Remote::HttpServer`, which works without the db group installed. This is a fix for a bug from rapid7#3781.
1 parent 5dad73a commit 21d6e4a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ gemspec
66
group :db do
77
# Needed for Msf::DbManager
88
gem 'activerecord', '>= 3.0.0', '< 4.0.0'
9-
# Metasploit::Concern hooks
10-
gem 'metasploit-concern', '~> 0.1.1'
9+
1110
# Metasploit::Credential database models
1211
gem 'metasploit-credential', '>= 0.9.0'
1312
# Database models shared between framework and Pro.

metasploit-framework.gemspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ Gem::Specification.new do |spec|
5757
spec.add_runtime_dependency 'bcrypt'
5858
# Needed for some admin modules (scrutinizer_add_user.rb)
5959
spec.add_runtime_dependency 'json'
60+
# Metasploit::Concern hooks
61+
spec.add_runtime_dependency 'metasploit-concern', '~> 0.1.1'
6062
# Things that would normally be part of the database model, but which
6163
# are needed when there's no database
6264
spec.add_runtime_dependency 'metasploit-model', '~> 0.26.1'

0 commit comments

Comments
 (0)