Avoid messages inside check
parent
3869fcb438
commit
7a5b5d31f9
|
@ -129,22 +129,16 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
|
||||
def check
|
||||
connect
|
||||
|
||||
vprint_status("#{peer} - Checking for Java Debugging Wire Protocol")
|
||||
|
||||
res = handshake
|
||||
|
||||
disconnect
|
||||
|
||||
unless res
|
||||
vprint_error("Unable to determine due to a connection timeout")
|
||||
if res.nil?
|
||||
return Exploit::CheckCode::Unknown
|
||||
elsif res == HANDSHAKE
|
||||
return Exploit::CheckCode::Appears
|
||||
end
|
||||
|
||||
return Exploit::CheckCode::Appears if res == HANDSHAKE
|
||||
|
||||
return Exploit::CheckCode::Safe
|
||||
|
||||
Exploit::CheckCode::Safe
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue