Skip to content

Commit 63b4c0b

Browse files
committed
Depend on metasloit-framework in optional gemspecs
MSP-11578 Optional gemspecs should depend on the minimal metasploit-framework because they don't work without metasploit-framework's code.
1 parent 9137bd6 commit 63b4c0b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

metasploit-framework-db.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Gem::Specification.new do |spec|
3434
spec.add_runtime_dependency 'metasploit-credential', '~> 0.12.0'
3535
# Database models shared between framework and Pro.
3636
spec.add_runtime_dependency 'metasploit_data_models', '~> 0.21.1'
37+
# depend on metasploit-framewrok as the optional gems are useless with the actual code
3738
spec.add_runtime_dependency 'metasploit-framework', "= #{spec.version}"
3839
# Needed for module caching in Mdm::ModuleDetails
3940
spec.add_runtime_dependency 'pg', '>= 0.11'

metasploit-framework-pcap.gemspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ Gem::Specification.new do |spec|
2626
# no files, just dependencies
2727
spec.files = []
2828

29+
# depend on metasploit-framewrok as the optional gems are useless with the actual code
2930
spec.add_runtime_dependency 'metasploit-framework', "= #{spec.version}"
31+
# get list of network interfaces, like eth* from OS.
3032
spec.add_runtime_dependency 'network_interface', '~> 0.0.1'
3133
# For sniffer and raw socket modules
3234
spec.add_runtime_dependency 'pcaprub'

0 commit comments

Comments
 (0)