Tutorial  Updated

Decrypt XCI to RomFS and ExeFS for Atmosphere/FSRedirect/Backup Loading/Ryujinx/Yuzu in 1 click


IMPORTANT:
  • THIS TUTORIAL ASSUMES YOU HAVE THE DECRYPTION KEYS!
  • THIS TUTORIAL WILL NEVER PROVIDE KEYS
  • YOU ARE NOT ALLOWED TO POST ANY KEYS HERE!


Get Switch Keys (NEEDED):
My tutorial is here


Tutorial — RISEofProBB

Step 1 - PreparationStep 2 - DecryptionStep 3 - FinalizingExtras


    1. Download hactool: https://github.com/SciresM/hactool/releases/
    2. Extract the following next to hactool.exe: https://gbatemp.net/attachments/decrypt-xci-v2-1-zip.131659
    3. Make sure your keys are in keys.ini filename and format and is next to hactool.exe aswell

    1. Put the .XCI you want to decrypt next to hactool.exe (Important)
    2. Drag the .XCI onto the Decrypt-XCI.bat
    3. Let it do its thing, it could take a while
    4. Once you see "DONE!" your done!

  1. The new folder xciDecrypted next to hactool.exe is now the romfs and exefs of the xci decrypted.
    romfs in xciDecrypted/romfs.bin and exefs in xciDecrypted/exefs
    The structure is 100% ready to copy and paste into sd:/atmosphere/titles/{titleid}/ for Backup Loading/LayeredFS Mods.
    (but you still need to rename the folder to the titleid and edit the main.npdm)
    To use this with Ryujinx, drag the xciDecrypted/exefs folder onto Ryujinx.exe (No idea about Yuzu).

    • If you want the Batch file to close once its done, remove the last line (pause >nul) and save.


Thanks to gdkchan for the original script, since the original script, I have HEAVILY modified it.
 

Attachments

  • Decrypt-XCI-v2.1.zip
    772 bytes · Views: 11,377
Last edited by PRAGMA,

MrWhosHacking

