motoharu-gosuto / psvpfstools

Tools for decrypting PS Vita PFS filesystem
127 stars 22 forks source link

psvpfstools crash #9

Closed tomazzz369 closed 6 years ago

tomazzz369 commented 6 years ago

psvpfstools crash on dlc

Successfully decompressed zRIF from provided license string. Parsing files.db... verifying header... header signature is valid root icv is valid Validating hash tree... Hash tree is ok Building directory matrix... Building file matrix... [EMPTY] File online_pass.txt index 9 of type 1 Flattening file pages... Building dir paths... Building file paths... Validating dir paths... Validating file paths... Matching file paths... Parsing unicv.db... Total blocks: 9

and crash

zrif: KO5ifR1dQ+eHBlgi6TKzBNkfEOwY7BTk7+fj6eca4BgcjM9/fAJ2vaJz2/iECnu9nqnn/aEstFg2jKYY2gIA63ET7gAA

pkg link: http://zeus.dl.playstation.net/cdn/UP9000/PCSA00069_00/MtTCahiagMhJmRLjdeUpZEJuGBKFGfRyFEZMlHIpRlafpuPEcNlnBdgyjxskABCgscARtGgFCvPavUELwxnunORHFcMTJRQzkTWSX.pkg

// removed inactive link

motoharu-gosuto commented 6 years ago

Can you check this again in icv-db-support branch? How did the crash look? Was that an error, an assert window? Segfault?

tomazzz369 commented 6 years ago

no error on window tool, tool just stops after Total blocks: 9 and new window shows up. application psvpfsparser.exe stopped working

i have this issue only on this one specific dlc: PlayStation All-Stars Battle Royale Online Pass, i tested same dlc from three regions (PCSF00153, PCSA00069, PCSD00040), on all tool crash

motoharu-gosuto commented 6 years ago

Wait a second. I do not understand what window tool are you talking about? Are you using some frontend for psvpfstools like Psvimgtools-Easy-FrontEnd? I am most certain that it uses old version of code from master branch. That is why I suggested checking out icv-db-support branch.

tomazzz369 commented 6 years ago

no, i don't use any frontend. yes, tested on older version from master branch. i added this issue 24 days ago

could you share latest compiled version, because i don't have access to my laptop til monday

regards

motoharu-gosuto commented 6 years ago

This is not very urgent so it can wait. I dont feel like releasing binaries right now because I want to finish icv support first.

tomazzz369 commented 6 years ago

v2.0 stops crashing, instead of crash now there is Error: wrong magic issue is present only in: PlayStation All-Stars Battle Royale Online Pass (all regions)

Successfully decompressed zRIF from provided license string. parsing files.db... verifying header... header signature is valid root icv is valid Validating hash tree... Hash tree is ok Building directory matrix... Building file matrix... [EMPTY] File online_pass.txt index 9 of type 1 Flattening file pages... Building dir paths... Building file paths... Linking dir paths... Linking file paths... Matching file paths... parsing unicv.db... Total blocks: 9 Error: wrong magic

motoharu-gosuto commented 6 years ago

@tomazzz369 Wow. Now THAT is interesting. I will try to find this title and check it out.

tomazzz369 commented 6 years ago

pkg link and zrif is in first comment

motoharu-gosuto commented 6 years ago

@tomazzz369 I have reproduced the issue. Not sure what to do though. I dont think that unicv.db file is correct. Last two pages in this file are completely empty. I may try to add some code to skip such cases. However this is really weird.

motoharu-gosuto commented 6 years ago

@tomazzz369 Fixed. Please try again. You will need to build of course

tomazzz369 commented 6 years ago

seems to everything is fine


question, how can i put manually drv_key in F00DKeyEncryptor and skip f00d connection?

i want to read drv_key from file instead from f00d response for offline mode. i want to make something like this: before execute_url, if file f00d.txt exist read drv_key from f00d.txt else execute_url and get drv_key from f00d (as now)

motoharu-gosuto commented 6 years ago

@tomazzz369 lets move discussion to corresponding issue