blob: b502064bbfecbd0261b01233bfbe4dc67692a6fb (
plain)
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
|
/* header auto-generated by pidl */
struct lsa_Close {
struct {
struct policy_handle *handle;
} in;
struct {
struct policy_handle *handle;
NTSTATUS result;
} out;
};
struct lsa_Delete {
struct {
struct policy_handle *handle;
} in;
struct {
NTSTATUS result;
} out;
};
struct lsa_Name {
uint16 name_len;
uint16 name_size;
const char *name;
};
struct lsa_PrivEntry {
struct lsa_Name name;
uint32 luid_low;
uint32 luid_high;
};
struct lsa_PrivArray {
uint32 count;
struct lsa_PrivEntry *privs;
};
struct lsa_EnumPrivs {
struct {
struct policy_handle *handle;
uint32 *resume_handle;
uint32 max_count;
} in;
struct {
uint32 *resume_handle;
struct lsa_PrivArray *privs;
NTSTATUS result;
} out;
};
struct lsa_QuerySecObj {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct lsa_SetSecObj {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct lsa_ChangePassword {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct lsa_QosInfo {
uint16 impersonation_level;
uint8 context_mode;
uint8 effective_only;
};
struct lsa_ObjectAttribute {
uint8 *root_dir;
const char *object_name;
uint32 attributes;
struct security_descriptor *sec_desc;
struct lsa_QosInfo *sec_qos;
};
struct lsa_OpenPolicy {
struct {
uint16 *system_name;
struct lsa_ObjectAttribute *attr;
uint32 desired_access;
} in;
struct {
struct policy_handle *handle;
NTSTATUS result;
} out;
};
struct lsa_AuditLogInfo {
uint32 percent_full;
uint32 log_size;
NTTIME retention_time;
uint8 shutdown_in_progress;
NTTIME time_to_shutdown;
uint32 next_audit_record;
uint32 unknown;
};
struct lsa_AuditSettings {
uint32 count;
uint32 *settings;
};
struct lsa_AuditEventsInfo {
uint32 auditing_mode;
struct lsa_AuditSettings *settings;
};
struct lsa_DomainInfo {
struct lsa_Name name;
struct dom_sid2 *sid;
};
struct lsa_PDAccountInfo {
struct lsa_Name name;
};
struct lsa_ServerRole {
uint16 role;
};
struct lsa_ReplicaSourceInfo {
struct lsa_Name source;
struct lsa_Name account;
};
struct lsa_DefaultQuotaInfo {
uint32 paged_pool;
uint32 non_paged_pool;
uint32 min_wss;
uint32 max_wss;
uint32 pagefile;
HYPER_T unknown;
};
struct lsa_ModificationInfo {
HYPER_T modified_id;
NTTIME db_create_time;
};
struct lsa_AuditFullSetInfo {
uint32 shutdown_on_full;
};
struct lsa_AuditFullQueryInfo {
uint32 shutdown_on_full;
uint32 log_is_full;
};
struct lsa_DnsDomainInfo {
struct lsa_Name name;
struct lsa_Name dns_domain;
struct lsa_Name dns_forest;
struct GUID domain_guid;
struct dom_sid2 *sid;
};
union lsa_PolicyInformation {
/* [case(1)] */ struct lsa_AuditLogInfo audit_log;
/* [case(2)] */ struct lsa_AuditEventsInfo audit_events;
/* [case(3)] */ struct lsa_DomainInfo domain;
/* [case(4)] */ struct lsa_PDAccountInfo pd;
/* [case(5)] */ struct lsa_DomainInfo account_domain;
/* [case(6)] */ struct lsa_ServerRole role;
/* [case(7)] */ struct lsa_ReplicaSourceInfo replica;
/* [case(8)] */ struct lsa_DefaultQuotaInfo quota;
/* [case(9)] */ struct lsa_ModificationInfo db;
/* [case(10)] */ struct lsa_AuditFullSetInfo auditfullset;
/* [case(11)] */ struct lsa_AuditFullQueryInfo auditfullquery;
/* [case(12)] */ struct lsa_DnsDomainInfo dns;
};
struct lsa_QueryInfoPolicy {
struct {
struct policy_handle *handle;
uint16 level;
} in;
struct {
union lsa_PolicyInformation *info;
NTSTATUS result;
} out;
};
struct lsa_SetInfoPolicy {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct lsa_ClearAuditLog {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct lsa_CreateAccount {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct lsa_SidPtr {
struct dom_sid2 *sid;
};
struct lsa_SidArray {
uint32 num_sids;
struct lsa_SidPtr *sids;
};
struct lsa_EnumAccounts {
struct {
struct policy_handle *handle;
uint32 *resume_handle;
uint32 num_entries;
} in;
struct {
uint32 *resume_handle;
struct lsa_SidArray *sids;
NTSTATUS result;
} out;
};
struct lsa_CreateTrustDom {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct lsa_DomainInformation {
struct lsa_Name name;
struct dom_sid2 *sid;
};
struct lsa_DomainList {
uint32 count;
struct lsa_DomainInformation *domains;
};
struct lsa_EnumTrustDom {
struct {
struct policy_handle *handle;
uint32 *resume_handle;
uint32 num_entries;
} in;
struct {
uint32 *resume_handle;
struct lsa_DomainList *domains;
NTSTATUS result;
} out;
};
struct lsa_TranslatedSid {
uint16 sid_type;
uint32 rid;
uint32 sid_index;
};
struct lsa_TransSidArray {
uint32 count;
struct lsa_TranslatedSid *sids;
};
struct lsa_TrustInformation {
struct lsa_Name name;
struct dom_sid2 *sid;
};
struct lsa_RefDomainList {
uint32 count;
struct lsa_TrustInformation *domains;
uint32 max_count;
};
struct lsa_LookupNames {
struct {
struct policy_handle *handle;
uint32 num_names;
struct lsa_Name *names;
struct lsa_TransSidArray *sids;
uint16 level;
uint32 *count;
} in;
struct {
struct lsa_RefDomainList *domains;
struct lsa_TransSidArray *sids;
uint32 *count;
NTSTATUS result;
} out;
};
struct lsa_TranslatedName {
uint16 sid_type;
struct lsa_Name name;
uint32 sid_index;
};
struct lsa_TransNameArray {
uint32 count;
struct lsa_TranslatedName *names;
};
struct lsa_LookupSids {
struct {
struct policy_handle *handle;
struct lsa_SidArray *sids;
struct lsa_TransNameArray *names;
uint16 level;
uint32 *count;
} in;
struct {
struct lsa_RefDomainList *domains;
struct lsa_TransNameArray *names;
uint32 *count;
NTSTATUS result;
} out;
};
struct CREATESECRET {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct lsa_OpenAccount {
struct {
struct policy_handle *handle;
struct dom_sid2 *sid;
uint32 desired_access;
} in;
struct {
struct policy_handle *acct_handle;
NTSTATUS result;
} out;
};
struct lsa_LUID {
uint32 low;
uint32 high;
};
struct lsa_LUIDAttribute {
struct lsa_LUID luid;
uint32 attribute;
};
struct lsa_PrivilegeSet {
uint32 count;
struct lsa_LUIDAttribute *set;
uint32 unknown[1];
};
struct lsa_EnumPrivsAccount {
struct {
struct policy_handle *handle;
} in;
struct {
struct lsa_PrivilegeSet *privs;
NTSTATUS result;
} out;
};
struct ADDPRIVS {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct REMOVEPRIVS {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct GETQUOTAS {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct SETQUOTAS {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct GETSYSTEMACCOUNT {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct SETSYSTEMACCOUNT {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct OPENTRUSTDOM {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct QUERYTRUSTDOM {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct SETINFOTRUSTDOM {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct OPENSECRET {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct SETSECRET {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct QUERYSECRET {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct LOOKUPPRIVVALUE {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct lsa_LookupPrivName {
struct {
struct policy_handle *handle;
uint32 luid_high;
uint32 luid_low;
} in;
struct {
struct lsa_Name *name;
NTSTATUS result;
} out;
};
struct PRIV_GET_DISPNAME {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct DELETEOBJECT {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct ENUMACCTWITHRIGHT {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct lsa_RightAttribute {
const char *name;
};
struct lsa_RightSet {
uint32 count;
struct lsa_Name *names;
};
struct lsa_EnumAccountRights {
struct {
struct policy_handle *handle;
struct dom_sid2 *sid;
} in;
struct {
struct lsa_RightSet *rights;
NTSTATUS result;
} out;
};
struct ADDACCTRIGHTS {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct REMOVEACCTRIGHTS {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct QUERYTRUSTDOMINFO {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct SETTRUSTDOMINFO {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct DELETETRUSTDOM {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct STOREPRIVDATA {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct RETRPRIVDATA {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct lsa_OpenPolicy2 {
struct {
const char *system_name;
struct lsa_ObjectAttribute *attr;
uint32 desired_access;
} in;
struct {
struct policy_handle *handle;
NTSTATUS result;
} out;
};
struct UNK_GET_CONNUSER {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct QUERYINFO2 {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
#define DCERPC_LSA_CLOSE 0
#define DCERPC_LSA_DELETE 1
#define DCERPC_LSA_ENUMPRIVS 2
#define DCERPC_LSA_QUERYSECOBJ 3
#define DCERPC_LSA_SETSECOBJ 4
#define DCERPC_LSA_CHANGEPASSWORD 5
#define DCERPC_LSA_OPENPOLICY 6
#define DCERPC_LSA_QUERYINFOPOLICY 7
#define DCERPC_LSA_SETINFOPOLICY 8
#define DCERPC_LSA_CLEARAUDITLOG 9
#define DCERPC_LSA_CREATEACCOUNT 10
#define DCERPC_LSA_ENUMACCOUNTS 11
#define DCERPC_LSA_CREATETRUSTDOM 12
#define DCERPC_LSA_ENUMTRUSTDOM 13
#define DCERPC_LSA_LOOKUPNAMES 14
#define DCERPC_LSA_LOOKUPSIDS 15
#define DCERPC_CREATESECRET 16
#define DCERPC_LSA_OPENACCOUNT 17
#define DCERPC_LSA_ENUMPRIVSACCOUNT 18
#define DCERPC_ADDPRIVS 19
#define DCERPC_REMOVEPRIVS 20
#define DCERPC_GETQUOTAS 21
#define DCERPC_SETQUOTAS 22
#define DCERPC_GETSYSTEMACCOUNT 23
#define DCERPC_SETSYSTEMACCOUNT 24
#define DCERPC_OPENTRUSTDOM 25
#define DCERPC_QUERYTRUSTDOM 26
#define DCERPC_SETINFOTRUSTDOM 27
#define DCERPC_OPENSECRET 28
#define DCERPC_SETSECRET 29
#define DCERPC_QUERYSECRET 30
#define DCERPC_LOOKUPPRIVVALUE 31
#define DCERPC_LSA_LOOKUPPRIVNAME 32
#define DCERPC_PRIV_GET_DISPNAME 33
#define DCERPC_DELETEOBJECT 34
#define DCERPC_ENUMACCTWITHRIGHT 35
#define DCERPC_LSA_ENUMACCOUNTRIGHTS 36
#define DCERPC_ADDACCTRIGHTS 37
#define DCERPC_REMOVEACCTRIGHTS 38
#define DCERPC_QUERYTRUSTDOMINFO 39
#define DCERPC_SETTRUSTDOMINFO 40
#define DCERPC_DELETETRUSTDOM 41
#define DCERPC_STOREPRIVDATA 42
#define DCERPC_RETRPRIVDATA 43
#define DCERPC_LSA_OPENPOLICY2 44
#define DCERPC_UNK_GET_CONNUSER 45
#define DCERPC_QUERYINFO2 46
|