Skip to content

Commit 2138325

Browse files
committed
Add Failure:: symbol to fail_with
1 parent 517ad54 commit 2138325

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/unix/webapp/wp_slideshowgallery_upload.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ def exploit
103103
if res.code == 200
104104
register_files_for_cleanup(filename)
105105
else
106-
fail_with("#{peer} - Unable to deploy payload, server returned #{res.code}")
106+
fail_with(Failure::Unknown, "#{peer} - Unable to deploy payload, server returned #{res.code}")
107107
end
108108
else
109-
fail_with('ERROR')
109+
fail_with(Failure::Unknown, 'Server did not respond in an expected way')
110110
end
111111

112112
print_status("#{peer} - Calling uploaded file #{filename}")

0 commit comments

Comments
 (0)