-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathReFS SuperBlock.tpl
65 lines (55 loc) · 1.94 KB
/
ReFS SuperBlock.tpl
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
template "ReFS SuperBlock"
// Costas Katsavounidis - 2021 v.2
// kacos2000 [at] gmail.com
// https://github.com/kacos2000
// First SuperBlock starts at Cluster 30
// There are 2 Additional copies of the SuperBlock in the 3rd and 2nd last clusters of the Volume
// Reference:
// Forensic Analysis of the Resilient File System (ReFS) Version 3.4 Technical Report CS-2019-05
// https://opus4.kobv.de/opus4-fau/files/12526/refs_report.pdf
// To be applied to byte 0 of a SuperBlock
description "ReFS - SUPB SuperBlock"
applies_to disk
sector-aligned
read-only
requires 0 "53 55 50 42" //SUPB SuperBlock Signature
begin
section "Page Header"
char[4] "Signature"
uint32 "Unknown" // Always 0x2
move 4
little-endian hexadecimal uint32 "Volume signature (hex)"
int64 "Virtual Allocator Clock"
int64 "Tree Update Clock"
//int64 "VCN 0" // SuperBlock start offset
int64 "Superblock start (offset)" // offset sector from start of Volume
//int64 "VCN 1"
//int64 "VCN 2"
//int64 "VCN 3"
//int64 "Table Identifier (High)"
//int64 "Table Identifier (Low)"
move 40
endSection
Section "GUID"
guid "Guid"
endSection
Section "Volume Signature: x1 -bxor x2 -bxor .."
move -16
// GUID = 4* DWORDS (x1.. x4)
// In Powershel => Volume Signature = (x1 -bxor x2 -bxor x3 -bxor x4).ToString('X')
uint32 "x1"
uint32 "x2"
uint32 "x3"
uint32 "x4"
move 8
int64 "Superblock version"
Section "References"
uint32 "Offset to first CheckPoint entry"
uint32 "Nr of CheckPoints"
uint32 "Offset to Self-Descriptor"
uint32 "Length of Self-Descriptor"
goto "Offset to first CheckPoint entry"
int64 "CheckPoint #1 offset (sector)" // offset sector from start of Volume
int64 "CheckPoint #2 offset (sector)" // offset sector from start of Volume
endSection
end