Skip to content

Commit 810bf59

Browse files
committed
Use fail_with
1 parent 5ea062b commit 810bf59

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/exploits/unix/webapp/wp_downloadmanager_upload.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ def exploit
6464
register_files_for_cleanup(uploaded_filename)
6565
print_status("#{peer} - File #{uploaded_filename} successfully uploaded")
6666
else
67-
print_error("#{peer} - Error on uploading file")
68-
return
67+
fail_with(Failure::Unknown, "#{peer} - Error on uploading file")
6968
end
7069

7170
file_path = normalize_uri(target_uri, 'wp-content', 'uploads', 'download-manager-files', uploaded_filename)

0 commit comments

Comments
 (0)