Skip to content

Instantly share code, notes, and snippets.

@tostercx
Created February 18, 2022 08:08
Show Gist options
  • Save tostercx/3f2f2776736fbdaf9b8fa77c2037b7f1 to your computer and use it in GitHub Desktop.
Save tostercx/3f2f2776736fbdaf9b8fa77c2037b7f1 to your computer and use it in GitHub Desktop.
reversed GoIP PKG format

PKG format

offset sample name details
DB AD 47 5E magic
00 01 version PKG format version 1
00 00 encrypt resellers can crypt these?
00 2A 60 00 pkg_len total package length
69 4F 82 7D pkg_md5 md5 of rest of pkg
6B DE CA 4F -
BA F2 4E 95 -
F2 92 67 65 -
- these header blocks rpt -
00 B0 hb_size header size, including self
04 block # destination flash block - 4
00 comp_fl compression used?
00 1F 30 00 size one of these is the real \
00 1F 30 00 size and one is compressed size
00 00 10 00 off_pkg offset from pkg begining
00 00 00 00 flags ?
00 61 meta_sz metadata size (-self)
00 43 50 .. meta data, padded to x4 (\w sz)
00 0B name_sz name size (-self)
46 4C 41 .. name trailing nils, chk hb_size
- these header blocks rpt -
00 00 hb_size hb_size=0, end of parts
proceed to off_pkg for data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment