h3x4n1um / RETON

Reverse Engineering RTON File
GNU General Public License v3.0
33 stars 3 forks source link
bo cpp json reton rton

RETON: Reverse Engineering RTON (RE RTON -> RETON)

Basic

RTON Cheatsheet

Bytecode Type Note
0x0 false
0x1 true
0x8 int8_t int 8 bit
0x9 0 0 in int8_t?
0xa uint8_t unsigned int 8 bit
0xb 0 0 in uint8_t?
0x10 int16_t int 16 bit
0x11 0 0 in int16_t?
0x12 uint16_t unsigned int 16 bit
0x13 0 0 in uint16_t?
0x20 int32_t int 32 bit
0x21 0 0 in int32_t?
0x22 float Single-precision floating-point
0x23 0.0 0 in float?
0x24 uRTON_t unsigned RTON number
0x25 RTON_t RTON number
0x26 uint32_t unsigned int 32 bit
0x27 0 0 in uint32_t?
0x28 uRTON_t unsigned RTON number
0x29 RTON_t RTON number
0x40 int64_t int 64 bit
0x41 0 0 in int64_t?
0x42 double Double-precision floating-point
0x43 0.0 0 in double?
0x44 uRTON_t unsigned RTON number
0x45 RTON_t RTON number
0x46 uint64_t unsigned int 64 bit
0x47 0 0 in uint64_t?
0x48 uRTON_t unsigned RTON number
0x49 RTON_t RTON number
0x81 String
0x82 Utf-8 string
0x83 RTID RTON ID
0x85 Object
0x86 Array
0x90 Cached string
0x91 Cached string recall
0x92 Cached utf-8 string
0x93 Cached utf-8 string recall
0xfd Begin of array
0xfe End of array
0xff End of object

Unsigned RTON Number

0x24, 0x28, 0x44 and 0x48

RTON Number

0x25, 0x29, 0x45 and 0x49

String

0x81

UTF-8 String

0x82

RTID

0x83

0x0 Subset

83 00

0x2 Subset

83 02 [L1] [L2] [string] [U2] [U1] [4-byte ID]

0x3 Subset

83 03 [L1] [L2] [string] [L3] [L4] [string 2]

Object

0x85

Array

0x86, 0xfd and 0xfe

Cached String

0x90 and 0x91

Cached UTF-8 String

0x92 and 0x93

End of Object

0xff

TODO

Credit

P/s