전설 KaKaRoTo의 은퇴 선물


플삼이 3.41 시대(?)에 한참 이름을 날렸던 전설적인 개발자 KaKaRoTo 아저씨가 이제 은퇴 선언을 하게 되었네요. 그러면서 그동안 작업했던 결과물들을 공개했습니다. 이른바 ps3xport라는 것이죠.

ps3xport란, 간단히 말씀드리자면 System Settings -> Backup Utility에 있는 PS3 backup data 를 속이는 것이죠. 그래서 심지어 정펌 4.66에서도 dev_hdd0와 dev_flash2 의 파일 시스템을 제어할 수 있는 것이에요. 놀랍죠?^^

하지만 그닥 녹록치는 않은거죠. 정펌 시스템에는 로드 블럭이 있고 이게 NPDRM ECDSA 프로텍션으로 인해 홈브류를 실행할 수 없게 만들죠. 이건 아직까지도 풀리지 않았고 오늘까지도 정펌 유저들의 이슈로 남아있답니다.ㅠㅠ

이제 은퇴하면서 이 작업들의 소스를 공개하네요. 아래는 KaKaRoTo 아저씨의 메시지전문이랍니다.^^

————————————————————————————————————–

Ps3xport released!
On December 23, 2014, in Development, PS3, by kakaroto

Hello everyone!

It’s been quite a long time and I’m very happy about that :p
Let’s do the boring part first! This is my final release for the scene, I am not “coming back” or anything like that, so don’t get your hopes up, but I needed to release this so I’d be officially done. I have never actually announced that I’m leaving the scene but everyone figured it out. It wasn’t originally done intentionally actually, but life caught up with me, work, family, lack of time, etc.. so I had little time to work on the ps3. Also, my motivation was mostly gone due to not finding anything interesting anymore, a lot of drama and I’m not a huge fan of all the attention this all brings. I got into the scene because I was curious and I wanted to learn, and I have to say I’ve learned a lot of things these past years and it was an incredible journey, but as I had lack of time and started breathing, I realized that I’ve had enough of it so I left and I am very happy with that decision because you have absolutely no idea how much of a time drain and headache this was :p

Anyways, there was one thing I did just before I left, but I never got to release it, but today is your lucky day as it’s release O’clock where I am!. This release is a way to say Merry Christmas, Happy Holidays, etc.. to everyone, and a way for me to also say “I’m done for good, I don’t have anything left for you in a drawer somewhere” :). I’ve wanted to release this for a while now, and I even made a poll on ps3hax back in March 2012 asking people if I should (looks like ps3hax is down right now so here’s the google cache version) and the general response was not to release it until it can be useful (when an npdrm workaround is found) with some people saying to release if nothing new happens in the scene.. and I think I’ve waited long enough now to know nothing new on that front will happen.

So.. since I’ve announced the release, I’ve seen a lot of speculation about what it is and what it could be.. a lot of people seem to think (or mostly, want/hope for) a downgrade method, unfortunately that’s not the case. I’ve seen some ridiculous suggestions too, like someone asking if it’s a way to run PS4 and Xbox One games on PS3.. I’m sorry to say, that’s not it either :p As I’ve said in a tweet shortly after, this is nothing groundbreaking, this is code that hasn’t been touched in 3 years, so it’s already 3 years old, but I think it’s still something that can be very useful to the community.
So here it is, I’m introducing to you : PS3xport! I’ve uploaded it to my github account here : https://github.com/kakaroto/ps3xport

What does it do? Well, it’s basically a tool for manipulating the PS3 backup data. When I say “PS3 backup”, I’m not talking about a “backup” of a game, no.. I’m talking about the full PS3 hard drive backup that you can do by going to “System Settings->Backup Utility” on your XMB. That creates an encrypted directory on your FAT32 hard drive which allows you to format your PS3 and then Restore it just like it was before. I’ve reverse engineered the file format and encryption and PS3xport allows you to create new backup data from scratch, or dump existing ones, or delete specific files from a backup or do a whole lot of other things to your backup folders. This gives you total control over your /dev_hdd0 and /dev_flash2 filesystems, which will let you install homebrew on any console, even if it’s the latest OFW version. Unfortunately, just like it was 3 years ago, you wouldn’t be able to run those homebrew apps you install due to the NPDRM ECDSA signature missing. If you have your IDPS though for example, it could let you restore a backup from one PS3 to another PS3 without losing any of your data in the transfer.

So.. what’s this about “your IDPS”? yes, the backup has two sets of files, some can be decrypted right away and some can’t because they are encrypted with your IDPS (your unique ps3 device id) which is why they can’t be restored on a different ps3. If you have a CFW, you can easily get your IDPS (I’ve written a small tool to do that, released on github, but apparently MM and Webman will also give you that information) and that will give you total control over your backup data as you would be able to decrypt and reencrypt it. If you have OFW and can’t get your IDPS, then you will not be able to dump/decode all the files from your backup, but you will still be able to create a backup that can be restored on your PS3 with no limitations (this means for example that you can restore a backup from a CFW into an OFW without any issues). I was told however that someone can get IDPS from OFW consoles and in light of this release, they might release their method soon, I can’t say more than that though, but be patient and good things come to those who wait :)

