Land #5122, undefined "upload_path" fix
This commit is contained in:
commit
e8e7a2a67a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue