PS3 Edit "The Legend of Korra"'s EBOOT for ISO version

We finally found why it didn't work with his ODE.
Like @aldostools said here : https://www.psx-place.com/threads/webman-mod-general-information-thread.9643/page-28#post-28735 genps3iso is broken.

And according to https://www.infinitydream.com/downloads/PS3/cobra_ode_user_manual_(english)_v2.2.1.pdf . The cobra ode need to have a proper definition of plain (so, encrypted) region : SELF and LIC.DAT must be inside encrypted region.

makeps3iso doesn't do that, it define the whole iso like a plain file.

So, I made an exe to set region according to what I saw on iso headers (extracted from ird), and it worked. https://github.com/Zarh/regps3iso/releases/latest


So, how to convert PKG to ISO (The legend of Korra) :
  1. extract the pkg
  2. extract the EBOOT.BIN to EBOOT.ELF and delete the EBOOT.BIN (you'll need the rap file)
  3. bruteforce the dev_klicensee
    make_npdata.exe -b data000.edat EBOOT.elf 0
  4. extract data000.edat to data000.cpk and delete the data000.edat (you'll need the rap & the dev_klicensee)
    make_npdata.exe -d data000.edat data000.cpk 8 EP0002-NPEB02082_00-LEGENDOFKORRAPS3.rap
  5. extract data001.edat to data001.cpk and delete the data001.edat (you'll need the rap & the dev_klicensee)
    make_npdata.exe -d data001.edat data001.cpk 8 EP0002-NPEB02082_00-LEGENDOFKORRAPS3.rap
  6. apply these patches : https://www.psx-place.com/threads/e...ra-s-eboot-for-iso-version.33989/#post-298847 to the EBOOT.ELF
  7. resign the EBOOT.ELF to EBOOT.BIN and delete EBOOT.ELF. Cobra team suggest to use this for ODE :
    scetool --sce-type SELF --compress-data FALSE --self-type APP --key-revision 0004 --self-fw-version 0003004100000000 --self-app-version 0001000000000000 --self-auth-id 1010000001000003 --self-vendor-id 01000002 --self-cap-flags 00000000000000000000000000000000000000000000003b0000000100040000 -e EBOOT.elf EBOOT.BIN
  8. move all the content to PS3_GAME folder
  9. change the category in the PARAM.SFO
  10. create a PS3_DISC.SFB, I don't know if it's absolutely necessary but RPCS3 need it.
  11. build the ISO with makeps3iso : https://github.com/bucanero/ps3iso-utils/releases/latest (drag&drop the directory on the exe)
  12. Set the regions with regps3iso : https://github.com/Zarh/regps3iso/releases/latest (drag&drop the iso on the exe)

Have fun ;)


PS : 2 others things are missing from iso built with makeps3iso.
- PS3_DISC.SFB MUST be the first file
- PS3_UPDATE/PS3UPDAT.PUP MUST be the last file
 
Last edited:
We finally found why it didn't work with his ODE.
Like @aldostools said here : https://www.psx-place.com/threads/webman-mod-general-information-thread.9643/page-28#post-28735 genps3iso is broken.

And according to https://www.infinitydream.com/downloads/PS3/cobra_ode_user_manual_(english)_v2.2.1.pdf . The cobra ode need to have a proper definition of plain (so, encrypted) region : SELF and LIC.DAT must be inside encrypted region.

makeps3iso doesn't do that, it define the whole iso like a plain file.

So, I made an exe to set region according to what I saw on iso headers (extracted from ird), and it worked. https://github.com/Zarh/regps3iso/releases/latest


So, how to convert PKG to ISO (The legend of Korra) :
  1. extract the pkg
  2. extract the EBOOT.BIN to EBOOT.ELF and delete the EBOOT.BIN (you'll need the rap file)
  3. bruteforce the dev_klicensee
  4. extract data000.edat to data000.cpk and delete the data000.edat (you'll need the rap & the dev_klicensee)
  5. extract data001.edat to data001.cpk and delete the data001.edat (you'll need the rap & the dev_klicensee)
  6. apply these patches : https://www.psx-place.com/threads/e...ra-s-eboot-for-iso-version.33989/#post-298847 to the EBOOT.ELF
  7. resign the EBOOT.ELF to EBOOT.BIN and delete EBOOT.ELF. Cobra team suggest to use this for ODE :
    scetool --sce-type SELF --compress-data FALSE --self-type APP --key-revision 0004 --self-fw-version 0003004100000000 --self-app-version 0001000000000000 --self-auth-id 1010000001000003 --self-vendor-id 01000002 --self-cap-flags 00000000000000000000000000000000000000000000003b0000000100040000 -e EBOOT.elf EBOOT.BIN
  8. move all the content to PS3_GAME folder
  9. change the category in the PARAM.SFO
  10. create a PS3_DISC.SFB, I don't know if it's absolutely necessary but RPCS3 need it.
  11. build the ISO with makeps3iso : https://github.com/bucanero/ps3iso-utils/releases/latest (drag&drop the directory on the exe)
  12. Set the regions with regps3iso : https://github.com/Zarh/regps3iso/releases/latest (drag&drop the iso on the exe)

Have fun ;)


PS : 2 others things are missing from iso built with makeps3iso.
- PS3_DISC.SFB MUST be the first file
- PS3_UPDATE/PS3UPDAT.PUP MUST be the last file
@Zar, like with ird_tools, I tested building regps3iso on Linux (this time using debian). I just needed to add #include <stdint.h> in main.c and iso.h in order to compile it.

I assume the reg in regps3iso is regulate? regularize? If I understood your comments correctly, the tool just modifies the first two sectors of the iso to set some regions as encrypted (even though they aren't), right? I'm guessing this is just to bring some behavior from genps3iso to makeps3iso. Is there any benefit of doing this with any old ISO which is made using makeps3iso? Once I understand it correctly, I might push a readme over at github, if you'd like that (as well as one for ird_tools).
 
  • Like
Reactions: Zar
reg like "region ps3iso", yeah, i'm very bad with names...
it change the very first bytes of the iso
For CFW, I don't think it will change something... maybe, i don't really know.
 
yes, you can enable klicense logging in cfw tools (over network tab). then, open the game. it will log it in a log inside the tmp folder. there's also a way with webman mod, but I forgot how to.
 
How to bruteforce it? I'm trying with Bruteforce_EBOOT.exe, of aldostools. Is it right?
No, use BruteForce EDAT Dev Klic. Place the correct .rap of that game to the ps3tools/.../scetool/RAPS folder.

So, now the game rebuilt to iso is working and playable. But the three first startup videos can not be skipped unlike if the game was built using genps3iso. Odd.
 
No, use BruteForce EDAT Dev Klic. Place the correct .rap of that game to the ps3tools/.../scetool/RAPS folder.

So, now the game rebuilt to iso is working and playable. But the three first startup videos can not be skipped unlike if the game was built using genps3iso. Odd.
I used the PS3 as @pinky suggested to get dev_klicensee. It's working flawlessly here as ISO.
 
If I may ask, why the interest on this game in particular? Is it because it was removed from the PSN store and you wanted a way to preserve it? Is it because it was developed by PlatinumGames? Or was it just out of curiosity?

Shame the game was removed from the store though, as I would have liked to try it out (liked the series, loved a lot of PlatinumGames' output over the years).
 
How to bruteforce it? I'm trying with Bruteforce_EBOOT.exe, of aldostools. Is it right?
I edited my post to add the command you can use. There is several possibilities, this is just one of them.
But the three first startup videos can not be skipped unlike if the game was built using genps3iso. Odd.
I didn't understand that ! So, maybe there is a possibility to improve even more makeps3iso. It's good to know ;)

If I may ask, why the interest on this game in particular? Is it because it was removed from the PSN store and you wanted a way to preserve it? Is it because it was developed by PlatinumGames? Or was it just out of curiosity?

Shame the game was removed from the store though, as I would have liked to try it out (liked the series, loved a lot of PlatinumGames' output over the years).

Mostly for me, it just out of curiosity about RE with ghidra, it brought me to "makeps3iso vs genps3iso"
 
Last edited:
I used the PS3 as @pinky suggested to get dev_klicensee. It's working flawlessly here as ISO.

I'm glad you got it working. you can clear the log in cfw tools as well in case you want to dump more klicenses and not get confused with a bunch of games' being in there. ;) I used to do that every now and then when I was dumping them for someone.
 
If I may ask, why the interest on this game in particular? Is it because it was removed from the PSN store and you wanted a way to preserve it? Is it because it was developed by PlatinumGames? Or was it just out of curiosity?

Shame the game was removed from the store though, as I would have liked to try it out (liked the series, loved a lot of PlatinumGames' output over the years).
I'm interested on it, because I have 2 other games that I want to convert to iso to use with ps3netsrv (to don't use PS3 disc space).
 
If I may ask, why the interest on this game in particular? Is it because it was removed from the PSN store and you wanted a way to preserve it? Is it because it was developed by PlatinumGames? Or was it just out of curiosity?

Shame the game was removed from the store though, as I would have liked to try it out (liked the series, loved a lot of PlatinumGames' output over the years).
Well, if you asking me, the main question was how to make PS2 iso launchable using the ODE abilities (on OFW, without PS2Classics'es .rif, I still do not know, maybe using the WebMan?.. If someone know, please, hint))) I just additionally noted about that game...
The ps3 era is falling dawn, as a games'es for that console is. There are lot of games which can be played using PSN account which it is not possible to log into for me, and I saw just a few games which can be played couch-coop with my friends together. Some games can be played through ethernet without PSN account using XLink Kai connection, but I never had a chance (and an interesting game) to test it by myself. When I found and got all those type of games, I decided to continue my collection of games with a games which seem interesting for me. So I was (and will be continuing) search for the interesting games and making them launchable as iso or from internal hdd without .rif dependence. I just could not rebuild that game into BD version. Gladly there is a person responded and successfully, more than successfully, handled that!
"The legend of Korra" is a second game known by me that is (normally) not working when it is rebuilt into BD type. The first one is "Counter-Strike: GO". However, I am not insisting to handle that game too, cause that is not an interesting type of game for me ;) As you know (if you actually do), when that game is rebuilt to BD version (there are lot of .sprx'es to resign), when it is launched we see an exclamation point in the yellow triangle on the grey background. No one succeded in rebuilding that game into iso. Yet?..
warning.jpg
I didn't understand that ! So, maybe there is a possibility to improve even more makeps3iso. It's good to know ;)
I thought you noticed that) Or you were watching the intros all the time of moments when you made a tests with a genps3iso?..)

Also, the "Legend of Korra" was and is a nice cartoon to watch ;)
 
Last edited:
I don't know if psn liberator will help you with that. it has a klicense database just like ps3 tools. thing is, I looked at the default one for ps3 tools and legend of korra wasn't in there. it might have the game you're looking for, and most of it is automated (possibly all of it now). if you use the system to dump a klicense and nothing is logged, it's possible the edat files are dummy, so they can be renamed or deleted and the game will work. I think they're placeholders that were never used. only about 5-10% of games are this way from what I remember.
 
@Zar how do you found the correct offsets to edit on eboot? I'll try to do the same with other games I have. You talked about Ghidra... Do I need some plugin or any kind of external library to integrate with Ghidra?
 
I'm not too familiar with Ghidra, but there is IDA. you'd want version 6.whatever for the ps3. iirc, it costs money though unless you find a hacked version. not sure about Ghidra.
 
I'm not too familiar with Ghidra, but there is IDA. you'd want version 6.whatever for the ps3. iirc, it costs money though unless you find a hacked version. not sure about Ghidra.
That's why asked about Ghidra, it's open source.
 
Back
Top