Hacking [Release] PlaiCDN: Download and create installable CIAs (or .3ds) with just a title ID and titlekey

Plailect

Well-Known Member
OP
Member
Joined
Jan 30, 2016
Messages
546
Trophies
1
XP
1,502
Country
United States
^This. Totally agree, makerom certainly isn't the best way to make cia.
Dirty, can hang PC while making large cia, fails at titles that have lot of content (some DLC).

make_cdn_cia does not support creating CIAs from games that are titlekey encrypted, so I'm interested in how else you propose making the CIA

Also, I honestly can't understand, why decrypting content with Decrypt9 before making cia?
This statement is quite incorrect:

Orginal CDNto3DS script builds cia from encrypted NCCH (and PlaiCDN actually still can do it too).
Full decryption can be useful for seed encrypted titles, but you shouldn't force people to do it
by telling them that it "cannot be used", it's not true and also useless for most of old eShop content.
People can do decryption in Decrypt9 after packing cia if they want so. Or just get seed from eShop.
Especially when this script can also create .3ds, which obviously can be used only with Gateway.
And Gateway can't handle decrypted non executable NCCH (aka CFA), so you either left them
encrypted and thus properly signed, or GW users can forget about manuals, download play and DLC.

It was a oversimplification until I added more sophisticated functionality, which I'm working on right now :P
 

Chris_Highwind

Well-Known Member
Member
Joined
Mar 21, 2010
Messages
437
Trophies
1
Age
33
Location
Mooresville, NC
XP
585
Country
United States
Ok, so I tried using PlaiCDN, but when running the python script (since I use Linux) after I overwrite the files with the ones decrypted through Decrypt9WIP, I get a "Permission Denied" error, even if I run it through sudo. And then when I try the same command again with the decrypted files in the folder, the hashes don't match.

EDIT: Fixed the problem above, turns out I didn't have makerom set to be allowed to run as a program. Now when actually building the cia, I get "[CIA ERROR] Option "-major" cannot be applied for cxi".
 
Last edited by Chris_Highwind,

cearp

瓜老外
Developer
Joined
May 26, 2008
Messages
8,740
Trophies
2
XP
8,587
Country
Tuvalu
That's not even close to how that works....

All content files (the 000000 etc files) from the eshop are encrypted twice. First is the NCCH that's the inner layer of encryption, encrypted with multiple different methods depending on version, including bootrom keys and seeddb on some titles, and then there's the outer layer of encryption on the entire thing as it is on the CDN, which can only be decrypted with a titlekey (one per game) that has been decrypted with keys we don't have.

The process for getting a usable NCCH (still encrypted though) is to get the encrypted titlekey from the ticket, decrypt the titlekey with the ticket common-key keyslot (keyY is selected from an index into a plaintext array of 6 keys stored in Process9; more info on 3dbrew), then use the decrypted titlekey to decrypt the contents from the CDN, then decrypt the NCCH on device.

What the hell does "the cias this makes will not be good" even mean?
The ticket obviously won't be signed because Nintendo didn't sign it, so we will need signature checks patched out, but that applies to literally ALL non "legit" CIAs (ones signed for all devices in cetk form from a preloaded console).

"ideally we would have dumped eshop games, but that means someone has to buy it and dump it."
This line alone gives away to me that you're not understanding how any of this works...

--------------------- MERGED ---------------------------



"it's really not difficult - have a ticket template. fill in the title id, and the encrypted title key. (notice the encrypted title key, from the ticket, no decryption necessary)"

That's exactly what makerom does....

