Use fail_with
parent
5ea062bb9c
commit
810bf598b1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue