#7 AttributeError: 'ISO' object has no attribute 'disc_key'

Closed
opened 2 years ago by Tyfuzzle · 3 comments
Tyfuzzle commented 2 years ago

I'm getting the following output and error when attempting to decrypt Uncharted Drake's Fortune from disk. Here's the console log:

[void@potato Uncharted1DrakesFortune]$ libray -i /dev/sr0 -k BCES00065-EE7A96BB70C9965E0256F8FA86E13BF2.ird -o uncharted_drakes_fortune.iso
[*] Searching for PARAM.SFO
[*] PARAM.SFO found
Traceback (most recent call last):
  File "/bin/libray", line 57, in <module>
    core.decrypt(args)
  File "/usr/lib/python3.10/site-packages/libray/core.py", line 212, in decrypt
    input_iso.decrypt(args) # TODO: some of the logic should probably be moved up here instead of residing in the decrypt function
  File "/usr/lib/python3.10/site-packages/libray/iso.py", line 250, in decrypt
    core.vprint('Decrypting with disc key: %s' % self.disc_key.hex(), args)
AttributeError: 'ISO' object has no attribute 'disc_key'

I'm using the following:

  • this site for searching the IRD files
  • BCES00065 is the disk code
  • BP50NB40 blu-ray drive
I'm getting the following output and error when attempting to decrypt Uncharted Drake's Fortune from disk. Here's the console log: ``` [void@potato Uncharted1DrakesFortune]$ libray -i /dev/sr0 -k BCES00065-EE7A96BB70C9965E0256F8FA86E13BF2.ird -o uncharted_drakes_fortune.iso [*] Searching for PARAM.SFO [*] PARAM.SFO found Traceback (most recent call last): File "/bin/libray", line 57, in <module> core.decrypt(args) File "/usr/lib/python3.10/site-packages/libray/core.py", line 212, in decrypt input_iso.decrypt(args) # TODO: some of the logic should probably be moved up here instead of residing in the decrypt function File "/usr/lib/python3.10/site-packages/libray/iso.py", line 250, in decrypt core.vprint('Decrypting with disc key: %s' % self.disc_key.hex(), args) AttributeError: 'ISO' object has no attribute 'disc_key' ``` I'm using the following: - [this site](https://ps3.aldostools.org/ird.html) for searching the IRD files - BCES00065 is the disk code - BP50NB40 blu-ray drive

Oh, jonnysp.bplaced.net is finally dead? That's a problem.

The error says it doesn't find a decryption key so there's likely something wrong with the .ird you're supplying.

However, Uncharted Drakes Fortune should be supported out of the box, as the keys for it are bundled. What happens if you try to run it without supplying the .ird? Like this:

$ libray -i /dev/sr0 -o uncharted_drakes_fortune.iso

Edit: right that's probably not going to work either if jonny is dead. Here's what you should do, the key for that game is:

9253d026918378b3120cbb9f71cd67a9

So doing this:

$ libray -i /dev/sr0 -o uncharted_drakes_fortune.iso -d 9253d026918378b3120cbb9f71cd67a9

Should work. I'll try to get a patch out asap.

Oh, jonnysp.bplaced.net is finally dead? That's a problem. The error says it doesn't find a decryption key so there's likely something wrong with the .ird you're supplying. However, Uncharted Drakes Fortune should be supported out of the box, as the keys for it are bundled. What happens if you try to run it without supplying the .ird? Like this: ``` $ libray -i /dev/sr0 -o uncharted_drakes_fortune.iso ``` Edit: right that's probably not going to work either if jonny is dead. Here's what you should do, the key for that game is: 9253d026918378b3120cbb9f71cd67a9 So doing this: ``` $ libray -i /dev/sr0 -o uncharted_drakes_fortune.iso -d 9253d026918378b3120cbb9f71cd67a9 ``` Should work. I'll try to get a patch out asap.
Tyfuzzle commented 2 years ago
Poster

Yeah, jonnysp is dead. Someone made a new database using a dump from it here. No idea if it can be used as a drop-in replacement. It's also where I got the IRD file from originally. I thought it might be invalid so I downloaded a complete dump of jonnysp from this thread (which also seems to be the origin of the new DB site). Those IRD files were producing the same results.

I had the same problem with a few other games as well. PS3 Disk Dumper is working fine with the same IRD files. I just tried dumping with the command you specified in your edit. It worked fine. The first command didn't work just in case you wanted confirmation:

[void@potato test]$ libray -i /dev/sr0 -o uncharted_drakes_fortune.iso
[*] Searching for PARAM.SFO
[*] PARAM.SFO found
[*] Checking for bundled redump keys
[*] Trying to find redump key based on size
[*] Trying to find redump key based on size and game title
[*] No keys found
[WARNING] No IRD file specified, finding required file. Continuing regardless.
[ERROR] Unable to download IRD, couldn't find link. You could specify the decryption key with -d if you have it.
Yeah, jonnysp is dead. Someone made a new database using a dump from it [here](https://ps3.aldostools.org/ird.html). No idea if it can be used as a drop-in replacement. It's also where I got the IRD file from originally. I thought it might be invalid so I downloaded a complete dump of jonnysp from [this thread](https://www.psx-place.com/threads/jonnysps-ird-library-is-down.35178/ ) (which also seems to be the origin of the new DB site). Those IRD files were producing the same results. I had the same problem with a few other games as well. [PS3 Disk Dumper](https://github.com/13xforever/ps3-disc-dumper) is working fine with the same IRD files. I just tried dumping with the command you specified in your edit. It worked fine. The first command didn't work just in case you wanted confirmation: ``` [void@potato test]$ libray -i /dev/sr0 -o uncharted_drakes_fortune.iso [*] Searching for PARAM.SFO [*] PARAM.SFO found [*] Checking for bundled redump keys [*] Trying to find redump key based on size [*] Trying to find redump key based on size and game title [*] No keys found [WARNING] No IRD file specified, finding required file. Continuing regardless. [ERROR] Unable to download IRD, couldn't find link. You could specify the decryption key with -d if you have it. ```
Nichlas Severinsen referenced this issue from a commit 2 years ago

Thanks for the confirmation!

The logic has grown quite a bit, seems there was a missing "else" that prevented manually loaded .ird files from actually being used.

I have made a patch and released 0.0.8.

Thanks!

Thanks for the confirmation! The logic has grown quite a bit, seems there was a missing "else" that prevented manually loaded .ird files from actually being used. I have made a patch and released 0.0.8. Thanks!
Sign in to join this conversation.
No Milestone
No assignee
2 Participants
Loading...
Cancel
Save
There is no content yet.