So my release is in two parts. First, the documentation of the file format was added to the ps3devwiki so any developer can understand how the backup archive files are created and can create their own tools. Reverse engineering that format took months of work and I won’t go into too much details about what had to be done to figure out the format but it was an incredibly long and difficult task to do that I had a lot of fun in doing. The second part of the release is of course the release of the ps3xport tool. The tool is quite powerful and you can do a lot of things with it, but it’s a command line only tool and I honestly just tested it on Linux, it’s not really my job at this point to make a windows build, or make a GUI around it, etc.. but I’m sure it won’t be long before others in the scene pick it up and make a nice GUI for it and release windows binaries. I’ve written a nice README file so everyone can understand how the tool works and what it can do. I remember though that 3 years ago just before I stopped working on it, I wanted to add a “AddPKG” command to it which would just ‘install’ a pkg into the backup data automatically, unfortunately, I never got to do it, but it should be easy to do. While I’m at it, I’m also releasing a pkg extraction tool which I found in an old directory (cool thing is the -p option in it, try it…) as well which is a PKG extraction tool that uses the PagedFile mechanism (see below) to allow for very fast pkg file access with very little memory usage even for huge pkg files, any dev can probably mix those two together to add the AddPKG feature to ps3xport.

On the software front, ps3xport.c will parse the commands then use the archive_* API which is in archive.c. That will contain all the functions needed to manipulate the archive files. It uses a ChainedList which is my rudimentary implementation of a GList-like ordered list and the archive API also uses PagedFile objects which are pretty cool. PagedFiles are a wrapper around a file which allows you to read/write to a file using pages (I set it to 64KB per page I think) so it limits the hard drive access. The cool thing about it is that it has encryption and hashing built in, so you can just set the encryption key or ask for the file to be hashed, and whenever you read/write, the encryption will be done transparently, and the coolest thing about it is that you can actually seek in the encrypted file and it will still work (it recalculates the required IV whenever you seek). The encryption there works on the stream, so you don’t need to write blocks of 16 bytes every time (thanks to the paging of the data) and it has a cool ‘splice’ method which allows you to copy data from one PagedFile to another easily, so you could in theory re-encrypt a file using a different key using 5 function calls (open *2, set_key*2, splice).
That’s about it.

I’m really happy about this release, and I want to say Merry Christmas/Happy New Year to everyone, and of course..
So long, and thanks for all the fish!

 

이걸 모두 번역하기는 시간이 너무 걸리는군요.ㅋ 중요한 요지는 위에 설명 드렸으니 프로그램 개발하시는 분들은 한번 소스를 훑어 보시는 것도 나쁘지 않을 듯 합니다. 플삼이 해킹사에 더 큰 발전이 생겼으면 좋겠네요.^^

아래는 링크에요.^^

KakaRoTo’s Links to Tools & SRC

출처는 여기입니다.^^

7 thoughts on “전설 KaKaRoTo의 은퇴 선물

  1. 간략하게 설명해 드리면 이것은 원래의 목적이 “HEN” Homebrew ENabler 였는데요.
    설명에도 나와있다 시피, npdrm 컨텐츠의 ECDSA 인증 문제로 인해, 홈브류 구동이 되지 않는 관계로 연기가 되었다가, 은퇴 기념으로 내놓은 선물인데.
    3년전 당시에는 딱히 이걸 내놔도 써먹을수가 없는 상황 이었지만, 현재는 각종 무력화 툴이 많이 나온 관계로, 내놔도 쓸모가 있게 되었죠.

    그중 가장 획기 적인 기능은, 바로 dev_hdd0 안에 있는 내용들을 마음대로 쥐어 짤수가 있게 되었는데, 그것중에 가장 돋보이는 것은 dev_hdd0/home/xxxxxxxx/ 경로의 권한 이며, 데이터 백업 및 복원 기능을 통해, npdrm 컨텐트 들의 인증이 가능하게 되었다고 봐도 됩니다.

    즉, psnOPE 과 psnPATCH 의 RIF 인증 기능을, PC 에서만 할수 있게 된다면, 모든 PS3 PSN/DLC/NPDRM 컨텐트들을 인증해서 OFW / CFW 가리지 않고 사용할수 있게 됩니다.

    한줄 요약 = 최고의 복돌 툴 입니다.. [지금 해커들은 이것을 PEN 이라고 불르고있습니다.]

    [Piracy ENabler] …

    • 그렇군요. 3년이란 시간동안 scene쪽의 발전도 대단히 많이 이루어진 것이네요.^^ 이제 이 아저씨의 작업을 계속 이어갈 개발자들이 속속 나타날 것 같네요. 문제는 플삼이가 끝물이라는거겠죠.ㅋ

답글 남기기

아래 항목을 채우거나 오른쪽 아이콘 중 하나를 클릭하여 로그 인 하세요:

WordPress.com 로고

WordPress.com의 계정을 사용하여 댓글을 남깁니다. 로그아웃 / 변경 )

Twitter 사진

Twitter의 계정을 사용하여 댓글을 남깁니다. 로그아웃 / 변경 )

Facebook 사진

Facebook의 계정을 사용하여 댓글을 남깁니다. 로그아웃 / 변경 )

Google+ photo

Google+의 계정을 사용하여 댓글을 남깁니다. 로그아웃 / 변경 )

%s에 연결하는 중