CatCore
Advanced

App File Structure

How app files work on the inside.

App File Structure

First 62 80 62 80 bytes (red color) is CatCore Magic Signature - kernel, apps, kexts all start from these bytes.

Next 02 byte (green color) is File Type, where 02 means it's an .app (Application File).

Next 01 byte (yellow color) is Application Type. Check table below to know all the application types (they also are available in CatCore.ProcessType variable, except the CatCore.ProcessType.APP):

NumberType
0DUMMY
1KERNEL
3JAVASCRIPT
4PYTHON
5PHP
6RUBY

Next 01 byte (dark blue color) is Application Flags (bitfield). Check table below to know all the bitfield flags:

FlagNameDescription
1 << 0SIGNEDApplication is signed.

If application has SIGNED flag, next 256 bytes (purple color) is a Signature.

Everything else after that (light blue color) is an Application Manifest, which is reversed Base64 of a JSON object. JSON object doesn't have a strict structure, the only requirement is code property, containing the application code itself.