From dbda4f3c1bfa8c1d974f153b4c73260fc4405185 Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Fri, 24 Feb 2023 10:58:56 +0200 Subject: [PATCH] Updated PKG Information (markdown) --- PKG-Information.md | 67 ++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 59 insertions(+), 8 deletions(-) diff --git a/PKG-Information.md b/PKG-Information.md index d9d58a1..416e663 100644 --- a/PKG-Information.md +++ b/PKG-Information.md @@ -14,11 +14,62 @@ First 4.096 bytes (0x1000) are the PKG Header. PKG header appears to be in Big E # PKG Header -| Field | Type | Size | Offset | Description -| ----------- | -----|----- |------- |------------ -| magic | U32 | 4 | 0x000 | Should be 0x7F434E54 to be PS4 valid -| 0x8| Text | -| file_count| Text | -| file_count| Text | -| file_count| Text | -| file_count| Text | \ No newline at end of file +| Field | Type | Size | Offset | Description +| ----------------------- | -----|----- |------- |------------ +| pkg_magic | U32 | 4 | 0x000 | Should be 0x7F434E54 to be PS4 valid +| pkg_flags | U32 | 4 | 0x004 | *Check PKG Flags table below +| 0x8 | U32 | +| pkg_file_count | U32 | +| pkg_table_entry_count | U32 | +| pkg_sc_entry_count | U16 | +| pkg_table_entry_count_2 | U16 | +| pkg_table_entry_offset | U32 | +| pkg_sc_entry_data_size | U32 | +| pkg_body_offset | U64| +| pkg_body_size | U64| +| pkg_content_offset | U64| +| pkg_content_size | U64| +| pkg_content_id | U08| +| pkg_padding| U08| +| pkg_drm_type| U32| +| pkg_content_type| U32| +| pkg_content_flags| U32| +| pkg_promote_size| U32| +| pkg_version_date| U32| +| pkg_version_hash| U32| +| pkg_0x088| U32| +| pkg_0x08C| U32| +| pkg_0x090| U32| +| pkg_0x094| U32| +| pkg_iro_tag| U32| +| pkg_drm_type_version| U32| +| pkg_zeroes_1| U08| +| digest_entries1| U08| +| digest_entries2| U08| +| digest_table_digest| U08| +| digest_body_digest| U08| +| pkg_zeroes_2| U08| +| pkg_0x400| U32| +| pfs_image_count| U32| +| pfs_image_flags| U64| +| pfs_image_offset| U64| +| pfs_image_size| U64| +| pkg_size| U64| +| pfs_signed_size| U32| +| pfs_cache_size| U32| +| pfs_image_digest| U08| +| pfs_signed_digest| U08| +| pfs_split_size_nth_0| U64| +| pfs_split_size_nth_1| U64| +| pkg_zeroes_3| U08| +| pkg_digest| U08| + +## PKG Flags Table + +| Name | Value | Description +| --------- | --------- | ----------- +| UNKNOWN | 0x00000001| +| VER_1 | 0x01000000| +| VER_2 | 0x02000000| +| INTERNAL | 0x40000000| +| FINALIZED | 0x80000000| \ No newline at end of file