Skip to content

Commit

Permalink
Add support for Ruby 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
adfoster-r7 committed May 16, 2024
1 parent 5af4e4b commit 964c1b4
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
- '3.0'
- '3.1'
- '3.2'
- '3.3.0-preview3'
- '3.3'
os:
- ubuntu-20.04
- ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ PATH
net-ssh
network_interface
nexpose
nokogiri (~> 1.14.0)
nokogiri
octokit (~> 4.0)
openssl-ccm
openvas-omp
Expand Down Expand Up @@ -574,4 +574,4 @@ DEPENDENCIES
yard

BUNDLED WITH
2.2.3
2.2.33
3 changes: 1 addition & 2 deletions metasploit-framework.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ Gem::Specification.new do |spec|
# NTLM authentication
spec.add_runtime_dependency 'rubyntlm'
# Needed by anemone crawler
# Locked until build env can handle newer version due to native compile issue in 1.15.x
spec.add_runtime_dependency 'nokogiri', '~> 1.14.0'
spec.add_runtime_dependency 'nokogiri'
# Needed by db.rb and Msf::Exploit::Capture
spec.add_runtime_dependency 'packetfu'
# For sniffer and raw socket modules
Expand Down
6 changes: 5 additions & 1 deletion modules/payloads/singles/linux/mipsbe/exec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# -*- coding: binary -*-

##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
Expand Down Expand Up @@ -70,7 +72,9 @@ def generate(_opts = {})
shellcode = shellcode + command_string + "\x00"

# we need to align our shellcode to 4 bytes
(shellcode = shellcode + "\x00") while shellcode.length%4 != 0
while shellcode.bytesize%4 != 0
shellcode = shellcode + "\x00"
end

return super + shellcode

Expand Down
6 changes: 5 additions & 1 deletion modules/payloads/singles/linux/mipsle/exec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# -*- coding: binary -*-

##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
Expand Down Expand Up @@ -71,7 +73,9 @@ def generate(_opts = {})
shellcode = shellcode + command_string + "\x00"

# we need to align our shellcode to 4 bytes
(shellcode = shellcode + "\x00") while shellcode.length%4 != 0
while shellcode.bytesize%4 != 0
shellcode = shellcode + "\x00"
end

return super + shellcode

Expand Down

0 comments on commit 964c1b4

Please sign in to comment.