|
|
@ -1,21 +1,44 @@ |
|
|
|
## File header |
|
|
|
# Cuper |
|
|
|
## RIZ file header |
|
|
|
```plain |
|
|
|
32 bits |
|
|
|
<----------------------------------------------> |
|
|
|
+----------------------------------------------+ |
|
|
|
| |
|
|
|
-----------------------------------------------+ |
|
|
|
| |
|
|
|
-----------------------------------------------+ |
|
|
|
| |
|
|
|
-----------------------------------------------+ |
|
|
|
| |
|
|
|
-----------------------------------------------+ |
|
|
|
32 bits |
|
|
|
<----------------------------------------------> |
|
|
|
16 bits |
|
|
|
<----------------------> |
|
|
|
+----------------------------------------------+ |
|
|
|
0 | IDENTIFICATOR | |
|
|
|
+----------------------------------------------+ |
|
|
|
1 | ARCH | OS | |
|
|
|
+----------------------------------------------+ |
|
|
|
2 | TIME | |
|
|
|
+----------------------------------------------+ |
|
|
|
3 | TYPE | PROT. | VER | |
|
|
|
+----------------------------------------------+ |
|
|
|
4 | HL | MDL | |
|
|
|
+----------------------------------------------+ |
|
|
|
5-9 | RESERVED | |
|
|
|
+----------------------------------------------+ |
|
|
|
| OPTIONS | |
|
|
|
+----------------------------------------------+ |
|
|
|
| METADATA | |
|
|
|
+----------------------------------------------+ |
|
|
|
| PAYLOAD | |
|
|
|
+----------------------------------------------+ |
|
|
|
``` |
|
|
|
|
|
|
|
| Nom du champ | Indice | Valeur | |
|
|
|
|:------------:|:------:|:-------| |
|
|
|
| Identification || |
|
|
|
| Nom du champ | Position | Longeur (bits) | Valeur(s) | |
|
|
|
|:------------:|:------:|:--------------:|:---------:| |
|
|
|
| Identificator | 0 | 32 | `0x7f 0x52 0x49 0x5a` | |
|
|
|
| Arch | 4 | 16 | `0x0` = no arch | |
|
|
|
|||| `0x01` = i386 | |
|
|
|
|||| `0x02` = x86_64 | |
|
|
|
| OS | 6 | 16 | `0x0` = no OS | |
|
|
|
|||| `0x01` = linux | |
|
|
|
| Time | 8 | 32 | *current timestamp* | |
|
|
|
| Type | 12 | 16 | `0x0` = container | |
|
|
|
|||| `0x1` = meta container | |
|
|
|
| Protected | 14 | 8 | `0x0` = unprotected | |
|
|
|
|||| `0x1` = aes | |
|
|
|
|
|
|
|
* Magic number (32 bits: `0x7f` `0x52` `0x49` `0x5a`), la signature du fichier: DELRIZ. |
|
|
|
* arch (16 bits), l'identifiant de la machine cible (architecture du processeur). |
|
|
|