Ensure that local variable `upload_path` is defined

Merge `upload_payload` and `parse_upload_response` so that the
`upload_path` variable is defined for use in error messages in the event
of failure.
bug/bundler_fix
Jon Cave 2015-04-10 10:58:20 +01:00
parent 38037062b2
commit c6f062d49e
1 changed files with 0 additions and 3 deletions

View File

@ -345,10 +345,7 @@ class Metasploit3 < Msf::Exploit::Remote
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