Use fail_with

bug/bundler_fix
jvazquez-r7 2014-12-12 12:03:12 -06:00
parent 5ea062bb9c
commit 810bf598b1
1 changed files with 1 additions and 2 deletions

View File

@ -64,8 +64,7 @@ class Metasploit3 < Msf::Exploit::Remote
register_files_for_cleanup(uploaded_filename)
print_status("#{peer} - File #{uploaded_filename} successfully uploaded")
else
print_error("#{peer} - Error on uploading file")
return
fail_with(Failure::Unknown, "#{peer} - Error on uploading file")
end
file_path = normalize_uri(target_uri, 'wp-content', 'uploads', 'download-manager-files', uploaded_filename)