PSN_get_pkg_info icon indicating copy to clipboard operation
PSN_get_pkg_info copied to clipboard

Verification of rap

Open Qubits01 opened this issue 2 years ago • 0 comments

Hi,

I try to verify a rap for a pkg using this command: PSN_get_pkg_info.py --rapkey <path-to-rapfile> <path-to-pkg> -f 50 -f 0

the rap file is correctly recognized, I get the output

>>>>> EDAT RAP #1
rap["TYPE"  ]: RAP
rap["RAPKEY"]: d43acf36d6a49215b04e845b537ebc5e
rap["RIFKEY"]: 0c2f93838d117506ce5be5594e94bf11

However, concerning the verification, I get the output

RAP Key:      None

I know the rap file is valid, so what do I do wrong?

Could you maybe also elaborate what is done for the verification process? My understanding was that you need to decrypt the eboot to test the validity and that would require the idps and act.dat info.

Edit: I debugged the code a bit and got it working. Change line 2517 from and "EXT_HDR_HASH" in Results: to and "EXT_HDR_HASH" in header_fields:

not 100% sure if this fix is "correct" but seems to work fine so far

Qubits01 avatar May 12 '22 14:05 Qubits01