Commit Graph

259 Commits

Author SHA1 Message Date
Guy Harris 529e38321f From Andrew Esh: support for additional interest levels in
TRANS2_QUERY_FS_INFORMATION, and fix handling of level 1022 to treat the
file name as always being in Unicode.

svn path=/trunk/; revision=5494
2002-05-16 23:36:43 +00:00
Guy Harris 870c706685 From Andrew Esh: support for interest level 1003 and 1007 in
TRANS2_QUERY_FS_INFORMATION.

svn path=/trunk/; revision=5477
2002-05-15 19:37:26 +00:00
Guy Harris 42c395b0e2 Update the URL and comment for the SNIA CIFS spec, now that it's final.
svn path=/trunk/; revision=5440
2002-05-10 22:09:24 +00:00
Tim Potter b4248be92d Added constant and value_string for invalid security descriptor owner
error.

svn path=/trunk/; revision=5415
2002-05-08 05:15:11 +00:00
Guy Harris a06dd1c724 From Joerg Mayer: get rid of unused "pinfo" argument to
"dissect_nt_sec_desc()".

Also, get rid of code to handle lengths of -1 in "dissect_nt_sec_desc()"
- we never pass it a length of -1, as security descriptors aren't sent
over the wire with NDR syntax.

svn path=/trunk/; revision=5317
2002-04-30 23:48:15 +00:00
Guy Harris da74615c79 Get rid of some unused arguments, and mark some others as unused.
Remove the declaration of "dissect_nt_sid()" from
"packet-dcerpc-samr.c"; get it by including "packet-smb-common.h",
instead.

svn path=/trunk/; revision=5313
2002-04-30 11:03:08 +00:00
Guy Harris d61cb7942d There's no need to allocate and fill in an array of sub-authorities and
then later construct the sub-authority string from that array; we can
just construct the string as we fetch the sub-authorities.

Given that we're doing that, use the cleanup handler to free the string,
so that we don't leak memory if we throw an exception when fetching the
RID, for example.

svn path=/trunk/; revision=5294
2002-04-29 10:23:04 +00:00
Guy Harris 9a80f0a521 Removal (or, at least, #ifdeffing out) of unused variables and
functions, from David Frascone.

svn path=/trunk/; revision=5288
2002-04-29 08:20:18 +00:00
Guy Harris 8c5b9c06e8 Put in a note about the "primary domain" in the Negotiate Protocol
response if the negotiated dialect is Windows for Workgroups 3.1a.

svn path=/trunk/; revision=5264
2002-04-28 01:19:27 +00:00
Guy Harris d9d5677510 Fix the test in "dissect_smb_datetime()" for "no date/time specified"
values.

Note that in a Negotiate Protocol response, the primary domain won't be
present if the negotiated dialect isn't "DOS LANMAN 2.1" or "LANMAN2.1".

At least for Info Standard replies for Transaction2 Find First2
requests, if the request had the "return resume keys" flag set, the
reply will have a resume key at the beginning of each entry.  We assume
that to be the case for Info Query EA Size and Info QUery EAs From List;
it does *not* appear to be the case for Find File Directory Info, Find
File Full Directory Info, or Find File Both Directory Info (they don't
have it even if the flag is set, at least in the captures I've seen).

The length of the name string in Find First2 entries doesn't include the
terminating '\0'; count that as well.

svn path=/trunk/; revision=5259
2002-04-27 21:23:48 +00:00
Tim Potter 0aaf9da3fe Sometimes there is some junk at the end of an ACE so use the size field
within the ACE to work out where the end is.

svn path=/trunk/; revision=5235
2002-04-24 07:19:25 +00:00
Tim Potter c08c275702 Added 'invalid security descriptor' error to list of dos errors.
svn path=/trunk/; revision=5234
2002-04-24 06:18:51 +00:00
Guy Harris 80078ecbf4 Clean up the descriptions of reassembly preferences.
svn path=/trunk/; revision=5230
2002-04-23 19:19:57 +00:00
Guy Harris d8110d00ad Support for NT Rename SMB, from Steven French.
svn path=/trunk/; revision=5217
2002-04-22 06:26:08 +00:00
Guy Harris 14caf2a9a5 Fix the return value of "dissect_nt_sec_desc()".
svn path=/trunk/; revision=5213
2002-04-22 01:54:51 +00:00
Guy Harris 677ad9ee25 Correctly dissect LSA security descriptors, at least as they appear
inside a Netlogon security descriptor.

Correctly dissect NT security descriptors as they appear inside an LSA
security descriptor (at least as those appear inside a Netlogon security
descriptor) - they get sent over the wire, apparently, as an opaque blob
from the point of view of DCE RPC, at least from one capture I've seen,
they do *not* get sent over the wire in DCE RPC NDR syntax.

svn path=/trunk/; revision=5212
2002-04-22 01:07:19 +00:00
Ronnie Sahlberg 1e24ac236f Bugfixes for LSA dissector and a small change to the security_descriptor dissector in packet-smb.c so we can call it from DCERPC NDR encoded services.
svn path=/trunk/; revision=5194
2002-04-17 15:11:30 +00:00
Guy Harris 827426c4d1 Do the standard "next entry offset" stuff in NT NOTIFY replies, so as to
1) handle inter-entry padding;

	2) quit when the "next entry offset" is 0 (that being the signal
	   for the last entry).

