Hi !
While i'm browsing and trying to understand smb_* NASL script code, i couldn't
understand part of the code.
function smb_recv(socket, length)
{
____msg_header = recv(socket:socket, length:4);
if (strlen(____msg_header) < 4)return(0);
____msg_trailer_length = 256 * ord(____msg_header[2]);
^^^^^^^^^^^^^^^^^^
____msg_trailer_length = ____msg_trailer_length + ord(____msg_header[3]);
^^^^^^^^^^^^^^^^^^^
.........
}
I don't understand, how come the ____msg_header variable can be ____msg_header[2] and
____msg_header[3] ?
I'm really sorry to bother you and this mailing list with this simple and may be basic
question, but i really don't have any idea with these codes. Please help me out and
thanks a lot !
--
chandra chan
fujen catholic university
taipei - taiwan
__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/
Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/