Skip to content

Commit ef7f5fe

Browse files
committed
Make metasploit-model a direct dep
Needed for all the scanners that use Metasploit::Model::Realm::Key constants.
1 parent 49d0fc3 commit ef7f5fe

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

Gemfile.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ PATH
55
activesupport (>= 3.0.0, < 4.0.0)
66
bcrypt
77
json
8+
metasploit-model (~> 0.25)
89
meterpreter_bins (= 0.0.6)
910
msgpack
1011
nokogiri

lib/metasploit/framework.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
require 'bcrypt'
1010
require 'json'
1111
require 'msgpack'
12+
require 'metasploit/model'
1213
require 'nokogiri'
1314
require 'packetfu'
1415
# railties has not autorequire defined
@@ -43,4 +44,4 @@ def self.root
4344
@root
4445
end
4546
end
46-
end
47+
end

metasploit-framework.gemspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ Gem::Specification.new do |spec|
5555
spec.add_runtime_dependency 'bcrypt'
5656
# Needed for some admin modules (scrutinizer_add_user.rb)
5757
spec.add_runtime_dependency 'json'
58+
# Things that would normally be part of the database model, but which
59+
# are needed when there's no database
60+
spec.add_runtime_dependency 'metasploit-model', '~> 0.25'
5861
# Needed for Meterpreter on Windows, soon others.
5962
spec.add_runtime_dependency 'meterpreter_bins', '0.0.6'
6063
# Needed by msfgui and other rpc components

0 commit comments

Comments
 (0)