Reverse engineering iWork '13 formats

后端 未结 2 1011
萌比男神i
萌比男神i 2021-01-31 11:09

Prior versions of Apple\'s iWork suite used a very simple document format:

  • documents were Bundles of resources (folders, zipped or not)
  • the bundle contain
2条回答
  •  臣服心动
    2021-01-31 11:47

    Interesting project, I like it! Here is what I have found so far.

    The first 4 bytes of each of the iwa files appear to be a length, with a tweak. So it looks like there will not be any 'magic' to verify file type.

    Look at Slide1.iwa:
    First 4 bytes are 00 79 02 00
    File size is 637 bytes
    take the first 00 off, and reverse the bytes: 00 02 79
    00 02 79 == 633
    637 - 633 = 4 bytes that hold the size of the file.

    This checks out for the 4 files I looked at: Slide1.iwa, Slide2.iwa, Document.iwa, DocumentStylesheet.iwa

提交回复
热议问题