Change logic

I just can't deal with this "unless" syntax...
bug/bundler_fix
wchen-r7 2016-02-08 18:40:48 -06:00
parent d60dcf72f9
commit 1d6b782cc8
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class Metasploit3 < Msf::Exploit::Remote
end
def exploit
unless cli_port || vulnerable?
if cli_port == 0 && !vulnerable?
fail_with(Failure::Unknown, "#{peer} - Jenkins is not vulnerable, aborting...")
end
invoke_remote_method(set_payload)