#6 Decrypting using disc key doesn't work

Fechado
3 anos atrás foi aberto por gmipf · 11 comentários
gmipf comentado 3 anos atrás

I have a game with no ird file available. I want to decrypt using the disc key from redump.org: http://redump.org/disc/73140/

If I specifiy the key 1765DE29550A582480840FA739DAE198 with -d it will start to process using 6ad07b5bef8324956b4f68cadc60542f.

There is some conversion going on.

How can I specify the raw disc key without conversion?

I have a game with no ird file available. I want to decrypt using the disc key from redump.org: http://redump.org/disc/73140/ If I specifiy the key 1765DE29550A582480840FA739DAE198 with -d it will start to process using 6ad07b5bef8324956b4f68cadc60542f. There is some conversion going on. How can I specify the raw disc key without conversion?
gmipf comentado 3 anos atrás
Autor

Ok solved the problem: I have changed line 120 of iso.py from:

self.disc_key = cipher.encrypt(core.to_bytes(args.decryption_key))

to:

self.disc_key = core.to_bytes(args.decryption_key)

I think there is some sort of decryption of the disc key going on in your original code?

The decryption is now working for me. Could you add this feature and the ability to re-encrypt the iso with the raw disc key?

EDIT: And also please add re-encryption with ird files.

Ok solved the problem: I have changed line 120 of iso.py from: self.disc_key = cipher.encrypt(core.to_bytes(args.decryption_key)) to: self.disc_key = core.to_bytes(args.decryption_key) I think there is some sort of decryption of the disc key going on in your original code? The decryption is now working for me. Could you add this feature and the ability to re-encrypt the iso with the raw disc key? EDIT: And also please add re-encryption with ird files.
Nichlas Severinsen comentado 3 anos atrás
Proprietário

Interesting, I'm guessing the keys I have are different for some reason? I have a bunch of .dkeys (assumingly, decrypted keys) that need to be encrypted when they are used. I'd be willing to add another argument for raw keys, but I also think that would be a little user unfriendly. Ideally libray should figure out what kind of key it got, but that might be difficult..

That link you posted isn't working (at least not for me), and I can't find that key in my archive, do you have the ID (for example, BCAS20001) for that game?

Re-encryption is rather difficult at the moment as packing/unpacking to/from ISOs has not been implemented. What do you need it for?

Interesting, I'm guessing the keys I have are different for some reason? I have a bunch of .dkeys (assumingly, decrypted keys) that need to be encrypted when they are used. I'd be willing to add another argument for raw keys, but I also think that would be a little user unfriendly. Ideally libray should figure out what kind of key it got, but that might be difficult.. That link you posted isn't working (at least not for me), and I can't find that key in my archive, do you have the ID (for example, BCAS20001) for that game? Re-encryption is rather difficult at the moment as packing/unpacking to/from ISOs has not been implemented. What do you need it for?
gmipf comentado 3 anos atrás
Autor

The PS3 section of the redump database is closed, only for registered users with dumper status. You need to dump at least one game to be approved as a dumper there by the staff. But I can give you a copy of the zip file with all current keys.

I have added the raw keys and as dkey txt files.

EDIT: Can't add zip files here, I will add an external link.

The PS3 section of the redump database is closed, only for registered users with dumper status. You need to dump at least one game to be approved as a dumper there by the staff. But I can give you a copy of the zip file with all current keys. I have added the raw keys and as dkey txt files. EDIT: Can't add zip files here, I will add an external link.
gmipf comentado 3 anos atrás
Autor

Search for "Sony PlayStation 3 Disc Keys (3383) (2021-05-31 14-18-43) redump" at archive.org.

Search for "Sony PlayStation 3 Disc Keys (3383) (2021-05-31 14-18-43) redump" at archive.org.
gmipf comentado 3 anos atrás
Autor

"Re-encryption is rather difficult at the moment as packing/unpacking to/from ISOs has not been implemented. What do you need it for?"

I would like to re-encrypt an iso file from time to time to validate its integrity with the redump database. The hashes are only stored with encrypted untouched isos.

"Re-encryption is rather difficult at the moment as packing/unpacking to/from ISOs has not been implemented. What do you need it for?" I would like to re-encrypt an iso file from time to time to validate its integrity with the redump database. The hashes are only stored with encrypted untouched isos.
Nichlas Severinsen comentado 3 anos atrás
Proprietário

Thx, I'll look into adding the keys.

I would like to re-encrypt an iso file from time to time

Ah, okay so you don't need to repack the folder into an iso, just re-encrypt the decrypted iso? That I can implement.

Thx, I'll look into adding the keys. > I would like to re-encrypt an iso file from time to time Ah, okay so you don't need to repack the folder into an iso, just re-encrypt the decrypted iso? That I can implement.
gmipf comentado 3 anos atrás
Autor

Yes, I only need iso to iso operations. Repacking the folder to an image or image to folder would complicate thing regarding validating through md5 etc. This is the reason why I like your tool, the other tool only unpacks the disc/iso to folders.

Yes, I only need iso to iso operations. Repacking the folder to an image or image to folder would complicate thing regarding validating through md5 etc. This is the reason why I like your tool, the other tool only unpacks the disc/iso to folders.
Nichlas Severinsen citou este problema em um commit 3 anos atrás
Nichlas Severinsen comentado 3 anos atrás
Proprietário

Added -r / --re-encrypt so you can re-encrypt the iso's, currently unreleased. Will still require a -d or .ird until I add the keys.

Added `-r` / `--re-encrypt` so you can re-encrypt the iso's, currently unreleased. Will still require a -d or .ird until I add the keys.
gmipf comentado 3 anos atrás
Autor

Oh ok, it was also actually a bug and the key was encrypted before usage? I will try the new feature, can I get the new version trough pip or do I have to install it manually?

EDIT: Oh, ok it is unreleased, then I install manually. Thanks!

Oh ok, it was also actually a bug and the key was encrypted before usage? I will try the new feature, can I get the new version trough pip or do I have to install it manually? EDIT: Oh, ok it is unreleased, then I install manually. Thanks!
Nichlas Severinsen comentado 3 anos atrás
Proprietário

Yeah, turns out it was a bug, past me hadn't actually tested extracting and running the iso.

Currently unreleased so you'll have to install manually, I'll release when I add the keys. Then it's either pip, AUR, or manually.

Thanks for reporting and for the new keys! :)

Yeah, turns out it was a bug, past me hadn't actually tested extracting and running the iso. Currently unreleased so you'll have to install manually, I'll release when I add the keys. Then it's either pip, AUR, or manually. Thanks for reporting and for the new keys! :)
gmipf comentado 3 anos atrás
Autor

re-encryption is working great, I have encrypted an decrypted iso again and the md5 hash matches with redump database. Thank you very much.

re-encryption is working great, I have encrypted an decrypted iso again and the md5 hash matches with redump database. Thank you very much.
Faça login para participar desta conversação.
Sem milestone
Não atribuída
2 participantes
Carregando...
Cancelar
Salvar
Ainda não há conteúdo.