Always try to read the NB header first to get the length
git-svn-id: file:///home/svn/framework3/trunk@9826 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
7710528432
commit
6b25b1024e
|
@ -43,8 +43,8 @@ EVADE = Rex::Proto::SMB::Evasions
|
|||
|
||||
# Read a SMB packet from the socket
|
||||
def smb_recv
|
||||
data = socket.get_once(-1, self.read_timeout)
|
||||
|
||||
data = socket.timed_read(4, self.read_timeout)
|
||||
if (data.nil? or data.length < 4)
|
||||
raise XCEPT::NoReply
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue