We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7886ac6 + 5c98270 commit 26f2b35Copy full SHA for 26f2b35
modules/exploits/unix/webapp/wp_nmediawebsite_file_upload.rb
@@ -63,15 +63,15 @@ def exploit
63
begin
64
new_php_pagename = JSON.parse(res.body)["filename"]
65
rescue JSON::ParserError
66
- new_php_pagename = ''
+ fail_with(Failure::Unknown, 'Unable to parse JSON data for the filename')
67
end
68
print_good("#{peer} - Our payload is at: #{new_php_pagename}. Calling payload...")
69
register_files_for_cleanup(new_php_pagename)
70
else
71
fail_with("#{peer} - Unable to deploy payload, server returned #{res.code}")
72
73
74
- fail_with('ERROR')
+ fail_with(Failure::Unknown,'ERROR')
75
76
77
print_status("#{peer} - Calling payload...")
0 commit comments