1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
|
/* packet-smb-logon.c
* Routines for SMB net logon packet dissection
* Copyright 2000, Jeffrey C. Foster <jfoste@woodward.com>
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* Copied from packet-pop.c
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "config.h"
#include <epan/packet.h>
#include "packet-windows-common.h"
#include "packet-smb-common.h"
void proto_register_smb_logon(void);
static int proto_smb_logon = -1;
static int hf_command = -1;
static int hf_computer_name = -1;
static int hf_unicode_computer_name = -1;
static int hf_server_name = -1;
static int hf_user_name = -1;
static int hf_domain_name = -1;
static int hf_server_dns_name = -1;
static int hf_forest_dns_name = -1;
static int hf_domain_dns_name = -1;
static int hf_mailslot_name = -1;
static int hf_pdc_name = -1;
static int hf_unicode_pdc_name = -1;
static int hf_script_name = -1;
static int hf_nt_version = -1;
static int hf_lmnt_token = -1;
static int hf_lm_token = -1;
static int hf_major_version = -1;
static int hf_minor_version = -1;
static int hf_os_version = -1;
static int hf_signature = -1;
static int hf_date_time = -1;
static int hf_update_type = -1;
static int hf_request_count = -1;
static int hf_account_control = -1;
static int hf_flags_autolock = -1;
static int hf_flags_expire = -1;
static int hf_flags_server_trust = -1;
static int hf_flags_workstation_trust = -1;
static int hf_flags_interdomain_trust = -1;
static int hf_flags_mns_user = -1;
static int hf_flags_normal_user = -1;
static int hf_flags_temp_dup_user = -1;
static int hf_flags_password_required = -1;
static int hf_flags_homedir_required = -1;
static int hf_flags_enabled = -1;
static int hf_domain_sid_size = -1;
static int hf_low_serial = -1;
static int hf_pulse = -1;
static int hf_random = -1;
static int hf_db_count = -1;
static int hf_db_index = -1;
static int hf_large_serial = -1;
static int hf_nt_date_time = -1;
static int hf_unknown8 = -1;
static int hf_unknown32 = -1;
static int hf_domain_guid = -1;
static int hf_server_ip = -1;
static int hf_server_site_name = -1;
static int hf_client_site_name = -1;
static int hf_data = -1;
static int ett_smb_logon = -1;
static int ett_smb_account_flags = -1;
static int ett_smb_db_info = -1;
#define ACC_FLAG_AUTO_LOCKED 0x00000400
#define ACC_FLAG_EXPIRE 0x00000200
#define ACC_FLAG_SERVER_TRUST 0x00000100
#define ACC_FLAG_WORKSTATION_TRUST 0x00000080
#define ACC_FLAG_INTERDOMAIN_TRUST 0x00000040
#define ACC_FLAG_MNS_USER 0x00000020
#define ACC_FLAG_NORMAL_USER 0x00000010
#define ACC_FLAG_TEMP_DUP_USER 0x00000008
#define ACC_FLAG_PASSWORD_REQUIRED 0x00000004
#define ACC_FLAG_HOMEDIR_REQUIRED 0x00000002
#define ACC_FLAG_ENABLED 0x00000001
static const true_false_string tfs_flags_autolock = {
"User account auto-locked",
"User account NOT auto-locked"
};
static const true_false_string tfs_flags_expire = {
"User password will NOT expire",
"User password will expire"
};
static const true_false_string tfs_flags_server_trust = {
"Server Trust user account",
"NOT a Server Trust user account"
};
static const true_false_string tfs_flags_workstation_trust = {
"Workstation Trust user account",
"NOT a Workstation Trust user account"
};
static const true_false_string tfs_flags_interdomain_trust = {
"Inter-domain Trust user account",
"NOT a Inter-domain Trust user account"
};
static const true_false_string tfs_flags_mns_user = {
"MNS Logon user account",
"NOT a MNS Logon user account"
};
static const true_false_string tfs_flags_normal_user = {
"Normal user account",
"NOT a normal user account"
};
static const true_false_string tfs_flags_temp_dup_user = {
"Temp duplicate user account",
"NOT a temp duplicate user account"
};
static const true_false_string tfs_flags_password_required = {
"NO password required",
"Password required"
};
static const true_false_string tfs_flags_homedir_required = {
"NO homedir required",
"Homedir required"
};
static const true_false_string tfs_flags_enabled = {
"User account enabled",
"User account disabled"
};
static int
dissect_account_control(tvbuff_t *tvb, proto_tree *tree, int offset)
{
/* display the Allowable Account control bits */
static int * const flags[] = {
&hf_flags_autolock,
&hf_flags_expire,
&hf_flags_server_trust,
&hf_flags_workstation_trust,
&hf_flags_interdomain_trust,
&hf_flags_mns_user,
&hf_flags_normal_user,
&hf_flags_temp_dup_user,
&hf_flags_password_required,
&hf_flags_homedir_required,
&hf_flags_enabled,
NULL
};
proto_tree_add_bitmask(tree, tvb, offset, hf_account_control, ett_smb_account_flags, flags, ENC_LITTLE_ENDIAN);
offset += 4;
return offset;
}
static int
display_LM_token(tvbuff_t *tvb, int offset, proto_tree *tree)
{
guint16 Token;
Token = tvb_get_letohs(tvb, offset);
if (Token & 0x01) {
proto_tree_add_uint_format(tree, hf_lm_token, tvb, offset, 2,
Token,
"LM20 Token: 0x%04x (LanMan 2.0 or higher)", Token);
} else {
/*
* XXX - are all values with the lower bit set LM 2.0,
* and all values with it not set LM 1.0?
* What do the other bits mean, if anything?
*/
proto_tree_add_uint_format(tree, hf_lm_token, tvb, offset, 2,
Token,
"LM10 Token: 0x%04x (WFW Networking)", Token);
}
offset += 2;
return offset;
}
static int
display_LMNT_token(tvbuff_t *tvb, int offset, proto_tree *tree)
{
guint16 Token;
Token = tvb_get_letohs(tvb, offset);
if (Token == 0xffff) {
proto_tree_add_uint_format_value(tree, hf_lmnt_token, tvb, offset, 2,
Token,
"0x%04x (Windows NT Networking)", Token);
} else {
/*
* XXX - what is it if it's not 0xffff?
*/
proto_tree_add_uint_format(tree, hf_lm_token, tvb, offset, 2,
Token,
"LMNT Token: 0x%04x (Unknown)", Token);
}
offset += 2;
return offset;
}
static int
dissect_smb_logon_request(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
/*** 0x00 (LM1.0/LM2.0 LOGON Request) ***/
/* computer name */
offset = display_ms_string(tvb, pinfo, tree, offset, hf_computer_name, NULL);
/* user name */
offset = display_ms_string(tvb, pinfo, tree, offset, hf_user_name, NULL);
/* mailslot name */
offset = display_ms_string(tvb, pinfo, tree, offset, hf_mailslot_name, NULL);
/*$$$$$ here add the Mailslot to the response list (if needed) */
/* Request count */
proto_tree_add_item(tree, hf_request_count, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset += 1;
/* NT version */
proto_tree_add_item(tree, hf_nt_version, tvb, offset, 2, ENC_LITTLE_ENDIAN);
offset += 2;
/* LM token */
offset = display_LM_token(tvb, offset, tree);
return offset;
}
static int
dissect_smb_logon_LM10_resp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
/*** 0x01 LanMan 1.0 Logon response ***/
/* user name */
offset = display_ms_string(tvb, pinfo, tree, offset, hf_user_name, NULL);
/* script name */
offset = display_ms_string(tvb, pinfo, tree, offset, hf_script_name, NULL);
return offset;
}
static int
dissect_smb_logon_2(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
/*** 0x02 LM1.0 Query - Centralized Initialization ***/
/*** 0x03 LM1.0 Query - Distributed Initialization ***/
/*** 0x04 LM1.0 Query - Centralized Query Response ***/
/*** 0x04 LM1.0 Query - Distributed Query Response ***/
/* computer name */
offset = display_ms_string(tvb, pinfo, tree, offset, hf_computer_name, NULL);
/* mailslot name */
offset = display_ms_string(tvb, pinfo, tree, offset, hf_mailslot_name, NULL);
/* NT version */
proto_tree_add_item(tree, hf_nt_version, tvb, offset, 2, ENC_LITTLE_ENDIAN);
offset += 2;
/* LM token */
offset = display_LM_token(tvb, offset, tree);
return offset;
}
static int
dissect_smb_logon_LM20_resp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
/*** 0x06 (LM2.0 LOGON Response) ***/
/* server name */
offset = display_ms_string(tvb, pinfo, tree, offset, hf_server_name, NULL);
/* LM token */
offset = display_LM_token(tvb, offset, tree);
return offset;
}
static int
dissect_smb_pdc_query(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
char *name;
/*** 0x07 Query for Primary PDC ***/
/* computer name */
offset = display_ms_string(tvb, pinfo, tree, offset, hf_computer_name, &name);
col_append_fstr(pinfo->cinfo, COL_INFO, " from %s", name);
/* mailslot name */
offset = display_ms_string(tvb, pinfo, tree, offset, hf_mailslot_name, NULL);
if (tvb_reported_length_remaining(tvb, offset) > 2) {
/*
* NT-style Query for PDC?
* If only 2 bytes remain, it's probably a Windows 95-style
* query, which has only an LM token after the mailslot
* name.
*
* XXX - base this on flags in the SMB header, e.g.
* the ASCII/Unicode strings flag?
*/
if (offset % 2) offset++; /* word align ... */
/* Unicode computer name */
offset = display_unicode_string(tvb, pinfo, tree, offset, hf_unicode_computer_name, NULL);
/* NT version */
proto_tree_add_item(tree, hf_nt_version, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
/* LMNT token */
offset = display_LMNT_token(tvb, offset, tree);
}
/* LM token */
offset = display_LM_token(tvb, offset, tree);
return offset;
}
static int
dissect_smb_pdc_startup(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
/*** 0x08 Announce startup of PDC ***/
/* pdc name */
offset = display_ms_string(tvb, pinfo, tree, offset, hf_pdc_name, NULL);
/* A short Announce will not have the rest */
if (tvb_reported_length_remaining(tvb, offset) != 0) {
char *name = NULL;
if (offset % 2) offset++; /* word align ... */
/* pdc name */
offset = display_unicode_string(tvb, pinfo, tree, offset, hf_unicode_pdc_name, &name);
if (name) {
col_append_fstr(pinfo->cinfo, COL_INFO, ": host %s", name);
name = NULL;
}
if (offset % 2) offset++;
/* domain name */
offset = display_unicode_string(tvb, pinfo, tree, offset, hf_domain_name, &name);
if (name) {
col_append_fstr(pinfo->cinfo, COL_INFO, ", domain %s", name);
name = NULL;
}
/* NT version */
proto_tree_add_item(tree, hf_nt_version, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
/* LMNT token */
offset = display_LMNT_token(tvb, offset, tree);
/* LM token */
offset = display_LM_token(tvb, offset, tree);
}
return offset;
}
static int
dissect_smb_pdc_failure(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset)
{
/*** 0x09 Announce failure of the PDC ***/
/*** 0x0F LM2.0 Resp. during LOGON pause ***/
/*** 0x10 (LM 2.0 Unknown user response) ***/
/* NT version */
proto_tree_add_item(tree, hf_nt_version, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
/* LM token */
offset = display_LM_token(tvb, offset, tree);
return offset;
}
static int
dissect_announce_change(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
/*** 0x0A ( Announce change to UAS or SAM ) ***/
guint32 info_count;
proto_tree *info_tree;
guint32 db_index;
guint32 domain_sid_size;
/* low serial number */
proto_tree_add_item(tree, hf_low_serial, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
/* date/time */
/* XXX - what format is this? Neither SMB_Date/SMB_Time nor
"time_t but in the local time zone" appear to be correct. */
proto_tree_add_item(tree, hf_date_time, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
/* pulse */
proto_tree_add_item(tree, hf_pulse, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
/* random */
proto_tree_add_item(tree, hf_random, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
/* pdc name */
offset = display_ms_string(tvb, pinfo, tree, offset, hf_pdc_name, NULL);
/* domain name */
offset = display_ms_string(tvb, pinfo, tree, offset, hf_domain_name, NULL);
if (offset % 2) offset++; /* word align ... */
if (tvb_reported_length_remaining(tvb, offset) > 2) {
/*
* XXX - older protocol versions don't have this stuff?
*/
/* pdc name */
offset = display_unicode_string(tvb, pinfo, tree, offset, hf_unicode_pdc_name, NULL);
/* domain name */
offset = display_unicode_string(tvb, pinfo, tree, offset, hf_domain_name, NULL);
/* DB count */
info_count = tvb_get_letohl(tvb, offset);
proto_tree_add_uint(tree, hf_db_count, tvb, offset, 4, info_count);
offset += 4;
while (info_count != 0) {
db_index = tvb_get_letohl(tvb, offset);
info_tree = proto_tree_add_subtree_format(tree, tvb, offset, 20,
ett_smb_db_info, NULL, "DBChange Info Structure: index %u", db_index);
proto_tree_add_uint(info_tree, hf_db_index, tvb, offset, 4,
db_index);
offset += 4;
proto_tree_add_item(info_tree, hf_large_serial, tvb, offset, 8,
ENC_LITTLE_ENDIAN);
offset += 8;
offset = dissect_nt_64bit_time(tvb, info_tree, offset,
hf_nt_date_time);
info_count--;
}
/* Domain SID Size */
domain_sid_size = tvb_get_letohl(tvb, offset);
proto_tree_add_uint(tree, hf_domain_sid_size, tvb, offset, 4,
domain_sid_size);
offset += 4;
if (domain_sid_size != 0) {
/* Align to four-byte boundary */
offset = ((offset + 3)/4)*4;
/* Domain SID */
offset = dissect_nt_sid(
tvb, offset, tree, "Domain", NULL, -1);
}
/* NT version */
proto_tree_add_item(tree, hf_nt_version, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
/* LMNT token */
offset = display_LMNT_token(tvb, offset, tree);
}
/* LM token */
offset = display_LM_token(tvb, offset, tree);
return offset;
}
static int
dissect_smb_sam_logon_req(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
/* Netlogon command 0x12 - decode the SAM logon request from client */
guint32 domain_sid_size;
/* Request count */
proto_tree_add_item(tree, hf_request_count, tvb, offset, 2, ENC_LITTLE_ENDIAN);
offset += 2;
/* computer name */
offset = display_unicode_string(tvb, pinfo, tree, offset, hf_unicode_computer_name, NULL);
/* user name */
offset = display_unicode_string(tvb, pinfo, tree, offset, hf_user_name, NULL);
/* mailslot name */
offset = display_ms_string(tvb, pinfo, tree, offset, hf_mailslot_name, NULL);
/* account control */
offset = dissect_account_control(tvb, tree, offset);
/* Domain SID Size */
domain_sid_size = tvb_get_letohl(tvb, offset);
proto_tree_add_uint(tree, hf_domain_sid_size, tvb, offset, 4,
domain_sid_size);
offset += 4;
if (domain_sid_size != 0) {
/* Align to four-byte boundary */
offset = ((offset + 3)/4)*4;
/* Domain SID */
offset = dissect_nt_sid(tvb, offset, tree, "Domain", NULL, -1);
}
/* NT version */
proto_tree_add_item(tree, hf_nt_version, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
/* LMNT token */
offset = display_LMNT_token(tvb, offset, tree);
/* LM token */
offset = display_LM_token(tvb, offset, tree);
return offset;
}
static int
dissect_smb_no_user(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
/* 0x0B (Announce no user on machine) */
/* computer name */
offset = display_ms_string(tvb, pinfo, tree, offset, hf_computer_name, NULL);
return offset;
}
static int
dissect_smb_relogon_resp(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset)
{
/*** 0x0d LanMan Response to relogon request ***/
/* Major version */
proto_tree_add_item(tree, hf_major_version, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset += 1;
/* Minor version */
proto_tree_add_item(tree, hf_minor_version, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset += 1;
/* OS version */
proto_tree_add_item(tree, hf_os_version, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset += 1;
/* NT version */
proto_tree_add_item(tree, hf_nt_version, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
/* LM token */
offset = display_LM_token(tvb, offset, tree);
return offset;
}
static int
dissect_smb_acc_update(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
/*** 0x11 LM2.1 Announce Acc updates ***/
/* signature */
proto_tree_add_item(tree, hf_signature, tvb, offset, 8, ENC_LITTLE_ENDIAN);
offset += 8;
/* date/time */
/* XXX - what format is this? Neither SMB_Date/SMB_Time nor
"time_t but in the local time zone" appear to be correct. */
proto_tree_add_item(tree, hf_date_time, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
/* computer name */
offset = display_ms_string(tvb, pinfo, tree, offset, hf_computer_name, NULL);
/* user name */
offset = display_ms_string(tvb, pinfo, tree, offset, hf_user_name, NULL);
/* update type */
proto_tree_add_item(tree, hf_update_type, tvb, offset, 2, ENC_LITTLE_ENDIAN);
offset += 2;
/* NT version */
proto_tree_add_item(tree, hf_nt_version, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
/* LM token */
offset = display_LM_token(tvb, offset, tree);
return offset;
}
static int
dissect_smb_inter_resp(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset)
{
/* 0x0e LanMan Response to interrogate request */
/* Major version */
proto_tree_add_item(tree, hf_major_version, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset += 1;
/* Minor version */
proto_tree_add_item(tree, hf_minor_version, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset += 1;
/* OS version */
proto_tree_add_item(tree, hf_os_version, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset += 1;
/* NT version */
proto_tree_add_item(tree, hf_nt_version, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
/* LMNT token */
offset = display_LMNT_token(tvb, offset, tree);
/* XXX - no LM token? Every other packet has one after the LMNT
token. */
return offset;
}
static int
dissect_smb_sam_logon_resp(tvbuff_t *tvb, packet_info *pinfo,
proto_tree *tree, int offset)
{
/* Netlogon command 0x13 - decode the SAM logon response from server */
/* Netlogon command 0x15 - decode the SAM logon response from server unknown user */
/* server name */
offset = display_unicode_string(tvb, pinfo, tree, offset, hf_server_name, NULL);
/* user name */
offset = display_unicode_string(tvb, pinfo, tree, offset, hf_user_name, NULL);
/* domain name */
offset = display_unicode_string(tvb, pinfo, tree, offset, hf_domain_name, NULL);
/* NT version */
proto_tree_add_item(tree, hf_nt_version, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
/* LMNT token */
offset = display_LMNT_token(tvb, offset, tree);
/* LM token */
offset = display_LM_token(tvb, offset, tree);
return offset;
}
static int
dissect_smb_pdc_response_ads(tvbuff_t *tvb, packet_info *pinfo,
proto_tree *tree, int offset)
{
/* Netlogon command 0x17 - decode the response from PDC ADS */
/* Netlogon command 0x19 - decode the response from PDC ADS USER ?*/
/* Align to four-byte boundary */
offset = ((offset + 3)/4)*4;
/* unknown uint32 type */
proto_tree_add_item(tree, hf_unknown32, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
/* Domain GUID */
proto_tree_add_item(tree, hf_domain_guid, tvb, offset, 16, ENC_NA);
offset += 16;
/* forest dns name */
offset=dissect_ms_compressed_string(tvb, pinfo, tree, offset, hf_forest_dns_name, NULL);
/* domain dns name */
offset=dissect_ms_compressed_string(tvb, pinfo, tree, offset, hf_domain_dns_name, NULL);
/* server dns name */
offset=dissect_ms_compressed_string(tvb, pinfo, tree, offset, hf_server_dns_name, NULL);
/* domain name */
offset=dissect_ms_compressed_string(tvb, pinfo, tree, offset, hf_domain_name, NULL);
/* server name */
offset=dissect_ms_compressed_string(tvb, pinfo, tree, offset, hf_server_name, NULL);
/* user name */
offset=dissect_ms_compressed_string(tvb, pinfo, tree, offset, hf_user_name, NULL);
/* server_site name */
offset=dissect_ms_compressed_string(tvb, pinfo, tree, offset, hf_server_site_name, NULL);
/* client_site name */
offset=dissect_ms_compressed_string(tvb, pinfo, tree, offset, hf_client_site_name, NULL);
/* unknown uint8 type */
proto_tree_add_item(tree, hf_unknown8, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset += 1;
/* unknown uint32 type */
proto_tree_add_item(tree, hf_unknown32, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
/* server ip */
proto_tree_add_item(tree, hf_server_ip, tvb, offset, 4, ENC_BIG_ENDIAN);
offset += 4;
/* unknown uint32 type */
proto_tree_add_item(tree, hf_unknown32, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
/* unknown uint32 type */
proto_tree_add_item(tree, hf_unknown32, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
/* NT version */
proto_tree_add_item(tree, hf_nt_version, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
/* LMNT token */
offset = display_LMNT_token(tvb, offset, tree);
/* LM token */
offset = display_LM_token(tvb, offset, tree);
return offset;
}
static int
dissect_smb_unknown(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset)
{
/* display data as unknown */
proto_tree_add_item(tree, hf_data, tvb, offset, -1, ENC_NA);
return offset+tvb_reported_length_remaining(tvb, offset);
}
#define LOGON_LM10_LOGON_REQUEST 0x00
#define LOGON_LM10_LOGON_RESPONSE 0x01
#define LOGON_LM10_QUERY_CI 0x02
#define LOGON_LM10_QUERY_DI 0x03
#define LOGON_LM10_RESPONSE_CI 0x04
#define LOGON_LM10_RESPONSE_DI 0x05
#define LOGON_LM20_LOGON_RESPONSE 0x06
#define LOGON_PDC_QUERY 0x07
#define LOGON_PDC_STARTUP 0x08
#define LOGON_PDC_FAILED 0x09
#define LOGON_UAS_SAM 0x0a
#define LOGON_NO_USER 0x0b
#define LOGON_PDC_RESPONSE 0x0c
#define LOGON_RELOGON_RESPONSE 0x0d
#define LOGON_INTERROGATE_RESPONSE 0x0e
#define LOGON_LM20_RESPONSE_DURING_LOGON 0x0f
#define LOGON_LM20_USER_UNKNOWN 0x10
#define LOGON_LM20_ACCOUNT_UPDATE 0x11
#define LOGON_SAM_LOGON_REQUEST 0x12
#define LOGON_SAM_LOGON_RESPONSE 0x13
#define LOGON_SAM_RESPONSE_DURING_LOGON 0x14
#define LOGON_SAM_USER_UNKNOWN 0x15
#define LOGON_SAM_INTERROGATE_RESPONSE 0x16
#define LOGON_SAM_AD_USER_UNKNOWN 0x17
#define LOGON_SAM_UNKNOWN_18 0x18
#define LOGON_SAM_AD_LOGON_RESPONSE 0x19
#define LOGON_LAST_CMD 0x19
static const value_string commands[] = {
{LOGON_LM10_LOGON_REQUEST, "LM1.0/LM2.0 LOGON Request"},
{LOGON_LM10_LOGON_RESPONSE, "LM1.0 LOGON Response"},
{LOGON_LM10_QUERY_CI, "LM1.0 Query - Centralized Initialization"},
{LOGON_LM10_QUERY_DI, "LM1.0 Query - Distributed Initialization"},
{LOGON_LM10_RESPONSE_CI, "LM1.0 Response - Centralized Query"},
{LOGON_LM10_RESPONSE_DI, "LM1.0 Response - Distributed Initialization"},
{LOGON_LM20_LOGON_RESPONSE, "LM2.0 Response to LOGON Request"},
{LOGON_PDC_QUERY, "Query for PDC"},
{LOGON_PDC_STARTUP, "Announce Startup of PDC"},
{LOGON_PDC_FAILED, "Announce Failed PDC"},
{LOGON_UAS_SAM, "Announce Change to UAS or SAM"},
{LOGON_NO_USER, "Announce no user on machine"},
{LOGON_PDC_RESPONSE, "Response from PDC"},
{LOGON_RELOGON_RESPONSE, "LM1.0/LM2.0 Response to re-LOGON Request"},
{LOGON_INTERROGATE_RESPONSE, "LM1.0/LM2.0 Response to Interrogate Request"},
{LOGON_LM20_RESPONSE_DURING_LOGON, "LM2.0 Response during LOGON pause"},
{LOGON_LM20_USER_UNKNOWN, "LM2.0 Response - user unknown"},
{LOGON_LM20_ACCOUNT_UPDATE, "LM2.0 Announce account updates"},
{LOGON_SAM_LOGON_REQUEST, "SAM LOGON request from client"},
{LOGON_SAM_LOGON_RESPONSE, "Response to SAM LOGON request"},
{LOGON_SAM_RESPONSE_DURING_LOGON, "SAM Response during LOGON pause"},
{LOGON_SAM_USER_UNKNOWN, "SAM Response - user unknown"},
{LOGON_SAM_INTERROGATE_RESPONSE, "SAM Response to Interrogate Request"},
{LOGON_SAM_AD_USER_UNKNOWN, "SAM Active Directory Response - user unknown"},
{LOGON_SAM_UNKNOWN_18, "SAM unknown command 0x18"},
{LOGON_SAM_AD_LOGON_RESPONSE, "Active Directory Response to SAM LOGON request"},
{0, NULL}
};
static int (*dissect_smb_logon_cmds[])(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) = {
dissect_smb_logon_request, /* 0x00 (LM1.0/LM2.0 LOGON Request) */
dissect_smb_logon_LM10_resp, /* 0x01 (LM1.0 LOGON Response) */
dissect_smb_logon_2, /* 0x02 (LM1.0 Query Centralized Init.)*/
dissect_smb_logon_2, /* 0x03 (LM1.0 Query Distributed Init.)*/
dissect_smb_logon_2, /* 0x04 (LM1.0 Centralized Query Resp.)*/
dissect_smb_logon_2, /* 0x05 (LM1.0 Distributed Query Resp.) */
dissect_smb_logon_LM20_resp, /* 0x06 (LM2.0 LOGON Response) */
dissect_smb_pdc_query, /* 0x07 (Query for PDC) */
dissect_smb_pdc_startup, /* 0x08 (Announce PDC startup) */
dissect_smb_pdc_failure, /* 0x09 (Announce Failed PDC) */
dissect_announce_change, /* 0x0A (Announce Change to UAS or SAM)*/
dissect_smb_no_user, /* 0x0B (Announce no user on machine)*/
dissect_smb_pdc_startup, /* 0x0C (Response from PDC) */
dissect_smb_relogon_resp, /* 0x0D (Relogon response) */
dissect_smb_inter_resp, /* 0x0E (Interrogate response) */
dissect_smb_pdc_failure, /* 0x0F (LM2.0 Resp. during LOGON pause*/
dissect_smb_pdc_failure, /* 0x10 (LM 2.0 Unknown user response)*/
dissect_smb_acc_update, /* 0x11 (LM2.1 Announce Acc updates)*/
dissect_smb_sam_logon_req, /* 0x12 (SAM LOGON request ) */
dissect_smb_sam_logon_resp, /* 0x13 (SAM LOGON response) */
dissect_smb_unknown, /* 0x14 (SAM Response during LOGON Pause) */
dissect_smb_sam_logon_resp, /* 0x15 (SAM Response User Unknown) */
dissect_smb_unknown, /* 0x16 (SAM Response to Interrogate)*/
dissect_smb_pdc_response_ads, /* 0x17 (SAM AD response User Unknown*/
dissect_smb_unknown, /* 0x18 (Unknown command) */
dissect_smb_pdc_response_ads /* 0x19 (SAM LOGON AD response) */
};
static int
dissect_smb_logon(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
{
int offset = 0;
guint8 cmd;
proto_tree *smb_logon_tree = NULL;
proto_item *item = NULL;
col_set_str(pinfo->cinfo, COL_PROTOCOL, "SMB_NETLOGON");
col_clear(pinfo->cinfo, COL_INFO);
/* get the Command field */
cmd = tvb_get_guint8(tvb, offset);
col_add_str(pinfo->cinfo, COL_INFO, val_to_str(cmd, commands, "Unknown Command:%02x") );
if (tree) {
item = proto_tree_add_item(tree, proto_smb_logon, tvb,
offset, -1, ENC_NA);
smb_logon_tree = proto_item_add_subtree(item, ett_smb_logon);
}
/* command */
proto_tree_add_uint(smb_logon_tree, hf_command, tvb, offset, 1, cmd);
offset += 1;
/* skip next byte */
offset += 1;
if (cmd<LOGON_LAST_CMD) {
(dissect_smb_logon_cmds[cmd])(tvb, pinfo,
smb_logon_tree, offset);
} else {
/* unknown command */
dissect_smb_unknown(tvb, pinfo, smb_logon_tree,
offset);
}
return tvb_captured_length(tvb);
}
void
proto_register_smb_logon( void)
{
static hf_register_info hf[] = {
{ &hf_command,
{ "Command", "smb_netlogon.command", FT_UINT8, BASE_HEX,
VALS(commands), 0, "SMB NETLOGON Command", HFILL }},
{ &hf_computer_name,
{ "Computer Name", "smb_netlogon.computer_name", FT_STRING, BASE_NONE,
NULL, 0, "SMB NETLOGON Computer Name", HFILL }},
{ &hf_unicode_computer_name,
{ "Unicode Computer Name", "smb_netlogon.unicode_computer_name", FT_STRING, BASE_NONE,
NULL, 0, "SMB NETLOGON Unicode Computer Name", HFILL }},
{ &hf_server_name,
{ "Server Name", "smb_netlogon.server_name", FT_STRING, BASE_NONE,
NULL, 0, "SMB NETLOGON Server Name", HFILL }},
{ &hf_server_dns_name,
{ "Server DNS Name", "smb_netlogon.server_dns_name", FT_STRING, BASE_NONE,
NULL, 0, "SMB NETLOGON Server DNS Name", HFILL }},
{ &hf_user_name,
{ "User Name", "smb_netlogon.user_name", FT_STRING, BASE_NONE,
NULL, 0, "SMB NETLOGON User Name", HFILL }},
{ &hf_domain_name,
{ "Domain Name", "smb_netlogon.domain_name", FT_STRING, BASE_NONE,
NULL, 0, "SMB NETLOGON Domain Name", HFILL }},
{ &hf_domain_dns_name,
{ "Domain DNS Name", "smb_netlogon.domain_dns_name", FT_STRING, BASE_NONE,
NULL, 0, "SMB NETLOGON Domain DNS Name", HFILL }},
{ &hf_forest_dns_name,
{ "Forest DNS Name", "smb_netlogon.forest_dns_name", FT_STRING, BASE_NONE,
NULL, 0, "SMB NETLOGON Forest DNS Name", HFILL }},
{ &hf_mailslot_name,
{ "Mailslot Name", "smb_netlogon.mailslot_name", FT_STRING, BASE_NONE,
NULL, 0, "SMB NETLOGON Mailslot Name", HFILL }},
{ &hf_pdc_name,
{ "PDC Name", "smb_netlogon.pdc_name", FT_STRING, BASE_NONE,
NULL, 0, "SMB NETLOGON PDC Name", HFILL }},
{ &hf_unicode_pdc_name,
{ "Unicode PDC Name", "smb_netlogon.unicode_pdc_name", FT_STRING, BASE_NONE,
NULL, 0, "SMB NETLOGON Unicode PDC Name", HFILL }},
{ &hf_script_name,
{ "Script Name", "smb_netlogon.script_name", FT_STRING, BASE_NONE,
NULL, 0, "SMB NETLOGON Script Name", HFILL }},
{ &hf_nt_version,
{ "NT Version", "smb_netlogon.nt_version", FT_UINT32, BASE_DEC,
NULL, 0, "SMB NETLOGON NT Version", HFILL }},
/* An LMNT Token, if 0xffff, is "WindowsNT Networking";
what is it otherwise? */
{ &hf_lmnt_token,
{ "LMNT Token", "smb_netlogon.lmnt_token", FT_UINT16, BASE_HEX,
NULL, 0, "SMB NETLOGON LMNT Token", HFILL }},
{ &hf_lm_token,
{ "LM Token", "smb_netlogon.lm_token", FT_UINT16, BASE_HEX,
NULL, 0, "SMB NETLOGON LM Token", HFILL }},
{ &hf_major_version,
{ "Workstation Major Version", "smb_netlogon.major_version", FT_UINT8, BASE_DEC,
NULL, 0, "SMB NETLOGON Workstation Major Version", HFILL }},
{ &hf_minor_version,
{ "Workstation Minor Version", "smb_netlogon.minor_version", FT_UINT8, BASE_DEC,
NULL, 0, "SMB NETLOGON Workstation Minor Version", HFILL }},
{ &hf_os_version,
{ "Workstation OS Version", "smb_netlogon.os_version", FT_UINT8, BASE_DEC,
NULL, 0, "SMB NETLOGON Workstation OS Version", HFILL }},
{ &hf_signature,
{ "Signature", "smb_netlogon.signature", FT_UINT64, BASE_HEX,
NULL, 0, NULL, HFILL }},
{ &hf_date_time,
{ "Date/Time", "smb_netlogon.date_time", FT_UINT32, BASE_DEC,
NULL, 0, "SMB NETLOGON Date/Time", HFILL }},
{ &hf_update_type,
{ "Update Type", "smb_netlogon.update", FT_UINT16, BASE_DEC,
NULL, 0, "SMB NETLOGON Update Type", HFILL }},
{ &hf_request_count,
{ "Request Count", "smb_netlogon.request_count", FT_UINT16, BASE_DEC,
NULL, 0, "SMB NETLOGON Request Count", HFILL }},
{ &hf_account_control,
{ "Account control", "smb_netlogon.flags", FT_UINT32, BASE_HEX,
NULL, 0, NULL, HFILL }},
{ &hf_flags_autolock,
{ "Autolock", "smb_netlogon.flags.autolock", FT_BOOLEAN, 32,
TFS(&tfs_flags_autolock), ACC_FLAG_AUTO_LOCKED, "SMB NETLOGON Account Autolock", HFILL}},
{ &hf_flags_expire,
{ "Expire", "smb_netlogon.flags.expire", FT_BOOLEAN, 32,
TFS(&tfs_flags_expire), ACC_FLAG_EXPIRE, "SMB NETLOGON Will Account Expire", HFILL}},
{ &hf_flags_server_trust,
{ "Server Trust", "smb_netlogon.flags.server", FT_BOOLEAN, 32,
TFS(&tfs_flags_server_trust), ACC_FLAG_SERVER_TRUST, "SMB NETLOGON Server Trust Account", HFILL}},
{ &hf_flags_workstation_trust,
{ "Workstation Trust", "smb_netlogon.flags.workstation", FT_BOOLEAN, 32,
TFS(&tfs_flags_workstation_trust), ACC_FLAG_WORKSTATION_TRUST, "SMB NETLOGON Workstation Trust Account", HFILL}},
{ &hf_flags_interdomain_trust,
{ "Interdomain Trust", "smb_netlogon.flags.interdomain", FT_BOOLEAN, 32,
TFS(&tfs_flags_interdomain_trust), ACC_FLAG_INTERDOMAIN_TRUST, "SMB NETLOGON Inter-domain Trust Account", HFILL}},
{ &hf_flags_mns_user,
{ "MNS User", "smb_netlogon.flags.mns", FT_BOOLEAN, 32,
TFS(&tfs_flags_mns_user), ACC_FLAG_MNS_USER, "SMB NETLOGON MNS User Account", HFILL}},
{ &hf_flags_normal_user,
{ "Normal User", "smb_netlogon.flags.normal", FT_BOOLEAN, 32,
TFS(&tfs_flags_normal_user), ACC_FLAG_NORMAL_USER, "SMB NETLOGON Normal User Account", HFILL}},
{ &hf_flags_temp_dup_user,
{ "Temp Duplicate User", "smb_netlogon.flags.temp_dup", FT_BOOLEAN, 32,
TFS(&tfs_flags_temp_dup_user), ACC_FLAG_TEMP_DUP_USER, "SMB NETLOGON Temp Duplicate User Account", HFILL}},
{ &hf_flags_password_required,
{ "Password", "smb_netlogon.flags.password", FT_BOOLEAN, 32,
TFS(&tfs_flags_password_required), ACC_FLAG_PASSWORD_REQUIRED, "SMB NETLOGON Password Required", HFILL}},
{ &hf_flags_homedir_required,
{ "Homedir", "smb_netlogon.flags.homedir", FT_BOOLEAN, 32,
TFS(&tfs_flags_homedir_required), ACC_FLAG_HOMEDIR_REQUIRED, "SMB NETLOGON Homedir Required", HFILL}},
{ &hf_flags_enabled,
{ "Enabled", "smb_netlogon.flags.enabled", FT_BOOLEAN, 32,
TFS(&tfs_flags_enabled), ACC_FLAG_ENABLED, "SMB NETLOGON Is This Account Enabled", HFILL}},
{ &hf_domain_sid_size,
{ "Domain SID Size", "smb_netlogon.domain_sid_size", FT_UINT32, BASE_DEC,
NULL, 0, "SMB NETLOGON Domain SID Size", HFILL }},
{ &hf_low_serial,
{ "Low Serial Number", "smb_netlogon.low_serial", FT_UINT32, BASE_DEC,
NULL, 0, "SMB NETLOGON Low Serial Number", HFILL }},
{ &hf_pulse,
{ "Pulse", "smb_netlogon.pulse", FT_UINT32, BASE_DEC,
NULL, 0, "SMB NETLOGON Pulse", HFILL }},
{ &hf_random,
{ "Random", "smb_netlogon.random", FT_UINT32, BASE_DEC,
NULL, 0, "SMB NETLOGON Random", HFILL }},
{ &hf_db_count,
{ "DB Count", "smb_netlogon.db_count", FT_UINT32, BASE_DEC,
NULL, 0, "SMB NETLOGON DB Count", HFILL }},
{ &hf_db_index,
{ "Database Index", "smb_netlogon.db_index", FT_UINT32, BASE_DEC,
NULL, 0, "SMB NETLOGON Database Index", HFILL }},
{ &hf_large_serial,
{ "Large Serial Number", "smb_netlogon.large_serial", FT_UINT64, BASE_DEC,
NULL, 0, "SMB NETLOGON Large Serial Number", HFILL }},
{ &hf_nt_date_time,
{ "NT Date/Time", "smb_netlogon.nt_date_time", FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL,
NULL, 0, "SMB NETLOGON NT Date/Time", HFILL }},
{ &hf_unknown8,
{ "Unknown", "smb_netlogon.unknown", FT_UINT8, BASE_HEX,
NULL, 0, NULL, HFILL }},
{ &hf_unknown32,
{ "Unknown", "smb_netlogon.unknown", FT_UINT32, BASE_HEX,
NULL, 0, NULL, HFILL }},
{ &hf_domain_guid,
{ "Domain GUID", "smb_netlogon.domain.guid", FT_BYTES, BASE_NONE,
NULL, 0x0, NULL, HFILL }},
{ &hf_server_ip, {
"Server IP", "smb_netlogon.server_ip", FT_IPv4, BASE_NONE,
NULL, 0x0, "Server IP Address", HFILL }},
{ &hf_server_site_name,
{ "Server Site Name", "smb_netlogon.server_site_name", FT_STRING, BASE_NONE,
NULL, 0, "SMB NETLOGON Server Site Name", HFILL }},
{ &hf_client_site_name,
{ "Client Site Name", "smb_netlogon.client_site_name", FT_STRING, BASE_NONE,
NULL, 0, "SMB NETLOGON Client Site Name", HFILL }},
{ &hf_data,
{ "Data", "smb_netlogon.data", FT_BYTES, BASE_NONE,
NULL, 0, NULL, HFILL }},
};
static gint *ett[] = {
&ett_smb_logon,
&ett_smb_account_flags,
&ett_smb_db_info
};
proto_smb_logon = proto_register_protocol("Microsoft Windows Logon Protocol (Old)", "SMB_NETLOGON", "smb_netlogon");
proto_register_field_array(proto_smb_logon, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
register_dissector("smb_netlogon", dissect_smb_logon, proto_smb_logon);
}
/*
* Editor modelines - https://www.wireshark.org/tools/modelines.html
*
* Local variables:
* c-basic-offset: 8
* tab-width: 8
* indent-tabs-mode: t
* End:
*
* vi: set shiftwidth=8 tabstop=8 noexpandtab:
* :indentSize=8:tabSize=8:noTabs=false:
*/
|