Fix #4243, regression introduced by commit 6e80481384
This commit is contained in:
@@ -173,7 +173,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||
|
||||
# Reads packet response for JDWP protocol
|
||||
def read_reply(timeout = default_timeout)
|
||||
response = sock.get_once(-1, timeout)
|
||||
response = sock.get(timeout)
|
||||
fail_with(Failure::TimeoutExpired, "#{peer} - Not received response") unless response
|
||||
pktlen, id, flags, errcode = response.unpack('NNCn')
|
||||
response.slice!(0..10)
|
||||
|
||||
Reference in New Issue
Block a user