From ba9532c2d42a35c73bade277054cb1673de0e9c6 Mon Sep 17 00:00:00 2001 From: ron Date: Sat, 23 Jan 2010 17:25:30 +0000 Subject: [PATCH] Changed an error message throughout smb.lua that I never really liked. --- nselib/smb.lua | 74 +++++++++++++++++++++++++------------------------- 1 file changed, 37 insertions(+), 37 deletions(-) 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("