-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathdtfabric.yaml
307 lines (307 loc) · 6.5 KB
/
dtfabric.yaml
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
name: lnk
type: format
description: Windows Shortcut File (LNK) format
urls:
- 'https://msdn.microsoft.com/en-us/library/dd871305.aspx'
- 'https://github.com/libyal/liblnk/blob/main/documentation/Windows%20Shortcut%20File%20(LNK)%20format.asciidoc'
metadata:
authors: ['Joachim Metz <joachim.metz@gmail.com>']
year: 2009
attributes:
byte_order: little-endian
layout:
- data_type: file_header
---
name: byte
type: integer
attributes:
format: unsigned
size: 1
units: bytes
---
name: char
type: character
attributes:
size: 1
units: bytes
---
name: uint8
type: integer
attributes:
format: unsigned
size: 1
units: bytes
---
name: uint16
type: integer
attributes:
format: unsigned
size: 2
units: bytes
---
name: int32
type: integer
description: 32-bit signed integer type
attributes:
format: signed
size: 4
units: bytes
---
name: uint32
type: integer
attributes:
format: unsigned
size: 4
units: bytes
---
name: wchar16
type: character
attributes:
size: 2
units: bytes
---
name: filetime
aliases: [FILETIME]
type: structure
description: FILETIME structure
urls: ['https://msdn.microsoft.com/en-us/library/windows/desktop/ms724284(v=vs.85).aspx']
members:
- name: lower_part
data_type: uint32
- name: upper_part
data_type: uint32
---
name: file_header
aliases: [ShellLinkHeader]
type: structure
description: File header
members:
- name: header_size
aliases: [HeaderSize]
data_type: uint32
value: 76
- name: class_identifier
aliases: [LinkCLSID]
type: uuid
value: '\x01\x14\x02\x00\x00\x00\x00\x00\xc0\x00\x00\x00\x00\x00\x00\x46'
- name: data_flags
aliases: [LinkFlags]
data_type: uint32
- name: file_attribute_flags
aliases: [FileAttributes]
data_type: uint32
- name: creation_time
aliases: [CreationTime]
description: Creation date and time
data_type: filetime
- name: access_time
aliases: [AccessTime]
description: Last access date and time
data_type: filetime
- name: modification_time
aliases: [WriteTime]
description: Last modification date and time
data_type: filetime
- name: file_size
aliases: [FileSize]
data_type: uint32
- name: icon_index
aliases: [IconIndex]
data_type: int32
- name: show_window
aliases: [ShowCommand]
data_type: uint32
- name: hot_key
aliases: [HotKey]
data_type: uint16
- name: unknown1
aliases: [Reserved1]
data_type: uint16
value: 0
- name: unknown2
aliases: [Reserved2]
data_type: uint32
value: 0
- name: unknown3
aliases: [Reserved3]
data_type: uint32
value: 0
---
name: link_target_identifier
aliases: [LinkTargetIDList]
type: structure
description: Link target identifier
members:
- name: data_size
aliases: [IDListSize]
data_type: uint16
- name: data
aliases: [IDList]
type: stream
element_data_type: byte
elements_data_size: link_target_identifier.data_size
---
name: location_information
aliases: [LinkInfo]
type: structure
description: Location information
members:
- name: data_size
aliases: [LinkInfoSize]
data_type: uint32
- name: header_size
aliases: [LinkInfoHeaderSize]
data_type: uint32
- name: location_flags
aliases: [LinkInfoFlags]
data_type: uint32
- name: volume_information_offset
aliases: [VolumeIDOffset]
data_type: uint32
- name: local_path_offset
aliases: [LocalBasePathOffset]
data_type: uint32
- name: network_share_information_offset
aliases: [CommonNetworkRelativeLinkOffset]
data_type: uint32
- name: common_path_offset
aliases: [CommonPathSuffixOffset]
data_type: uint32
- name: unicode_local_path_offset
data_type: uint32
- name: unicode_common_path_offset
data_type: uint32
---
name: network_share_information
type: structure
description: Network share information
members:
- name: data_size
data_type: uint32
- name: network_share_type
data_type: uint32
- name: network_share_name_offset
data_type: uint32
- name: device_name_offset
data_type: uint32
- name: network_provider_type
data_type: uint32
- name: unicode_network_share_name_offset
data_type: uint32
- name: unicode_device_name_offset
data_type: uint32
---
name: volume_information
type: structure
description: Volume information
members:
- name: data_size
data_type: uint32
- name: drive_type
data_type: uint32
- name: drive_serial_number
data_type: uint32
- name: volume_label_offset
data_type: uint32
- name: unicode_volume_label_offset
data_type: uint32
---
name: lnk_data_block_base
type: structure
description: Structure shared by all data blocks
attributes:
byte_order: little-endian
members:
- name: signature
data_type: uint32
---
name: lnk_data_block_console_properties
type: structure
description: Data block containing console properties
attributes:
byte_order: little-endian
members:
- name: signature
data_type: uint32
value: 0xa0000002
---
name: lnk_data_block_distributed_link_tracker_properties
type: structure
description: Data block containing distributed link tracker properties
attributes:
byte_order: little-endian
members:
- name: signature
data_type: uint32
value: 0xa0000003
- name: data_size
data_type: uint32
- name: data_version
data_type: uint32
- name: machine_identifier_string
type: uuid
- name: droid_volume_identifier
type: uuid
- name: droid_file_identifier
type: uuid
- name: birth_droid_volume_identifier
type: uuid
- name: birth_droid_file_identifier
type: uuid
---
name: lnk_data_block_known_folder_location
type: structure
description: Data block containing the location of a known folder
attributes:
byte_order: little-endian
members:
- name: signature
data_type: uint32
value: 0xa000000b
- name: folder_identifier
type: uuid
- name: first_child_segment_offset
data_type: uint32
---
name: lnk_data_block_special_folder_location
type: structure
description: Data block containing the location of a special folder
attributes:
byte_order: little-endian
members:
- name: signature
data_type: uint32
value: 0xa0000005
- name: folder_identifier
data_type: uint32
- name: first_child_segment_offset
data_type: uint32
---
name: lnk_data_block_strings
type: structure
description: Data block containing strings
attributes:
byte_order: little-endian
members:
- name: signature
data_type: uint32
values: [0xa0000001, 0xa0000006, 0xa0000007]
- name: string
type: sequence
element_data_type: char
elements_data_size: 260
elements_terminator: "\x00"
- name: unicode_string
type: string
encoding: utf-16-le
element_data_type: wchar16
elements_data_size: 512
elements_terminator: "\x00"
---
name: lnk_data_block
type: structure-group
description: Group of LNK data blocks
base: lnk_data_block_base
identifier: signature
members:
- lnk_data_block_strings