Use fail_with when failing instead of print_error

bug/bundler_fix
James Lee 2013-08-08 13:12:39 -05:00
parent ca7c0defe1
commit 080ca0b1b1
1 changed files with 2 additions and 2 deletions

View File

@ -86,9 +86,9 @@ class Metasploit3 < Msf::Exploit::Remote
},
}, 0.1)
rescue ::Rex::ConnectionError => e
fail_with(::Msf::Exploit::Failure::Unreachable, e.message)
fail_with(Failure::Unreachable, e.message)
rescue ::OpenSSL::SSL::SSLError
print_error("The target failed to negotiate SSL, is this really an SSL service?")
fail_with(Failure::BadConfig, "The target failed to negotiate SSL, is this really an SSL service?")
end
response