A CIA is nothing but an NCCH container and a (in this case fake because it's not signed) ticket, which is made by makerom when it's packaging things together...
i don't really know what to say, i thought i was going to get an educated useful reply, but instead you are telling me that i don't understand... lol
i'll have to implement the better method myself then, because you really seem to be missing the key point. lol
i thought i gave enough information.
you still didn't explain why you were sharing 'legit' keys :D so, i'm not really surprised i guess

--------------------- MERGED ---------------------------

If it created bad CIAs then how the hell do they work on my machine(tm)?
they work, but they will interfere with eshop content. but it is a problem for everyone, but it is a problem

--------------------- MERGED ---------------------------

make_cdn_cia does not support creating CIAs from games that are titlekey encrypted, so I'm interested in how else you propose making the CIA
you didn't do your homework?
you think you are correct here?
 

dankzegriefer

Banned!
Banned
Joined
Aug 19, 2015
Messages
896
Trophies
0
Age
40
XP
560
Country
United States
i don't really know what to say, i thought i was going to get an educated useful reply, but instead you are telling me that i don't understand... lol
i'll have to implement the better method myself then, because you really seem to be missing the key point. lol
i thought i gave enough information.
you still didn't explain why you were sharing 'legit' keys :D so, i'm not really surprised i guess

--------------------- MERGED ---------------------------


they work, but they will interfere with eshop content. but it is a problem for everyone, but it is a problem

--------------------- MERGED ---------------------------


you didn't do your homework?
you think you are correct here?
Can you please explain anything you said? Because nothing you said makes any sense.
 
  • Like
Reactions: cearp

cearp

瓜老外
Developer
Joined
May 26, 2008
Messages
8,740
Trophies
2
XP
8,587
Country
Tuvalu
Can you please explain anything you said? Because nothing you said makes any sense.
anything? ok i'll just explain 1 thing then, save my time.
i thought i gave enough information to the OP so that he would understand what he is doing wrong, and understand the better, newer, more accurate methods that i implemented last last december.
i made my tool because the current cia sharing was not regularized, the cias interfere with eshop.
my tool fixed that, and now people think there is a new tool but actually this one is just a step backwards.
(you can still do this idea of sharing keys, it's quite easy to do 'right'!)
 

dankzegriefer

Banned!
Banned
Joined
Aug 19, 2015
Messages
896
Trophies
0
Age
40
XP
560
Country
United States
anything? ok i'll just explain 1 thing then, save my time.
i thought i gave enough information to the OP so that he would understand what he is doing wrong, and understand the better, newer, more accurate methods that i implemented last last december.
i made my tool because the current cia sharing was not regularized, the cias interfere with eshop.
my tool fixed that, and now people think there is a new tool but actually this one is just a step backwards.
(you can still do this idea of sharing keys, it's quite easy to do 'right'!)
Alright, now properly explain it grammatically correctly, nothing you said made sense because it's so grammatically poor.
 

cearp

瓜老外
Developer
Joined
May 26, 2008
Messages
8,740
Trophies
2
XP
8,587
Country
Tuvalu
Now explain what's wrong coherently and rationally as opposed to being a condescending smart ass, if you refuse to be helpful, you will be ignored.
please ignore me, i'll be happy that you will stop replying and quoting me!
i'll just code it myself, i wasn't going to but it's the easiest way.
i really did explain it ok, i saw on the internet on github, 3dsiso, that the OP really misunderstands some stuff, so that must be the problem why he doesn't understand what i am talking about.
i expect someone who wrote this script to understand the advice i gave. but then i remember, he didn't really write this script, right?
sharing legit cia keys, saying that we can't redownload pirated content from eshop... other stuff i forgot, maybe why big games don't download...
check the existing solutions, don't base your idea off of something old like this!
 

dankzegriefer

Banned!
Banned
Joined
Aug 19, 2015
Messages
896
Trophies
0
Age
40
XP
560
Country
United States
please ignore me, i'll be happy that you will stop replying and quoting me!
i'll just code it myself, i wasn't going to but it's the easiest way.
i really did explain it ok, i saw on the internet on github, 3dsiso, that the OP really misunderstands some stuff, so that must be the problem why he doesn't understand what i am talking about.
i expect someone who wrote this script to understand the advice i gave. but then i remember, he didn't really write this script, right?
sharing legit cia keys, saying that we can't redownload pirated content from eshop... other stuff i forgot, maybe why big games don't download...
check the existing solutions, don't base your idea off of something old like this!
You are one of the most condescending narcissists I know. Go back to having your messiah complex. And consider not being a smart ass for once.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    SylverReZ @ SylverReZ: @BigOnYa, And you too :) +1