-
Notifications
You must be signed in to change notification settings - Fork 2
/
maps.go
184 lines (178 loc) · 5.91 KB
/
maps.go
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
package gosddl
var sddlRights = map[string]string{
// Generic access rights
"GA": "GENERIC_ALL",
"GR": "GENERIC_READ",
"GW": "GENERIC_WRITE",
"GX": "GENERIC_EXECUTE",
// Standard access rights
"RC": "READ_CONTROL",
"SD": "DELETE",
"WD": "WRITE_DAC",
"WO": "WRITE_OWNER",
// Directory service object access rights
"RP": "ADS_RIGHT_DS_READ_PROP",
"WP": "ADS_RIGHT_DS_WRITE_PROP",
"CC": "ADS_RIGHT_DS_CREATE_CHILD",
"DC": "ADS_RIGHT_DS_DELETE_CHILD",
"LC": "ADS_RIGHT_ACTRL_DS_LIST",
"SW": "ADS_RIGHT_DS_SELF",
"LO": "ADS_RIGHT_DS_LIST_OBJECT",
"DT": "ADS_RIGHT_DS_DELETE_TREE",
"CR": "ADS_RIGHT_DS_CONTROL_ACCESS",
// File access rights
"FA": "FILE_ALL_ACCESS",
"FR": "FILE_GENERIC_READ",
"FW": "FILE_GENERIC_WRITE",
"FX": "FILE_GENERIC_EXECUTE",
// Registry key access rights
"KA": "KEY_ALL_ACCESS",
"KR": "KEY_READ",
"KW": "KEY_WRITE",
"KX": "KEY_EXECUTE",
// Mandatory label rights
"NR": "SYSTEM_MANDATORY_LABEL_NO_READ_UP",
"NW": "SYSTEM_MANDATORY_LABEL_NO_WRITE_UP",
"NX": "SYSTEM_MANDATORY_LABEL_NO_EXECUTE",
}
var sddlInheritanceFlags = map[string]string{
"P": "DDL_PROTECTED",
"AI": "SDDL_AUTO_INHERITED",
"AR": "SDDL_AUTO_INHERIT_REQ",
}
var sddlAceType = map[string]string{
"D": "ACCESS DENIED",
"OA": "OBJECT ACCESS ALLOWED",
"OD": "OBJECT ACCESS DENIED",
"AU": "SYSTEM AUDIT",
"OU": "OBJECT SYSTEM AUDIT",
"OL": "OBJECT SYSTEM ALARM",
"A": "ACCESS ALLOWED",
}
var sddlAceFlags = map[string]string{
"CI": "CONTAINER INHERIT",
"OI": "OBJECT INHERIT",
"NP": "NO PROPAGATE",
"IO": "INHERITANCE ONLY",
"ID": "ACE IS INHERITED",
"SA": "SUCCESSFUL ACCESS AUDIT",
"FA": "FAILED ACCESS AUDIT",
}
var sddlSidsRep = map[string]string{
"O": "Owner",
"AO": "Account operators",
"PA": "Group Policy administrators",
"RU": "Alias to allow previous Windows 2000",
"IU": "Interactively logged-on user",
"AN": "Anonymous logon",
"LA": "Local administrator",
"AU": "Authenticated users",
"LG": "Local guest",
"BA": "Built-in administrators",
"LS": "Local service account",
"BG": "Built-in guests",
"SY": "Local system",
"BO": "Backup operators",
"NU": "Network logon user",
"BU": "Built-in users",
"NO": "Network configuration operators",
"CA": "Certificate server administrators",
"NS": "Network service account",
"CG": "Creator group",
"PO": "Printer operators",
"CO": "Creator owner",
"PS": "Personal self",
"DA": "Domain administrators",
"PU": "Power users",
"DC": "Domain computers",
"RS": "RAS servers group",
"DD": "Domain controllers",
"RD": "Terminal server users",
"DG": "Domain guests",
"RE": "Replicator",
"DU": "Domain users",
"RC": "Restricted code",
"EA": "Enterprise administrators",
"SA": "Schema administrators",
"ED": "Enterprise domain controllers",
"SO": "Server operators",
"WD": "Everyone",
"SU": "Service logon user",
}
var sddlWellKnownSidsRep = map[string]string{
"S-1-0": "Null Authority",
"S-1-0-0": "Nobody",
"S-1-1": "World Authority",
"S-1-1-0": "Everyone",
"S-1-2": "Local Authority",
"S-1-2-0": "Local ",
"S-1-2-1": "Console Logon ",
"S-1-3": "Creator Authority",
"S-1-3-0": "Creator Owner",
"S-1-3-1": "Creator Group",
"S-1-3-2": "Creator Owner Server",
"S-1-3-3": "Creator Group Server",
"S-1-3-4": "Owner Rights ",
"S-1-4": "Non-unique Authority",
"S-1-5": "NT Authority",
"S-1-5-1": "Dialup",
"S-1-5-2": "Network",
"S-1-5-3": "Batch",
"S-1-5-4": "Interactive",
"S-1-5-6": "Service",
"S-1-5-7": "Anonymous",
"S-1-5-8": "Proxy",
"S-1-5-9": "Enterprise Domain Controllers",
"S-1-5-10": "Principal Self",
"S-1-5-11": "Authenticated Users",
"S-1-5-12": "Restricted Code",
"S-1-5-13": "Terminal Server Users",
"S-1-5-14": "Remote Interactive Logon ",
"S-1-5-15": "This Organization ",
"S-1-5-17": "This Organization ",
"S-1-5-18": "Local System",
"S-1-5-19": "NT Authority",
"S-1-5-20": "NT Authority",
"S-1-5-32-544": "Administrators",
"S-1-5-32-545": "Users",
"S-1-5-32-546": "Guests",
"S-1-5-32-547": "Power Users",
"S-1-5-32-548": "Account Operators",
"S-1-5-32-549": "Server Operators",
"S-1-5-32-550": "Print Operators",
"S-1-5-32-551": "Backup Operators",
"S-1-5-32-552": "Replicators",
"S-1-5-64-10": "NTLM Authentication ",
"S-1-5-64-14": "SChannel Authentication ",
"S-1-5-64-21": "Digest Authentication ",
"S-1-5-80": "NT Service ",
"S-1-5-80-0": "All Services ",
"S-1-5-83-0": "NT VIRTUAL MACHINE\\Virtual Machines",
"S-1-16-0": "Untrusted Mandatory Level ",
"S-1-16-4096": "Low Mandatory Level ",
"S-1-16-8192": "Medium Mandatory Level ",
"S-1-16-8448": "Medium Plus Mandatory Level ",
"S-1-16-12288": "High Mandatory Level ",
"S-1-16-16384": "System Mandatory Level ",
"S-1-16-20480": "Protected Process Mandatory Level ",
"S-1-16-28672": "Secure Process Mandatory Level ",
"S-1-5-32-554": "BUILTIN\\Pre-Windows 2000 Compatible Access",
"S-1-5-32-555": "BUILTIN\\Remote Desktop Users",
"S-1-5-32-556": "BUILTIN\\Network Configuration Operators",
"S-1-5-32-557": "BUILTIN\\Incoming Forest Trust Builders",
"S-1-5-32-558": "BUILTIN\\Performance Monitor Users",
"S-1-5-32-559": "BUILTIN\\Performance Log Users",
"S-1-5-32-560": "BUILTIN\\Windows Authorization Access Group",
"S-1-5-32-561": "BUILTIN\\Terminal Server License Servers",
"S-1-5-32-562": "BUILTIN\\Distributed COM Users",
"S-1-5-32-569": "BUILTIN\\Cryptographic Operators",
"S-1-5-32-573": "BUILTIN\\Event Log Readers ",
"S-1-5-32-574": "BUILTIN\\Certificate Service DCOM Access ",
"S-1-5-32-575": "BUILTIN\\RDS Remote Access Servers",
"S-1-5-32-576": "BUILTIN\\RDS Endpoint Servers",
"S-1-5-32-577": "BUILTIN\\RDS Management Servers",
"S-1-5-32-578": "BUILTIN\\Hyper-V Administrators",
"S-1-5-32-579": "BUILTIN\\Access Control Assistance Operators",
"S-1-5-32-580": "BUILTIN\\Remote Management Users",
"S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464": "Trusted Installer",
}