diff --git a/nselib/smb.lua b/nselib/smb.lua index 3b51be174..224e86224 100644 --- a/nselib/smb.lua +++ b/nselib/smb.lua @@ -624,7 +624,7 @@ function start_netbios(host, port, name) end pos, result, flags, length = bin.unpack(">CCS", result) if(result == nil or length == nil) then - return false, "SMB: ERROR: Ran off the end of SMB packet; likely due to server truncation [1]" + return false, "SMB: ERROR: Server returned less data than it was supposed to (one or more fields are missing); aborting [1]" end -- Check for a position session response (0x82) @@ -884,7 +884,7 @@ function smb_read(smb, read_data) -- The NetBIOS header is 24 bits, big endian pos, netbios_length = bin.unpack(">I", result) if(netbios_length == nil) then - return false, "SMB: ERROR: Ran off the end of SMB packet; likely due to server truncation [2]" + return false, "SMB: ERROR: Server returned less data than it was supposed to (one or more fields are missing); aborting [2]" end -- Make the length 24 bits netbios_length = bit.band(netbios_length, 0x00FFFFFF) @@ -927,32 +927,32 @@ function smb_read(smb, read_data) -- The header is 32 bytes. pos, header = bin.unpack("