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-b9f4589650da
unstable
HD Moore 2010-07-14 17:07:10 +00:00
parent 7710528432
commit 6b25b1024e
1 changed files with 1 additions and 1 deletions

View File

@ -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