Well-Known Member
Member
Joined
May 3, 2018
Messages
293
Trophies
0
Age
34
XP
505
Country
United States
need help
:: Decrypting .xci's NCA files and finding the biggest NCA...
:: Decrypting Biggest .NCA's romfs to romfs.bin and all exefs files to /exefs... This may take a while...
!! === If it says section 0 is corrupt, then you need to obtain more keys than what you already have :(
:: Deleting ncas as we dont need them anymore
DONE! You should have a folder: xciDecrypted
xciDecrypted should contain an exefs folder and a romfs.bin. It should NOT contain anything else.

nothing in folder why is this
 
  • Like
Reactions: choco_crafteur

GoldenBullet

That One Guy
Editorial Team
Joined
Oct 27, 2014
Messages
573
Trophies
0
XP
2,551
Country
United States
need help
:: Decrypting .xci's NCA files and finding the biggest NCA...
:: Decrypting Biggest .NCA's romfs to romfs.bin and all exefs files to /exefs... This may take a while...
!! === If it says section 0 is corrupt, then you need to obtain more keys than what you already have :(
:: Deleting ncas as we dont need them anymore
DONE! You should have a folder: xciDecrypted
xciDecrypted should contain an exefs folder and a romfs.bin. It should NOT contain anything else.

nothing in folder why is this
There is something wrong with your keys.ini
 

teddy329

Member
Newcomer
Joined
Mar 28, 2017
Messages
8
Trophies
0
Age
25
XP
52
Country
Indonesia
Tried to decrypt Sushi Striker and it says file not found, any idea why?
Other titles works fine except this game.

edit: nvm, fixed
 
Last edited by teddy329,

naddel81

Well-Known Member
Member
Joined
Dec 14, 2009
Messages
2,554
Trophies
1
XP
3,828
Country
United States
So it will not be possible to "simply" load a .xci file like a cartridge? Why is that? I thought xci files were complete dumps?!


Gesendet von iPhone mit Tapatalk
 

Ty_

Well-Known Member
Member
Joined
May 22, 2018
Messages
399
Trophies
0
Age
44
XP
1,256
Country
United Kingdom
Last edited by Ty_,

z10m

Well-Known Member
Newcomer
Joined
Oct 26, 2009
Messages
64
Trophies
1
XP
319
Country
So I'm having a problem here.
I have followed your other tutorial to obtain the keys but now when trying to decrypt XCI no exefs folder is created.
I have tried 2 games so far Zelda and DK and its the same with both.

axxuet.jpg



Edit: Just tested another game and still no success. My keys.ini file contains 40 keys.
also when using hactool without your .bat file im getting messages about section 0 and 1 being corrupted.

Edit2: Only one game out of five tested decrypts with exefs folder (1-2 switch).

Edit3: found some keys by googling and it seems to decrypt correctly now.
missing keys were:
master_key_01
master_key_02
master_key_03
 
Last edited by z10m,
  • Like
Reactions: Zeno12 and Ty_

Ty_

Well-Known Member
Member
Joined
May 22, 2018
Messages
399
Trophies
0
Age
44
XP
1,256
Country
United Kingdom
I'm such a dumbass. I'd made the keys.ini file but it was still a text file.

If anyone else is struggling, when you're dumping the keys and have to change the keys text file to an ini don't just rename it like I did. Open up notepad, copy and paste everything from the keys file, save it as keys.ini but also make sure you save it as an "all types" file, not a text file

Seems to work now, got a romsf.bin file and an exefs folder with a bunch of stuff in
 

Ty_

Well-Known Member
Member
Joined
May 22, 2018
Messages
399
Trophies
0
Age
44
XP
1,256
Country
United Kingdom
So I'm having a problem here.
I have followed your other tutorial to obtain the keys but now when trying to decrypt XCI no exefs folder is created.
I have tried 2 games so far Zelda and DK and its the same with both.

axxuet.jpg



Edit: Just tested another game and still no success. My keys.ini file contains 40 keys.
also when using hactool without your .bat file im getting messages about section 0 and 1 being corrupted.

Edit2: Only one game out of five tested decrypts with exefs folder (1-2 switch).

Edit3: found some keys by googling and it seems to decrypt correctly now.
missing keys were:
master_key_01
master_key_02
master_key_03

Hmm I'm having this issue now. master_key_01 is fine but if I try to add 2 or 2 to the ini file it doesn't decrypt at all (I'm assuming errors prevent it running at all)

When you add any master keys, is there any extra keys/information you need to add? Not asking for specific keys etc, just names of keys etc I need to add
 
Last edited by Ty_,

z10m

Well-Known Member
Newcomer
Joined
Oct 26, 2009
Messages
64
Trophies
1
XP
319
Country
Hmm I'm having this issue now. master_key_01 is fine but if I try to add 2 or 2 to the ini file it doesn't decrypt at all (I'm assuming errors prevent it running at all)

When you add any master keys, is there any extra keys/information you need to add? Not asking for specific keys etc, just names of keys etc I need to add

this is how mine looks like now...

fc1u35.jpg
 
  • Like
Reactions: Ty_

Xyphoseos

Hack or no games
Member
Joined
Jun 29, 2016
Messages
1,839
Trophies
0
Age
23
Location
Rivière
XP
3,285
Country
France
how keys must be written in keys.ini ?
Mine are wrote like it :

master_key_00 = C2CA
master_key_01 = 54E1
master_key_02 = 4F6B
master_key_03 = 84E0
master_key_04 = CFA2
header_key = AEAA
aes_kek_generation_source = 4D87
aes_key_generation_source = 8961
key_area_key_application_source = 7F59
key_area_key_ocean_source = 327D
key_area_key_system_source = 8745
titlekek_source = 1EDC

(I don't give complet keys)

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

My folder is like it :
upload_2018-6-16_13-19-43.png

And when I launch the .bat I get it :

upload_2018-6-16_13-20-21.png
 

Attachments

  • upload_2018-6-16_13-19-24.png
    upload_2018-6-16_13-19-24.png
    9.1 KB · Views: 438

BlastedGuy9905

where's the updated autopsy report
Member
Joined
Apr 13, 2017
Messages
2,334
Trophies
1
Age
34
Location
under your desk
XP
4,053
Country
United States
Can confirm Lego Worlds doesn't work with Stern Pinball Arcade. Should've I edited the npdm file? Cause I used your decryption .bat file. It said it was 100% ready.

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

WHOA! It worked! I just had to use the streamable tutorial.
 

Ty_

Well-Known Member
Member
Joined
May 22, 2018
Messages
399
Trophies
0
Age
44
XP
1,256
Country
United Kingdom
Hmm I'm still getting error when I add master keys 2 and to the keys.ini file. I can add master_key_01 no problem, but if I add 2 & 3 the decrypter says file not found. Pretty sure I've got the correct key numbers, checked them against multiple sources

Zh1s5CI.png



Edit NVM, was an issue with notepad not putting entry onto a new line. Seems fine now. Gonna leave my original comment in case anyone else gets the same issue.
 
Last edited by Ty_,

z10m

Well-Known Member
Newcomer
Joined
Oct 26, 2009
Messages
64
Trophies
1
XP
319
Country
Fantastic that's what I was after. And you got it to work with Donkey Kong, output the exfs folder etc?

yeah all of my xci now decrypt correctly but not all work in switch as tested by others.
 

SexiestManAlive

The key that lights the dark
Member
Joined
Apr 18, 2016
Messages
617
Trophies
0
Age
22
XP
2,458
Country
United States
i have all the keys now, but i cant decrypt sonic forces, am i doing something wrong? this is my setup, and voez gives me a cert file and a tik file instead of the romfs
 

Attachments

  • Capture.PNG
    Capture.PNG
    20.8 KB · Views: 428
Last edited by SexiestManAlive,

phn

Well-Known Member
Newcomer
Joined
Dec 26, 2014
Messages
58
Trophies
0
Age
30
XP
131
Country
what the fuck, all i got after i decrypted a donkey kong xci was a romfs.bin and a .cert and .tik file

help?

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

note: didnt say that section 0 was corrupted or anything

I'm getting the same problem as BlastedGuy, any solution please??
 

Attachments

  • screen.png
    screen.png
    15.1 KB · Views: 496

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    I honestly just download movies on my phone put them on my card reader then on my tv so much better than wireless transfer bs
  • K3Nv2 @ K3Nv2:
    Glad I bought a card reader type c and usb A makes life easy
  • Xdqwerty @ Xdqwerty:
    Yawn
  • RedColoredStars @ RedColoredStars:
    i download movies on my PC that is connected to my living room tv.
  • RedColoredStars @ RedColoredStars:
    Monitors are too small for my bad eyesight so I use my main tv and wirelss keyboard and wireless trackball mouse.
  • RedColoredStars @ RedColoredStars:
    I tried wireless transfer on phone before and yes, it's garbage. lol. So sloooooooooowwwwww.
  • BigOnYa @ BigOnYa:
    New south park was not really that funny.
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, i heard modern south park is too serious
  • K3Nv2 @ K3Nv2:
    Did it hurt your feelings?
    +1
  • BigOnYa @ BigOnYa:
    Some are still funny, but they always try to use a subject matter related to something going on today.
  • K3Nv2 @ K3Nv2:
    All you need is one dose of Lizzo to make yourself feel better
    +1
  • Xdqwerty @ Xdqwerty:
    Who tf is lizzo
  • K3Nv2 @ K3Nv2:
    They always make valid points on that show and it goes over people's heads over sensitivity reasons
    +1
  • The Real Jdbye @ The Real Jdbye:
    @BigOnYa i mean south park did that way back in the day too
    +2
  • The Real Jdbye @ The Real Jdbye:
    remember the Michael Jackson episodes?
  • K3Nv2 @ K3Nv2:
    Or blaming the only jew in the show on 9/11 or having the police shoot the only black kid during a school shooting or saying Kanye a gay fish list goes on
    +2
  • The Real Jdbye @ The Real Jdbye:
    the gay fish thing was funny as fuck
    +1
  • The Real Jdbye @ The Real Jdbye:
    and i don't even follow or care about kanhye
    +1
  • BigOnYa @ BigOnYa:
    Everytime i hear that real song, i think of that episode, "I'm a Gay fish yal."
    +1
  • K3Nv2 @ K3Nv2:
    So was the way they showed how messed up the American health system was to get anything done
  • Xdqwerty @ Xdqwerty:
    i dont watch south park that much
  • BigOnYa @ BigOnYa:
    Old people driving was a funny one, like cars up on 2nd/3rd floors in houses. Had to shut down old country buffet to stop them.
    K3Nv2 @ K3Nv2: https://youtu.be/VAfy26xs6e0?si=EuGdWe_Y25-rfmms accurate