Skip to content

Commit

Permalink
Land rapid7#5122, undefined "upload_path" fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wvu committed Apr 10, 2015
2 parents 289e24e + c6f062d commit e8e7a2a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions modules/exploits/multi/http/tomcat_mgr_upload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,7 @@ def upload_payload
upload_path = normalize_uri(target_uri.path.to_s, "html", "upload")
vprint_status("#{peer} - Uploading #{war.length} bytes as #{@app_base}.war ...")
res = send_war_payload(upload_path, war)
return parse_upload_response(res)
end

def parse_upload_response(res)
unless res
vprint_error("#{peer} - Upload failed on #{upload_path} [No Response]")
return false
Expand Down

0 comments on commit e8e7a2a

Please sign in to comment.