Re: smbclient -M sends NetBIOS session service header to port 445

2003-01-06 Thread Christopher R. Hertel
Steve, SMB messages sent via NBT or via naked TCP both have a four-byte header at the top. Under NBT this is the NetBIOS Session Service header, and it should have one byte of zero (indicating it's a Session Message) followed by 7-bits of zero (an unused flags field) followed by 17-bits of

Re: smbclient -M sends NetBIOS session service header to port 445

2003-01-06 Thread Steve Langasek
On Mon, Jan 06, 2003 at 11:08:32AM -0600, Christopher R. Hertel wrote: So, smbclient should default to using port 139 for the NetServerEnum2 calls (-L option) unless -p is actually specified. Basically, the same problem as -M. Ok, that was the same conclusion I arrived at. I'll put

Re: smbclient -M sends NetBIOS session service header to port 445

2003-01-06 Thread Christopher R. Hertel
Steve, That would be great. Please also look at the -L option too, as that should default to 139 as well. (Sort of... it's not necessary for listing shares.) The -p option should override the defaults in any case, though. There are folks who use port-redirection (for SSH links to the server,

Re: smbclient -M sends NetBIOS session service header to port 445

2003-01-06 Thread Steve Langasek
On Mon, Jan 06, 2003 at 11:51:24AM -0600, Christopher R. Hertel wrote: That would be great. Please also look at the -L option too, as that should default to 139 as well. (Sort of... it's not necessary for listing shares.) Ok. I'll add that to my queue behind getting libsmbclient to use the

Re: smbclient -M sends NetBIOS session service header to port 445

2003-01-06 Thread Christopher R. Hertel
On Mon, Jan 06, 2003 at 02:23:13PM -0600, Steve Langasek wrote: On Mon, Jan 06, 2003 at 11:51:24AM -0600, Christopher R. Hertel wrote: That would be great. Please also look at the -L option too, as that should default to 139 as well. (Sort of... it's not necessary for listing shares.)