Talk:PKG files
Examples
PS3
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 00000000 7F 50 4B 47 80 00 00 01 00 00 00 C0 00 00 00 05 .PKG€......À.... 00000010 00 00 00 80 00 00 00 05 00 00 00 00 00 67 AE 80 ...€.........g®€ 00000020 00 00 00 00 00 00 01 40 00 00 00 00 00 67 AC E0 [email protected]¬à 00000030 49 50 39 31 30 30 2D 4E 50 49 41 30 30 30 30 31 IP9100-NPIA00001 00000040 5F 30 30 2D 50 53 32 48 44 44 53 59 53 44 41 54 _00-PS2HDDSYSDAT 00000050 30 30 30 31 00 00 00 00 00 00 00 00 00 00 00 00 0001............
Life With Playstation (Finalized):
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 00000000 7F 50 4B 47 80 00 00 01 00 00 00 C0 00 00 00 07 .PKG€......À.... 00000010 00 00 00 A0 00 00 02 7F 00 00 00 00 07 CE D7 C0 ... .........Î×À 00000020 00 00 00 00 00 00 01 60 00 00 00 00 07 CE D6 00 .......`.....ÎÖ. 00000030 49 50 39 31 30 30 2D 4E 50 49 41 30 30 30 30 32 IP9100-NPIA00002 00000040 5F 30 30 2D 30 30 30 30 31 31 31 31 32 32 32 32 _00-000011112222 00000050 33 33 33 33 00 00 00 00 00 00 00 00 00 00 00 00 3333............
PSP
Locoroco -Midnight Carnival- Demo (Finalized):
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 00000000 7F 50 4B 47 80 00 00 02 00 00 02 80 00 00 00 09 .PKG€......€.... 00000010 00 00 00 E0 00 00 00 0A 00 00 00 00 0A 72 6B F0 ...à.........rkð 00000020 00 00 00 00 00 00 04 E0 00 00 00 00 0A 72 65 30 .......à.....re0 00000030 4A 50 39 30 30 30 2D 4E 50 4A 47 30 30 30 33 34 JP9000-NPJG00034 00000040 5F 30 30 2D 4C 4F 43 4F 52 4F 43 4F 4D 43 47 41 _00-LOCOROCOMCGA 00000050 4D 45 30 31 00 00 00 00 00 00 00 00 00 00 00 00 ME01............
PSVita
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 00000000 7F 50 4B 47 80 00 00 02 00 00 02 80 00 00 00 0D .PKG€......€.... 00000010 00 00 02 10 00 00 00 10 00 00 00 00 04 BA 76 70 .............ºvp 00000020 00 00 00 00 00 00 10 D0 00 00 00 00 04 BA 63 C0 .......Ð.....ºcÀ 00000030 4A 50 30 37 30 30 2D 50 43 53 47 30 30 30 30 31 JP0700-PCSG00001 00000040 5F 30 30 2D 52 49 44 47 45 52 41 43 45 52 50 53 _00-RIDGERACERPS 00000050 56 49 54 41 00 00 00 00 00 00 00 00 00 00 00 00 VITA............
Infos from deroad's pkgtool
JP0365-PCSG90004_00-SKP2TRIAL0000000
dead multiupload link (110.63 MB)
But we have the .pkg of full version here (JP0365-PCSG00020_00-SKP2SKP200000000) : http://zeus.dl.playstation.net/cdn/JP0365/PCSG00020_00/fAREUmIgLtRvGdSjrOvCZoYeVmnHCSrjANZHEavyGZIvhruYikDWrypBneaiYvVEMEnfqAeZcbVKlouoCKiLqIWjgfjcWwrEYypTl.pkg (1.2GB)
JA0003-PCSC80003_00-UKETORNE00000000
Some dump of PSP .ext header
000000c0 7f 65 78 74 00 00 00 01 00 00 00 40 00 00 01 80 |.ext.......@....| 000000d0 00 00 01 00 00 00 03 90 00 00 00 00 00 02 ab 60 |...............`| 000000e0 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 |................| 000000f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000100 4b fd f5 10 e1 22 4e 37 d6 27 f7 15 36 fe 4f f4 |K...."N7.'..6.O.| 00000110 5a 34 41 63 c7 c4 ea fa c2 c5 34 42 12 6e 70 f5 |Z4Ac......4B.np.| 00000120 0e 6b 53 56 6c 4b 35 32 53 59 07 d7 13 6b 54 99 |.kSVlK52SY...kT.| 00000130 4e 92 8e d4 fd 16 99 82 cb 3b ed 78 61 00 9d cf |N........;.xa...| 00000140 6a 53 7c 58 b6 10 9c c9 32 ed 61 fc f1 1f ab 2e |jS|X....2.a.....| 00000150 3c 3c 6a d3 94 f0 13 af 69 53 71 6c 0a 8f 8f 25 |<<j.....iSql...%| 00000160 3e b7 75 63 cd a7 43 a3 20 8a 68 7f 08 39 b4 54 |>.uc..C. .h..9.T| 00000170 34 f5 f2 59 5b 4c ef f0 2a aa 45 b1 6a e3 88 f4 |4..Y[L..*.E.j...| 00000180 59 27 fc 75 c0 d6 ad c6 d8 76 27 4f f9 e2 d3 ff |Y'.u.....v'O....| 00000190 49 da 09 3a b5 4c 60 04 66 2a 3c 68 2c 8c 14 08 |I..:.L`.f*<h,...| 000001a0 c8 1b 1a e0 61 1a 70 cb 7c d2 d1 a5 ca 56 c4 b7 |....a.p.|....V..| 000001b0 4d 58 40 50 38 67 80 0e 43 86 b2 90 28 78 e1 ee |[email protected]...(x..| 000001c0 1a 70 4a ab 27 9d a4 53 63 3b 9c e2 76 35 7e 66 |.pJ.'..Sc;..v5~f| 000001d0 43 f3 39 27 70 5d c9 7c 51 ae 3a 03 e6 82 38 de |C.9'p].|Q.:...8.| 000001e0 7e 8d e2 a8 a0 da 79 c0 bf 3b ab fd 72 e2 ac d1 |~.....y..;..r...| 000001f0 9f c8 91 ad 98 77 34 8c 79 d5 6e e3 3e fb d0 96 |.....w4.y.n.>...| 00000200 71 1f 98 16 b7 6a 3b 99 7c e7 d4 b6 b4 77 5b a4 |q....j;.|....w[.| 00000210 e8 78 2f a0 5e 9e 37 65 ac 85 7b d2 66 8d a6 02 |.x/.^.7e..{.f...| 00000220 ee fb 23 95 ea 77 31 d3 00 16 f8 25 23 87 e0 75 |..#..w1....%#..u| 00000230 8e 5b 79 d9 e1 fc 2c 15 ad 9e 47 6f 15 00 4a 04 |.[y...,...Go..J.| 00000240 b9 29 bb af 9c b6 c6 c4 8a 59 cc ad f7 cc c1 9c |.).......Y......| 00000250 2b 65 00 86 81 fe 2e 58 34 3c a0 49 e2 6e d9 d5 |+e.....X4<.I.n..| 00000260 e5 ab 27 1e 9d c7 76 00 08 a3 39 e0 65 e1 4c a8 |..'...v...9.e.L.| 00000270 cb 61 e6 6d f1 0d 97 ae 4f 4c a0 aa 53 93 e7 38 |.a.m....OL..S..8|
Dump of finalized PSVita Ridge Racer (JP0700-PCSG00001_00-RIDGERACERPSVITA)
000000c0 7f 65 78 74 00 00 00 01 00 00 00 40 00 00 01 80 |.ext.......@....| 000000d0 00 00 01 00 00 00 04 90 00 00 00 00 04 ba 74 d0 |..............t.| 000000e0 00 00 00 00 c0 00 00 02 00 00 09 30 00 00 00 00 |...........0....| 000000f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000100 93 f8 1c 4f 31 9d 7d f9 d4 8c fe 55 65 15 34 eb |...O1.}....Ue.4.| 00000110 1e 06 c4 de 82 d8 25 85 e5 5c 29 4a 80 97 88 ff |......%..\)J....| 00000120 74 c2 79 6b 70 56 44 33 47 42 1b e6 a5 0d f9 12 |t.ykpVD3GB......| 00000130 31 7c 2f a8 d3 35 84 84 52 b4 9f eb 37 2b 75 9d |1|/..5..R...7+u.| 00000140 bd 36 20 ac af 57 85 18 c6 e7 74 44 fc 7c 62 12 |.6 ..W....tD.|b.| 00000150 6f a9 88 3c b1 a0 72 91 22 b8 4c fb 5c 8f 51 60 |o..<..r.".L.\.Q`| 00000160 47 92 f5 34 4e c9 3c 1c e2 2d a1 b8 9c f3 8d 8c |G..4N.<..-......| 00000170 f1 11 b3 7c e3 28 4f 8b ab 53 bd c1 ea 09 98 e6 |...|.(O..S......| 00000180 6f c6 eb c1 44 25 8d 22 44 2c c0 41 bd bb 52 76 |o...D%."D,.A..Rv| 00000190 70 cd 88 cb 39 93 9e a8 a6 db 1e a3 29 2f fb 6f |p...9.......)/.o| 000001a0 3c d1 43 ca 2c bc c6 46 54 ce ed b6 21 22 54 9e |<.C.,..FT...!"T.| 000001b0 09 8d 9a 59 2e 3a 2d 76 0b 0d d4 6d eb 54 b3 70 |...Y.:-v...m.T.p| 000001c0 cb eb f7 96 d0 7c f4 c5 71 2f d7 c1 a4 af 77 cd |.....|..q/....w.| 000001d0 e0 9b df 58 e3 6b cd eb e2 31 d7 89 7c 2b 4f ba |...X.k...1..|+O.| 000001e0 03 f3 cd f9 a5 fa 77 c5 95 6f 90 b6 f6 fa c3 92 |......w..o......| 000001f0 48 48 3e 59 b6 ef 1f 89 1f a1 f2 1f c4 93 96 af |HH>Y............| 00000200 44 3e 21 b8 cb ab ab a1 d2 0f 91 dc 9c f1 9b 32 |D>!............2| 00000210 10 89 80 2c 90 ec f7 4e 8e 62 3a 1a 4e 39 3f 02 |...,...N.b:.N9?.| 00000220 49 3a 35 8d e5 94 3d 8d 00 15 21 44 5d 65 d1 7c |I:5...=...!D]e.|| 00000230 5b 10 fb 54 e4 29 66 46 58 67 b3 7c a7 00 13 58 |[..T.)fFXg.|...X| 00000240 f6 ae ae 06 86 f7 81 d4 0e d0 02 b5 18 2f be 4b |............./.K| 00000250 99 49 00 60 60 06 40 73 34 ee c7 83 1f 3c 50 72 |.I.``.@s4....<Pr| 00000260 7c 3f ab 86 c0 22 67 00 66 14 bc 26 f5 16 67 df ||?..."g.f..&..g.| 00000270 4d 48 ce 93 d4 5b 46 92 32 ea d4 12 b2 06 a8 36 |MH...[F.2......6|
More infos
Link with PDB
See also Project_Database_(PDB).
Deroad tutorial
Mega-Thread HACKING a PS3 - Tutorials and Explanations by Deroad : on ps3hax, on psx-scene or on nextgenupdate
make_package_npdrm reverse engineering
Make Package infos by DrEB (alias jerem73).
- Main Packages Type :
- Update (seams to be a revision of Disc Game Patch Package)
- Warning: needs a custom argument: ```./make_package_npdrm --patch-for-discgame <path>```
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX Klicensee = 0x00000000000000000000000000000000 DRMType = Free ContentType = Update PackageVersion = 01.00
- Game Data
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX Klicensee = 0x00000000000000000000000000000000 DRMType = Free ContentType = GameData PackageVersion = 01.00
- Disc Game Patch
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX Klicensee = 0x00000000000000000000000000000000 DRMType = Free ContentType = GameData PackageType = DiscGamePatch PackageVersion = 01.00
- Disc Game Patch without EBOOT.BIN
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX Klicensee = 0x00000000000000000000000000000000 DRMType = Free ContentType = GameData PackageType = DiscGamePatch PackageType = NoEBOOTBIN PackageVersion = 01.00
- HDD Game
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX Klicensee = 0x00000000000000000000000000000000 DRMType = Free ContentType = GameExec PackageVersion = 01.00
- HDD Game Patch
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX Klicensee = 0x00000000000000000000000000000000 DRMType = Free ContentType = GameExec PackageType = HDDGamePatch PackageVersion = 01.00
- License
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX Klicensee = 0x00000000000000000000000000000000 DRMType = Local ContentType = License PackageVersion = 01.00
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX Klicensee = 0x00000000000000000000000000000000 DRMType = Local ContentType = Theme PackageVersion = 01.00
- VSH Module (See also VSH page)
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX Klicensee = 0x00000000000000000000000000000000 DRMType = Free ContentType = VSHModule PackageVersion = 01.00
- PS1 Game
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX Klicensee = 0x00000000000000000000000000000000 DRMType = Local ContentType = PS1Game TitleID = XXXXYYYYY PackageVersion = 00.00
- Minis
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX Klicensee = 0x00000000000000000000000000000000 DRMType = Local ContentType = minis TitleID = XXXXYYYYY PackageVersion = 01.00
- Advanced Packages Items :
- Demo along with Key
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX Klicensee = 0x00000000000000000000000000000000 DRMType = Free ContentType = GameExec PackageType = Demo PackageVersion = 01.00
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX Klicensee = 0x00000000000000000000000000000000 DRMType = Free ContentType = GameExec PackageType = Key PackageVersion = 01.00
- Date limitations
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX Klicensee = 0x00000000000000000000000000000000 DRMType = Local ContentType = GameExec LimitedTimeStart = YYYY-MM-DDThh:mmTZD LimitedTimeEnd = YYYY-MM-DDThh:mmTZD PackageVersion = 01.00
- Specials Packages Items :
! Be carefull !
- ForcedInstallTo
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX Klicensee = 0x00000000000000000000000000000000 DRMType = Free ContentType = GameExec ForcedInstallTo = PackageVersion = 01.00
- Allows installing packages to any hdd directory (and flash if it's writable).
- InstallDirectory
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX Klicensee = 0x00000000000000000000000000000000 DRMType = Free ContentType = GameExec InstallDirectory = PackageVersion = 01.00
- PackageFlag
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX Klicensee = 0x00000000000000000000000000000000 DRMType = Free ContentType = GameExec PackageFlag = PackageVersion = 01.00
Misc
- Serial number folder type name (on UTC) on /dev_hdd0/game/ :
_INST_YYYYMMDDHHMMSSSSSSSSSS (failure can also create regular folder id)
_GDATA_YYYYMMDDHHMMSSSSSSSSSS
_DEL_YYYYMMDDHHMMSSSSSSSSSS/USRDIR/JITGenerated (empty folder tree structure created after a error when trying to erase a content from "game data"). The folder "JITGenerated" was the responsible of the problem, not posible to erase from XMB (with triangle over the "corrupted data icon" replying with an "not possible to access HDD") neither from FTP (replying with an error "not posible to display folder contents")... after several "restore filesystem" and "rebuild database" the corrupted icon was moved out of "game data" and his timestamp changed (the YYYYMMDDHHMMSSSSSSSSSS in the main folder name was updated to an actual timestamp so it was "regenerated"). The only way to erase it is with a filemanager running in PS3 (is not possible to erase the "corrupted data" icon in an official firmware until you format the HDD)
Header Types statistics
Header Type 1
Primarily for PS3 packages. Found with different header sizes:
- 0x80: 121x
- 0xa0: 847x
- 0xc0: 5920x
- 0xd0: 62x
- 0xe0: 7x
- 0xf0: 70x
Header Type 2
Found with different header sizes:
- 0xa0: 348x
- 0xe0: 2600x
- 0xc0: 258x
- 0xf0: 176x
- 0x110: 576x
- 0x120: 5x
- 0x160: 683x
- 0x1d0: 6570x
- 0x1e0: 14x
- 0x210: 4177x
- 0x220: 569x
- 0x250: 12x