-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
1,004 additions
and
183 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ pkg/* | |
bin/* | ||
files/**/cache/ | ||
vendor/cookbooks | ||
certs | ||
.idea | ||
|
||
# RVM management | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.6.5 | ||
3.0.6 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.DEFAULT_GOAL := all | ||
|
||
.PHONY: all | ||
all: certs/ca-certificates.crt dependencies | ||
# export SSL_CERT_FILE=${PWD}/certs/ca-certificates.crt | ||
|
||
# build the metasploit-framework package | ||
ruby bin/omnibus build metasploit-framework | ||
|
||
.PHONY: dependencies | ||
dependencies: | ||
# Ensure consistent bundler versions | ||
gem install bundler -v 2.2.3 | ||
|
||
# install omnibus' dependencies | ||
bundle install | ||
bundle binstubs --all | ||
|
||
gem install win32-process -v 0.9.0 | ||
|
||
certs/ca-certificates.crt: | ||
mkdir -p certs | ||
curl -L -o certs/ca-certificates.crt https://curl.haxx.se/ca/cacert.pem | ||
|
||
.PHONY: clean | ||
clean: | ||
bin/omnibus clean metasploit-framework |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
diff --git a/Gemfile.lock b/Gemfile.lock | ||
index 6802316759..89aaddd322 100644 | ||
--- Gemfile.lock 2024-05-17 12:32:16 | ||
+++ Gemfile.lock 2024-05-17 12:32:59 | ||
@@ -574,4 +574,4 @@ | ||
yard | ||
|
||
BUNDLED WITH | ||
- 2.1.4 | ||
+ 2.5.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/load.c b/load.c | ||
index a2b9da4..05ea96e 100644 | ||
--- a/load.c | ||
+++ b/load.c | ||
@@ -981,6 +981,11 @@ search_required(rb_vm_t *vm, VALUE fname, volatile VALUE *path, feature_func rb_ | ||
if (loading) *path = rb_filesystem_str_new_cstr(loading); | ||
return 'r'; | ||
} | ||
+ else if ((ft = rb_feature_p(vm, ftptr, 0, FALSE, FALSE, &loading)) == 's') { | ||
+ if (loading) *path = rb_filesystem_str_new_cstr(loading); | ||
+ return 's'; | ||
+ } | ||
+ | ||
tmp = fname; | ||
type = rb_find_file_ext(&tmp, ft == 's' ? ruby_ext : loadable_ext); | ||
switch (type) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
diff --git a/lib/rubygems/platform.rb b/lib/rubygems/platform.rb | ||
index 48b7344aee..08728c209c 100644 | ||
--- a/lib/rubygems/platform.rb | ||
+++ b/lib/rubygems/platform.rb | ||
@@ -1,7 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
-require_relative "deprecate" | ||
- | ||
## | ||
# Available list of platforms for targeting Gem installations. | ||
# | ||
@@ -24,11 +22,6 @@ def self.match(platform) | ||
match_platforms?(platform, Gem.platforms) | ||
end | ||
|
||
- class << self | ||
- extend Gem::Deprecate | ||
- rubygems_deprecate :match, "Gem::Platform.match_spec? or match_gem?" | ||
- end | ||
- | ||
def self.match_platforms?(platform, platforms) | ||
platform = Gem::Platform.new(platform) unless platform.is_a?(Gem::Platform) | ||
platforms.any? do |local_platform| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.