svn path=/trunk/; revision=5171
2002-04-16 02:42:24 +00:00
Tim Potter 86a0e134e0 Fixed two instances where si->sip was being not checked for NULL before
being dereferenced.

svn path=/trunk/; revision=5137
2002-04-09 23:56:57 +00:00
Gilbert Ramirez 5c10ad55a8 More static-ization.
svn path=/trunk/; revision=5131
2002-04-08 20:30:56 +00:00
Ronnie Sahlberg 25972db6bb copylen should be unsigned when we check the range since tvb_memcpy will be upset if a negative value is passed as len
svn path=/trunk/; revision=5044
2002-03-29 21:55:05 +00:00
Guy Harris bacadc18cd The Unicode Consortium's country code table has been updated to
incorporate the fixes I sent them, so it now matches what we have.

svn path=/trunk/; revision=5032
2002-03-27 20:58:43 +00:00
Guy Harris 588c50944d In the protocol tree entries for lists of fragments/segments, make the
top-level item correspond to the reassembled data, and make the item for
each fragment/segment correspond to the part of that reassembled data
that came from that fragment/segment.

svn path=/trunk/; revision=5025
2002-03-27 04:27:05 +00:00
Guy Harris 807bf4ead2 The Unicode Consortium's table has some errors in it; fix those errors
in our table.

svn path=/trunk/; revision=5023
2002-03-26 08:23:58 +00:00
Guy Harris f4bbdc9bc3 The Cygwin "winnls.h" header, and the Microsoft "winnls.h" headers, says
that a country code of 0 is for the "default", presumably meaning "don't
override the setting on the desktop machine" or something such as that.

svn path=/trunk/; revision=5015
2002-03-25 20:01:13 +00:00
Guy Harris b25cfdba75 When dissecting an SID with more than 4 authorities, increment the
offset to go past the last authority (the RID).

svn path=/trunk/; revision=4991
2002-03-20 07:55:51 +00:00
Guy Harris 4d52bb3267 Handle Read operations on IPC trees as DCE RPC.
svn path=/trunk/; revision=4989
2002-03-20 06:51:14 +00:00
Richard Sharpe e2f5d92cb8 Express the RID separately of more than 4 sub-authorities. It is always the
last sub-authority.

svn path=/trunk/; revision=4988
2002-03-19 23:14:39 +00:00
Guy Harris 031c4ec27f Treat WriteAndX operations on IPC trees as containing DCERPC call
information, just as is done for Write.

Squelch a compiler warning.

