Fix improved error handling
parent
60c3882b84
commit
2383afd8dc
|
@ -144,7 +144,7 @@ class MetasploitModule < Msf::Exploit::Remote
|
|||
|
||||
def exploit
|
||||
# check if target is vulnerable
|
||||
unless check == Exploit::CheckCode::Appears
|
||||
unless check == Exploit::CheckCode::Vulnerable
|
||||
fail_with(Failure::Unknown, 'Failed to connect to the target')
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue