Land #5122, undefined "upload_path" fix

This commit is contained in:
William Vu 2015-04-10 11:30:50 -05:00
commit e8e7a2a67a
No known key found for this signature in database
GPG Key ID: 68BD00CE25866743
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