svn path=/trunk/; revision=4987
2002-03-19 22:12:03 +00:00
Ronnie Sahlberg 84806766db Tiny quota updates
svn path=/trunk/; revision=4980
2002-03-19 10:16:40 +00:00
Ronnie Sahlberg 0c7d8b3b30 Quota updates. GetUserQuota implemented and support for list of userquota structures
svn path=/trunk/; revision=4970
2002-03-18 09:45:27 +00:00
Ronnie Sahlberg fd54563f5b Add dissection of one more bit in Quota FS Flags bitmask
svn path=/trunk/; revision=4969
2002-03-18 08:34:18 +00:00
Ronnie Sahlberg 7f50e21a7e quota update partial NTGetUserQuota support
svn path=/trunk/; revision=4964
2002-03-17 12:16:11 +00:00
Ronnie Sahlberg 7fa1fcaaba Partial dissection of NT Set User Quota data block
svn path=/trunk/; revision=4963
2002-03-17 11:59:36 +00:00
Ronnie Sahlberg e9bd31fdbd SMB Quota updates
svn path=/trunk/; revision=4962
2002-03-17 11:24:16 +00:00
Ronnie Sahlberg 6ac7d7f7ac Updates for NT QUOTA in packet-smb.c
svn path=/trunk/; revision=4961
2002-03-17 10:59:35 +00:00
Guy Harris fcf8cd8807 The service is just called "IPC"; the pipe is what's called "IPC$".
svn path=/trunk/; revision=4957
2002-03-16 22:39:45 +00:00
Guy Harris 949b2d4131 Whether the data returned from a read or sent in a write is DCERPC
traffic or not, that data doesn't include the padding; handle padding
if you're dissecting it as DCERPC traffic.

Don't treat the traffic as DCERPC traffic unless it's to the IPC$ share.

svn path=/trunk/; revision=4956
2002-03-16 22:35:51 +00:00
Guy Harris 0b60f086ef There is no guarantee that, when processing an SMB response, "si->sip"
is non-null, as there's no guarantee that the corresponding SMB request
is in the capture.  Check whether it's null before using it.

svn path=/trunk/; revision=4954
2002-03-16 22:01:27 +00:00
Ronnie Sahlberg 17392c995b A new type of DCERPC over SMB transport.
I have captures with w2k speaking DCERPC without using the normal
Transaction named pipes SMBs.
Instead DCERPC is just implemented ontop of ordinary read/write calls.

The smb dissector now examines TreeConnectAndX and stores the conversation/tid/type-of-share in a table for later access.
All SMB requests examine that hash table to find out if TID in the header refers
to a normal share or an IPC$ share.

Initial support in read/write SMB calls to detect if the operations are for an
 IPC share and thus it assumes it must be DCERPC commands in the payload.
Desegmentation/Reassembly of these types of calls are not implemented yet.

svn path=/trunk/; revision=4952
2002-03-16 04:39:29 +00:00
Richard Sharpe 9693b93085 Pretty up the SID dissector ...
svn path=/trunk/; revision=4948
2002-03-15 19:47:03 +00:00
Ronnie Sahlberg ad861e7827 Moved the value_string for MS country codes from packet-dcerpc-nt.c to
packet-smb.c so that packet-smb-pipe.c can reference this struct as well.

svn path=/trunk/; revision=4947
2002-03-15 08:59:53 +00:00
Tim Potter d3c236be5e Added error messages for invalid name and invalid form size.
svn path=/trunk/; revision=4946
2002-03-15 04:46:43 +00:00
Guy Harris ecda579229 Clean up the display of the top-level item for the NT ACE Flags, so that
there's a space after the colon, and so that there's no extra comma at the
end and only one space between the items.

Fix a typo.

svn path=/trunk/; revision=4940
2002-03-14 05:45:16 +00:00
Ronnie Sahlberg 024f90f4fe Absolute and Relative times were swapped. Also add comment that there seems
to be an unknown special time constant : 0x40000000 00000000 that we dont know
yet what it means.

svn path=/trunk/; revision=4915
2002-03-10 23:13:04 +00:00
Guy Harris eb62c04d71 No need to put ", N byte{s} at offset O" into the Info column twice;
once is enough.

svn path=/trunk/; revision=4901
2002-03-09 02:12:47 +00:00
Tim Potter 6bb9d7eaf8 Display a different message in the COL_INFO field for anonymous session
setup packets.

svn path=/trunk/; revision=4818
2002-02-27 02:42:19 +00:00
Tim Potter c2e21d860b Fixed up value_string for SMBE_unknownlevel error.
svn path=/trunk/; revision=4785
2002-02-22 21:29:02 +00:00
Guy Harris 2f70b4df02 Initial quota support, from Ronnie Sahlberg.
svn path=/trunk/; revision=4771
2002-02-22 00:05:02 +00:00
Guy Harris e80b68372c Use the right format (one with a numerical format item rather than a
string format item) as the third argument to "val_to_str()".

svn path=/trunk/; revision=4770
2002-02-21 23:54:03 +00:00