File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
lib/msf/core/auxiliary/web Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -266,10 +266,12 @@ def queue( request )
266
266
end
267
267
268
268
def _request ( url , opts = { } )
269
- body = opts [ :body ]
269
+ body = opts [ :body ]
270
270
timeout = opts [ :timeout ] || 10
271
- method = opts [ :method ] . to_s . upcase || 'GET'
272
- url = url . is_a? ( URI ) ? url : URI ( url . to_s )
271
+ method = opts [ :method ] . to_s . upcase || 'GET'
272
+ url = url . is_a? ( URI ) ? url : URI ( url . to_s )
273
+
274
+ rex_overrides = opts . delete ( :rex ) || { }
273
275
274
276
param_opts = { }
275
277
@@ -285,10 +287,11 @@ def _request( url, opts = {} )
285
287
end
286
288
287
289
opts = @request_opts . merge ( param_opts ) . merge (
288
- 'uri' => url . path || '/' ,
289
- 'method' => method ,
290
+ 'uri' => url . path || '/' ,
291
+ 'method' => method ,
290
292
'headers' => headers . merge ( opts [ :headers ] || { } )
291
- )
293
+ # Allow for direct rex overrides
294
+ ) . merge ( rex_overrides )
292
295
293
296
opts [ 'data' ] = body if body
294
297
You can’t perform that action at this time.
0 commit comments