Fix #4243, regression introduced by commit 6e80481384

unstable
lanjelot 2015-04-30 12:42:39 +10:00
parent e5cd88a51e
commit 15bb4d1ea4
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ class Metasploit3 < Msf::Exploit::Remote
# Reads packet response for JDWP protocol # Reads packet response for JDWP protocol
def read_reply(timeout = default_timeout) 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 fail_with(Failure::TimeoutExpired, "#{peer} - Not received response") unless response
pktlen, id, flags, errcode = response.unpack('NNCn') pktlen, id, flags, errcode = response.unpack('NNCn')
response.slice!(0..10) response.slice!(0..10)