Ethereal-dev: Re: [Ethereal-dev] Patch for packet-smb-logon.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Richard Sharpe <sharpe@xxxxxxxxxx>
Date: Wed, 22 Nov 2000 07:10:09 +1000
At 05:51 PM 11/21/00 -0800, Guy Harris wrote:
>> There is also another bug I think, if you look at the dissected 
>> (logon) message, you will see that the LM token is shown as being 
>> 0xffffffff,
>
>I presume you mean that happens after your patch is applied; the LMNT
>token I'm seeing, with an unpatched Ethereal is 0x50002d, which is even
>more wrong - this might be due to the misparsing of the second
>occurrence of the computer name as ASCII rather than Unicode.
>
>Network Monitor 2.0 (version 5.00.943) shows the Unicode computer name,
>in Unicode, as HJV-P233-WNT (it also shows "Computer Name" as the same
>thing, in ASCII), followed by a 4-byte NT version number of 1, followed
>by a 2-byte LMNT token of 0xffff ("WindowsNT Networking"), followed by a
>2-byte LM20 token of 0xffff ("OS/2 LAN Manager 2.0 (or later)
>Networking".
>
>Looking at "packet-smb-logon.c", I see:
>
>	"dissect_smb_pdc_query()" uses "GWORD()" to fetch the LMNT
>	token, but the size in the "proto_tree_add_text()" call is 2 as
>	is the argument to the "MoveAndCheckOffset()" call after it - I
>	suspect it should use GSHORT, not GWORD, there;
>
>	"dissect_smb_sam_logon_resp()" is almost the same, but it uses
>	"GSHORT()", which I think is correct;
>
>so I think the "GWORD()" in question in "dissect_smb_pdc_query()" should
>be a "GSHORT()" instead.

Yes, I will look at this and add UNICODE support as well.


>_______________________________________________
>Ethereal-dev mailing list
>Ethereal-dev@xxxxxxxxxxxx
>http://www.ethereal.com/mailman/listinfo/ethereal-dev
>

Regards
-------
Richard Sharpe, sharpe@xxxxxxxxxx
Samba (Team member, www.samba.org), Ethereal (Team member, www.zing.org)
Contributing author, SAMS Teach Yourself Samba in 24 Hours
Author, Special Edition, Using Samba