• Hello Guest! Welcome to ConsoleCrunch, to help support our site check out the premium upgrades HERE! to get exclusive access to our hidden content.
  • Unable to load portions of the website...
    If you use an ad blocker addon, you should disable it because it interferes with several elements of the site and blocks more than just adverts.
  • Read Rules Before Posting Post Virus Scans with every program.

Getting started with .PKG files

Psycho_Coder

Active Poster
Retired Staff
Active Member
This should help those new to PKG files.

Code:
NameOffsetSizeExampleRemark
magic0x000x047F 50 4B 47'.PKG'
pkg_revision0x040x0280 0080 00 for retail (finalized), 00 00 for debug (non finalized)
pkg_type0x060x0200 0100 01 for ps3, 00 02 for psp
pkg_info_offset0x080x0400 00 00 C00xC0
pkg_info_count0x0C0x0400 00 00 08Item count
header_size0x100x0400 00 00 C00xC0
item_count0x140x0400 00 00 02files and folders into the encrypted data
total_size0x180x0800 00 00 00 00 00 17 C00x17C0 - total pkg file size
data_offset0x200x0800 00 00 00 00 00 01 800x0180 - encrypted data offset
data_size0x280x0800 00 00 00 00 00 15 E00x15E0 - encrypted data size
contentid0x300x24'UP0001-NPUB30162_00-SCOTTPILGRIM0002' pkg content id
padding0x540x0C00 00 00 00 00 00 00 00 00 00 00 000x0C bytes padding
digest0x600x1009 8B A2 CA 2D 30 30 1F 8B 5B 82 79 C6 70 35 F3sha1 from debug files and attributes together merged in one block
pkg_data_riv0x700x10D5 FA 15 9E 7F AC 82 70 BB 3E 0C EB 97 3D 30 11aes-128-ctr iv. uses with gpkg_key for decrypt data
header_cmac_hash0x800x1048 0D 86 60 9F 26 8E 7F 4F B4 DA A4 33 1E 9A A1cmac omac hash from 0x00-0x7F, gpkg_key used as key
header_npdrm_signature0x900x28Header NPDRM ECDSA (R_sig, S_sig)
header_sha1_hash0xB80x08EC 61 40 39 A6 5B DC BDlast 8 bytes of sha1 hash from 0x00-0x7F
 
Nice post bud! :D
 
General chit-chat
Help Users
  • No one is chatting at the moment.
      Chat Bot: soc88vietnamco is our newest member. Welcome!
      Back
      Top