Skip to content

Commit 33cf2f1

Browse files
committed
Added Faliure:: symbol to fail_with
1 parent 6ef074c commit 33cf2f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/unix/webapp/wp_reflexgallery_file_upload.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ def exploit
7070
print_good("#{peer} - Our payload is at: #{php_pagename}. Calling payload...")
7171
register_files_for_cleanup(php_pagename)
7272
else
73-
fail_with("#{peer} - Unable to deploy payload, server returned #{res.code}")
73+
fail_with(Failure::Unknown, "#{peer} - Unable to deploy payload, server returned #{res.code}")
7474
end
7575
else
76-
fail_with('ERROR')
76+
fail_with(Failure::Unknown, 'Server did not respond in an expected way')
7777
end
7878

7979
print_status("#{peer} - Calling payload...")

0 commit comments

Comments
 (0)