python ./PSN_get_pkg_info.py PCSG00355-0.pkg
# >>>>>>>>>> PKG Source: PCSG00355-0.pkg
NPS Type: UNKNOWN (PS3/PSX/PSP/PSV/PSM)
Title ID: PCSG00355
Region: JP
Content ID: JP0507-PCSG00355_00-LIVEAREA00000004
Debug Pkg: False
Content Type: 23
DRM Type: 3
Min FW: 0.00
App Ver: 0.00
Size: 238928
Pretty Size: 233.3 KiB
File Size: 238928
Update URL: http://gs-sec.ww.np.dl.playstation.net/pl/np/PCSG00355/d42b148378a69660cf8e14db29dfb5b6e0d1c3b325f8c756b77eca4967ab615f/PCSG00355-ver.xml
Livearea URL: http://livearea.np.dl.playstation.net/livearea/e/info/np/PCSG00355/2d4187b9363b9aa77d452a328412bb3193ce769a3637197e437b7e8e5e8e5dd1/PCSG00355-0.pkg
$ python ./PSN_get_pkg_info.py EP0001-VITASHELL_00-LIVEAREA00000000.pkg
# >>>>>>>>>> PKG Source: EP0001-VITASHELL_00-LIVEAREA00000000.pkg
[ALIGN] Unaligned encrypted offset 0x57e9b27ad186f864-0x4=0x57e9b27ad186f860(+0xa80) for #0 item data. EP0001-VITASHELL_00-LIVEAREA00000000.pkg
[ALIGN] Please report this issue at https://github.com/windsurfer1122/PSN_get_pkg_info
[ALIGN] Unaligned encrypted offset 0xf0b60d58c3e7e2b-0xb=0xf0b60d58c3e7e20(+0xa80) for #1 item data. EP0001-VITASHELL_00-LIVEAREA00000000.pkg
[ALIGN] Please report this issue at https://github.com/windsurfer1122/PSN_get_pkg_info
[ALIGN] Unaligned encrypted offset 0x64a090063b07fdeb-0xb=0x64a090063b07fde0(+0xa80) for #2 item data. EP0001-VITASHELL_00-LIVEAREA00000000.pkg
[ALIGN] Please report this issue at https://github.com/windsurfer1122/PSN_get_pkg_info
[ALIGN] Unaligned encrypted offset 0xb13cf8a9b73ca03a-0xa=0xb13cf8a9b73ca030(+0xa80) for #3 item data. EP0001-VITASHELL_00-LIVEAREA00000000.pkg
[ALIGN] Please report this issue at https://github.com/windsurfer1122/PSN_get_pkg_info
[ALIGN] Unaligned encrypted offset 0x8f9e020dea4ccd9-0x9=0x8f9e020dea4ccd0(+0xa80) for #4 item data. EP0001-VITASHELL_00-LIVEAREA00000000.pkg
[ALIGN] Please report this issue at https://github.com/windsurfer1122/PSN_get_pkg_info
[ALIGN] Unaligned encrypted offset 0x82e245bc7335f6ba-0xa=0x82e245bc7335f6b0(+0xa80) for #5 item data. EP0001-VITASHELL_00-LIVEAREA00000000.pkg
[ALIGN] Please report this issue at https://github.com/windsurfer1122/PSN_get_pkg_info
[UNKNOWN] Item Names with offset 0x94b6c78 are not directly following the Item Entries with size 0xc0. EP0001-VITASHELL_00-LIVEAREA00000000.pkg
[UNKNOWN] Please report this issue at https://github.com/windsurfer1122/PSN_get_pkg_info
[ERROR] Items Info size 368 from meta data 0x0D is too small for complete Items Info (Entries+Names) with total size of 5501441194. EP0001-VITASHELL_00-LIVEAREA00000000.pkg
[ERROR] Please report this issue at https://github.com/windsurfer1122/PSN_get_pkg_info
[ERROR] Could not get PKG3 encrypted data at offset 0xbf0 with size 5501440832 from EP0001-VITASHELL_00-LIVEAREA00000000.pkg
Traceback (most recent call last):
File "/home/isage/.wine/drive_c/Program Files (x86)/SCE/PSP2/Tools/Publishing Tools__/bin/ext/./PSN_get_pkg_info.py", line 2708, in parsePkg3ItemsInfo
items_info_bytes[CONST_DATATYPE_AS_IS].extend(input_stream.read(header_fields["DATAOFS"]+read_offset, read_size, function_debug_level))
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/isage/.wine/drive_c/Program Files (x86)/SCE/PSP2/Tools/Publishing Tools__/bin/ext/./PSN_get_pkg_info.py", line 1451, in read
raise ValueError("[INPUT] Read offset {:#012x} out of range (max. {:#012x})".format(read_offset, self._size-1))
ValueError: [INPUT] Read offset 0x000003a490 out of range (max. 0x000003a48f)
NPS Type: UNKNOWN (PS3/PSX/PSP/PSV/PSM)
Title ID: VITASHELL
Region: EU
Content ID: EP0001-VITASHELL_00-LIVEAREA00000000
Debug Pkg: True
Content Type: 23
DRM Type: 3
Min FW: 0.00
App Ver: 0.00
Size: 238736
Pretty Size: 233.1 KiB
File Size: 238736
Update URL: http://gs-sec.ww.np.dl.playstation.net/pl/np/VITASHELL/a2d6cd0a07312dd0b9b6bb5355db6ca2ba2d7412b7fe1405c6fbd7cb4ad0393a/VITASHELL-ver.xml
Livearea URL: http://livearea.np.dl.playstation.net/livearea/e/info/np/VITASHELL/c5113cd50836d63687d52eb2dcfe51d70c3ff80656e79a4f10bfe9d188f0a1d1/VITASHELL-0.pkg
PCSG00355-0.pkg is original, second one is re-packaged
test.zip