Use fail_with when failing instead of print_error
parent
ca7c0defe1
commit
080ca0b1b1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue