Skip to content

Instantly share code, notes, and snippets.

@jabb3rd
Created May 20, 2019 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jabb3rd/a66ba26dc34ebbc6fb285452ce57f52e to your computer and use it in GitHub Desktop.
Save jabb3rd/a66ba26dc34ebbc6fb285452ce57f52e to your computer and use it in GitHub Desktop.
Winbox WBX export file (Kaitai Struct)
meta:
id: wbx
file-extension: wbx
endian: le
seq:
- id: magic
contents: [0x0f, 0x10, 0xc0, 0xbe]
- id: records
type: record
repeat: eos
types:
record:
seq:
- id: record_size
type: u2
- id: name_size
type: u1
if: record_size != 0
- id: name
type: str
encoding: cp1251
size: name_size
if: record_size != 0
- id: data
size: record_size - name_size - 1
if: record_size > 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment