View | Details | Raw Unified | Return to bug 276006 | Differences between
and this patch

Collapse All | Expand All

(-)b/security/metasploit/files/patch-metasploit-framework.gemspec (-1 / +65 lines)
Added Link Here
0
- 
1
--- metasploit-framework.gemspec.orig	2024-01-04 17:37:35 UTC
2
+++ metasploit-framework.gemspec
3
@@ -25,9 +25,9 @@ Gem::Specification.new do |spec|
4
   spec.homepage      = 'https://www.metasploit.com'
5
   spec.license       = 'BSD-3-clause'
6
 
7
-  # only do a git ls-files if the .git folder exists and we have a git binary in PATH
8
+  # only do a find . ! -type d | sed "s|^./||" if the .git folder exists and we have a git binary in PATH
9
   if File.directory?(File.join(File.dirname(__FILE__), ".git")) && Msf::Util::Helper.which("git")
10
-    spec.files         = `git ls-files`.split($/).reject { |file|
11
+    spec.files         = `find . ! -type d | sed "s|^./||"`.split($/).reject { |file|
12
       file =~ /^external|^docs|^\.solargraph\.yml/
13
     }
14
   end
15
@@ -77,14 +77,14 @@ Gem::Specification.new do |spec|
16
   spec.add_runtime_dependency 'metasploit_payloads-mettle', '1.0.26'
17
   # Needed by msfgui and other rpc components
18
   # Locked until build env can handle newer version. See: https://github.com/msgpack/msgpack-ruby/issues/334
19
-  spec.add_runtime_dependency 'msgpack', '~> 1.6.0'
20
+  spec.add_runtime_dependency 'msgpack', '~> 1.7.2'
21
   # get list of network interfaces, like eth* from OS.
22
   spec.add_runtime_dependency 'network_interface'
23
   # NTLM authentication
24
   spec.add_runtime_dependency 'rubyntlm'
25
   # Needed by anemone crawler
26
   # Locked until build env can handle newer version due to native compile issue in 1.15.x
27
-  spec.add_runtime_dependency 'nokogiri', '~> 1.14.0'
28
+  spec.add_runtime_dependency 'nokogiri', '~> 1.15.5'
29
   # Needed by db.rb and Msf::Exploit::Capture
30
   spec.add_runtime_dependency 'packetfu'
31
   # For sniffer and raw socket modules
32
@@ -147,7 +147,7 @@ Gem::Specification.new do |spec|
33
   spec.add_runtime_dependency 'net-ssh'
34
   spec.add_runtime_dependency 'ed25519' # Adds ed25519 keys for net-ssh
35
   spec.add_runtime_dependency 'bcrypt_pbkdf'
36
-  spec.add_runtime_dependency 'ruby_smb', '~> 3.3.0'
37
+  spec.add_runtime_dependency 'ruby_smb'
38
   spec.add_runtime_dependency 'net-imap' # Used in Postgres auth for its SASL stringprep implementation
39
   spec.add_runtime_dependency 'net-ldap'
40
   spec.add_runtime_dependency 'net-smtp'
41
@@ -194,7 +194,6 @@ Gem::Specification.new do |spec|
42
   # Library for exploit development helpers
43
   spec.add_runtime_dependency 'rex-exploitation'
44
   # Command line editing, history, and tab completion in msfconsole
45
-  spec.add_runtime_dependency 'rb-readline'
46
   # Needed by some modules
47
   spec.add_runtime_dependency 'rubyzip'
48
   # Needed for some post modules
49
@@ -216,7 +215,7 @@ Gem::Specification.new do |spec|
50
   # SSH server library with ed25519
51
   spec.add_runtime_dependency 'hrr_rb_ssh-ed25519'
52
   # Needed for irb internal command
53
-  spec.add_runtime_dependency 'irb', '~> 1.7.4'
54
+  spec.add_runtime_dependency 'irb', '~> 1.11.0'
55
 
56
   # AWS enumeration modules
57
   spec.add_runtime_dependency 'aws-sdk-s3'
58
@@ -235,7 +234,6 @@ Gem::Specification.new do |spec|
59
   spec.add_runtime_dependency 'faraday-retry'
60
 
61
   # Required for windows terminal colors as of Ruby 3.0
62
-  spec.add_runtime_dependency 'win32api'
63
 
64
   spec.add_runtime_dependency 'zeitwerk'
65
 

Return to bug 276006