Hacking How do I make a .cia for a system title in NAND?

Myria

Well-Known Member
OP
Member
Joined
Jul 24, 2014
Messages
464
Trophies
0
Age
42
XP
851
Country
United States
How do I make a .cia file for a system title stored in one of my 3DS's SysNANDs? I'd like to use it to install on the SysNAND of a different 3DS. Both the source and target 3DS's are NAND-modded and on ≤ 9.2.0, so I don't have concerns about potential bricking.

I know how to decrypt the SysNAND file system and access its files; it's the .cia creation that I don't know how to do.
 

Hazelnutz

Member
Newcomer
Joined
Dec 1, 2015
Messages
22
Trophies
0
Location
Sydney
XP
93
Country
If you are trying to update a game then you can try to use the eShop hax from HBL. i used this to update pokemon in sysnand then followed the funckycia to extract the update to cia
 

cearp

瓜老外
Developer
Joined
May 26, 2008
Messages
8,721
Trophies
2
XP
8,471
Country
Tuvalu
Would funkycia work?
FunkyCIA gets encrypted stuff from CDN and makes a cia.


nand titles are not encrypted to your own console... maybe you could encrpyt it back and make the cia with makecdncia. but just the files sure you could use makerom i guess
 

cearp

瓜老外
Developer
Joined
May 26, 2008
Messages
8,721
Trophies
2
XP
8,471
Country
Tuvalu
That's the problem >.< These titles aren't on the CDN anymore, because it's an old version...
sure, so use your files. they are already not tied to your console because nand titles are not like that - so just use makerom to make a cia.
it won't be a 'legit' cia though i guess, so you would need hax to get it to load, unless you already have a legit ticket for the title that will be used - and i guess you do.
give it a try :)
there might be a way to reencrypt it with the titlekey in the ticket (using the aes cbc thing, i guess it will work but i don't know if it will encrypt it 100% exactly the same each time), to recreate the encryted content from cdn, then you can use make_cdn_cia and you will have a 'perfect' cia
 

Syphurith

Beginner
Member
Joined
Mar 8, 2013
Messages
641
Trophies
0
Location
Xi'an, Shaanxi Province
XP
364
Country
Switzerland
@d0k3 Oh a good feature maybe? Wait this may be much easier on PC than done on a real console.
To fully decrypt a CDN CXI/CFA, the titlekey is first used then the common keyY.
The .app files inside your decrypted NAND/EmuNAND dump is only decrypted using the decrypted titlekey.
So, to get its raw CDN content, you would need to re-encrypt the .app with its titlekey.
And, .tmd contains the origin TMD without certs of "CP0000000b" and "CA00000003".
cetk could be easily fetched from CDN, this seldom changes, and this contains the encrypted titlekey.
Then you could rename those done, delete the .app extension, .tmd to just tmd, and file cetk keeps still.
Put all those inside a same folder, and use make_cdn_cia, thus you get a raw CDN CIA of the title.
The decrypted titlekeys can be dumped, yup.
 

cearp

瓜老外
Developer
Joined
May 26, 2008
Messages
8,721
Trophies
2
XP
8,471
Country
Tuvalu
@d0k3 Oh a good feature maybe? Wait this may be much easier on PC than done on a real console.
To fully decrypt a CDN CXI/CFA, the titlekey is first used then the common keyY.
The .app files inside your decrypted NAND/EmuNAND dump is only decrypted using the decrypted titlekey.
So, to get its raw CDN content, you would need to re-encrypt the .app with its titlekey.
And, .tmd contains the origin TMD without certs of "CP0000000b" and "CA00000003".
cetk could be easily fetched from CDN, this seldom changes, and this contains the encrypted titlekey.
Then you could rename those done, delete the .app extension, .tmd to just tmd, and file cetk keeps still.
Put all those inside a same folder, and use make_cdn_cia, thus you get a raw CDN CIA of the title.
The decrypted titlekeys can be dumped, yup.
basically what i said but more detailed, thanks :)
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Make sure you smack my booty daddy
    +1
  • LeoTCK @ LeoTCK:
    telling him that my partner is luke...does he look like someone with such big ne
    eds?
  • LeoTCK @ LeoTCK:
    do you really think I could stand living with someone like luke?
  • LeoTCK @ LeoTCK:
    I suppose luke has "special needs" but he's not my partner, did you just say that to piss me off again?
  • LeoTCK @ LeoTCK:
    besides I had bigger worries today
  • LeoTCK @ LeoTCK:
    but what do you know about that, you won't believe me anyways
  • K3Nv2 @ K3Nv2:
    @BigOnYa can answer that
  • BigOnYa @ BigOnYa:
    BigOnYa already left the chat
  • K3Nv2 @ K3Nv2:
    Biginya
  • BigOnYa @ BigOnYa:
    Auto correct got me, I'm on my tablet, i need to turn that shit off
  • K3Nv2 @ K3Nv2:
    With other tabs open you perv
  • BigOnYa @ BigOnYa:
    I'm actually in my shed, bout to cut 2-3 acres of grass, my back yard.
  • K3Nv2 @ K3Nv2:
    I use to have a guy for that thanks richard
  • BigOnYa @ BigOnYa:
    I use my tablet to stream to a bluetooth speaker when in shed. iHeartRadio, FlyNation
  • K3Nv2 @ K3Nv2:
    While the victims are being buried
  • K3Nv2 @ K3Nv2:
    Grave shovel
  • BigOnYa @ BigOnYa:
    Nuh those goto the edge of the property (maybe just on the other side of)
  • K3Nv2 @ K3Nv2:
    On the neighbors side
    +1
  • BigOnYa @ BigOnYa:
    Yup, by the weird smelly green bushy looking plants.
  • Xdqwerty @ Xdqwerty:
    Water park was quite fun
  • NinStar @ NinStar:
    die?
    NinStar @ NinStar: die?