Skip to content

Commit e8e7a2a

Browse files
committed
Land rapid7#5122, undefined "upload_path" fix
2 parents 289e24e + c6f062d commit e8e7a2a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

modules/exploits/multi/http/tomcat_mgr_upload.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,7 @@ def upload_payload
345345
upload_path = normalize_uri(target_uri.path.to_s, "html", "upload")
346346
vprint_status("#{peer} - Uploading #{war.length} bytes as #{@app_base}.war ...")
347347
res = send_war_payload(upload_path, war)
348-
return parse_upload_response(res)
349-
end
350348

351-
def parse_upload_response(res)
352349
unless res
353350
vprint_error("#{peer} - Upload failed on #{upload_path} [No Response]")
354351
return false

0 commit comments

Comments
 (0)