-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtype.go
121 lines (107 loc) · 4.44 KB
/
type.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
package main
type bloodHoundRawData struct {
Gpos []gpo `json:"gpos"`
Domains []domain `json:"domains"`
Computers []computer `json:"computers"`
Groups []group `json:"groups"`
OUs []ou `json:"ous"`
Users []user `json:"users"`
Meta struct {
// Possible types are: users, groups, ous, computers, gpos, domains
Type string `json:"type"`
Count int `json:"count"`
Version int `json:"version"`
} `json:"meta"`
}
type domain struct {
ObjectIdentifier string `json:"ObjectIdentifier"`
Properties map[string]interface{} `json:"Properties"`
Users []string `json:"Users"`
Computers []string `json:"Computers"`
ChildOus []string `json:"ChildOus"`
Trusts []struct {
TargetDomainSid string `json:"TargetDomainSid"`
IsTransitive bool `json:"IsTransitive"`
TrustDirection int `json:"TrustDirection"`
TrustType int `json:"TrustType"`
SidFilteringEnabled bool `json:"SidFilteringEnabled"`
TargetDomainName string `json:"TargetDomainName"`
} `json:"Trusts"`
Links []link `json:"Links"`
RemoteDesktopUsers []member `json:"RemoteDesktopUsers"`
LocalAdmins []member `json:"LocalAdmins"`
DcomUsers []member `json:"DcomUsers"`
PSRemoteUsers []member `json:"PSRemoteUsers"`
Aces []ace `json:"Aces"`
}
type computer struct {
ObjectIdentifier string `json:"ObjectIdentifier"`
Properties map[string]interface{} `json:"Properties"`
AllowedToDelegate []string `json:"AllowedToDelegate"`
AllowedToAct []member `json:"AllowedToAct"`
PrimaryGroupSid string `json:"PrimaryGroupSid"`
Sessions []session `json:"Sessions"`
LocalAdmins []member `json:"LocalAdmins"`
RemoteDesktopUsers []member `json:"RemoteDesktopUsers"`
DcomUsers []member `json:"DcomUsers"`
PSRemoteUsers []member `json:"PSRemoteUsers"`
Aces []ace `json:"Aces"`
}
type user struct {
ObjectIdentifier string `json:"ObjectIdentifier"`
Properties map[string]interface{} `json:"Properties"`
AllowedToDelegate []string `json:"AllowedToDelegate"`
SPNTargets []spnTarget `json:"SPNTargets"`
PrimaryGroupSid string `json:"PrimaryGroupSid"`
HasSIDHistory []member `json:"HasSIDHistory"`
Aces []ace `json:"Aces"`
}
type gpo struct {
ObjectIdentifier string `json:"ObjectIdentifier"`
Properties map[string]interface{} `json:"Properties"`
Aces []ace `json:"Aces"`
}
type group struct {
ObjectIdentifier string `json:"ObjectIdentifier"`
Properties map[string]interface{} `json:"Properties"`
Members []member `json:"Members"`
Aces []ace `json:"Aces"`
}
type ou struct {
ObjectIdentifier string `json:"ObjectIdentifier"`
Properties map[string]interface{} `json:"Properties"`
Links []link `json:"Links"`
ACLProtected bool `json:"ACLProtected"`
Users []string `json:"Users"`
Computers []string `json:"Computers"`
ChildOus []string `json:"ChildOus"`
RemoteDesktopUsers []member `json:"RemoteDesktopUsers"`
LocalAdmins []member `json:"LocalAdmins"`
DcomUsers []member `json:"DcomUsers"`
PSRemoteUsers []member `json:"PSRemoteUsers"`
Aces []ace `json:"Aces"`
}
type session struct {
UserID string `json:"UserId"`
ComputerID string `json:"ComputerId"`
}
type ace struct {
PrincipalSID string `json:"PrincipalSID"`
PrincipalType string `json:"PrincipalType"`
RightName string `json:"RightName"`
AceType string `json:"AceType"`
IsInherited bool `json:"IsInherited"`
}
type member struct {
MemberID string `json:"MemberId"`
MemberType string `json:"MemberType"`
}
type link struct {
IsEnforced bool `json:"IsEnforced"`
GUID string `json:"Guid"`
}
type spnTarget struct {
ComputerSid string `json:"ComputerSid"`
Port int `json:"Port"`
Service string `json:"Service"`
}