How to extract theme .cia?

Discussion in '3DS - Flashcards & Custom Firmwares' started by Isle41, Dec 3, 2014.

  1. Isle41
    OP

    Isle41 GBAtemp Regular

    Member
    207
    84
    Nov 24, 2011
    Gambia, The
    Tried figuring out ctrtool for far too long and I have no clue what I'm doing.
     
  2. piratesephiroth

    piratesephiroth I wish I could read

    Member
    2,999
    1,612
    Sep 5, 2013
    Brazil
    You want to extract the contents from a repacked CIA?
     
  3. Isle41
    OP

    Isle41 GBAtemp Regular

    Member
    207
    84
    Nov 24, 2011
    Gambia, The
    I have no idea actually. I have a theme file in the form of a cia. I see every file explorer can view the insides of the theme but first I need to extract it.
     
  4. windwakr

    windwakr GBAtemp Fan

    Member
    483
    112
    Sep 13, 2009
    United States
    Code:
    ctrtool --contents=out file.cia
    You'll get two NCCH files. The larger one has the theme files. Extract the RomFS from it with:
    Code:
    ctrtool -p --romfs=romfs.bin file.whatever
    Generate an xorpad for it and xor it. Then you can extract the files from it with:
    Code:
    ctrtool -t romfs --romfsdir=romfs romfs.bin.out
     
    astronautlevel likes this.
  5. cearp

    cearp the ticket master

    Member
    7,467
    4,704
    May 26, 2008
    Tuvalu
    why are you using crtrtool? :)

    -ah, extract, sure, i understand :)
     
  6. Isle41
    OP

    Isle41 GBAtemp Regular

    Member
    207
    84
    Nov 24, 2011
    Gambia, The
    So... how did someone manage to extract mk7 without xoring?

    Code:
    [USER=325063]Echo[/USER] OFF
    ctrtool --contents=mk7 game.cia > nul
    ren mk7.0000.786d264e mk7_app.cxi
    ren mk7.0001.13945090 mk7_manual.cfa
    mkdir ncch
    move mk7_app.cxi ncch > nul
    move mk7_manual.cfa ncch > nul
    mkdir exe
    ctrtool --exefsdir=exe --exheader=exe\exhdr.bin --romfs=romfs.bin ncch\mk7_app.cxi > nul
    ctrtool --romfsdir=romfs romfs.bin > nul
    del romfs.bin
    I sure don't understand. 3DStool doesn't seem to want to open it and I'm unaware of any other options.
     
    Margen67 likes this.
  7. cearp

    cearp the ticket master

    Member
    7,467
    4,704
    May 26, 2008
    Tuvalu
    i thought you wanted to make a theme you have, into a cia.
    but, i think you just want to extract a theme you have (in cia format for some reason), so you can look inside.
    yes, i think you should need to XOR it
     
  8. descac

    descac Advanced Member

    Newcomer
    88
    27
    Oct 7, 2014
    United States
    How are you guys making your xorpads for themes? SD padgen doesn't seem to be getting me functional ones.
     
  9. kamesenin888

    kamesenin888 GBAtemp Advanced Fan

    Member
    560
    146
    Oct 20, 2007
    descac likes this.
  10. cearp

    cearp the ticket master

    Member
    7,467
    4,704
    May 26, 2008
    Tuvalu
  11. kamesenin888

    kamesenin888 GBAtemp Advanced Fan

    Member
    560
    146
    Oct 20, 2007
    can you get encrypted cia themes? i havent seen any of them on the web
     
  12. cearp

    cearp the ticket master

    Member
    7,467
    4,704
    May 26, 2008
    Tuvalu
    i use FunkyCIA, and that doesn't need you to decrypt anything, so themes (or anything you make) will be encrypted.
    if you see a cia online, 99% of people are not going to say if the contents are decrypted or not, they just want it to work :)
     
  13. Rusb

    Rusb GBAtemp Regular

    Member
    136
    55
    Apr 17, 2014

    In some ISO site you can find "Theme Pack" in cia with all Nintendo themes
     
  14. kamesenin888

    kamesenin888 GBAtemp Advanced Fan

    Member
    560
    146
    Oct 20, 2007
    ohhh thats very interesting to know very very interesting, what are the benefits of having it encrypted?

    yes and this should work with them , because those packs were decrypted before created
     
    Rusb likes this.
  15. heroarc8

    heroarc8 Member

    Newcomer
    28
    0
    Dec 19, 2014

    So this is not possible to use using gateway running 9.2 sysnand. 9.5 emu? since launcher.dat (for gw) is needed to execute the exploit then to convert cia themes to chmm capable themes we need to put launcher.dat (included in your tutorial)?
     
  16. AtlanticBit

    AtlanticBit Yeh, fuck this

    Member
    365
    189
    Jan 15, 2015
    Poland
    DEEP IN SPACE
    why would you extract theme contents?
     
  17. kamesenin888

    kamesenin888 GBAtemp Advanced Fan

    Member
    560
    146
    Oct 20, 2007
    There is a launcher for 9.2 that I did not include because I never knew of its existence jeje, just use the 9.. 2 launcher and you are good
     
  18. tarovisions

    tarovisions GBAtemp Regular

    Member
    100
    43
    Jan 19, 2015
    United States
    To observe, edit, and limit the amount of theme files packed (I assume repacking is an option)
     
  19. lmanstl

    lmanstl Newbie

    Newcomer
    1
    0
    Apr 13, 2015
    United States
    St. Louis
    I tried to use your script. When I run it there is no ncchinfo.bin file created. there is only a bunch of files, most of which are 3 MB, in the folder that the script was run from. Any help with this issue would be great.
     
  20. kamesenin888

    kamesenin888 GBAtemp Advanced Fan

    Member
    560
    146
    Oct 20, 2007
    check in that iso site, there is an updated script, I don't have it with me atm, so check there, its pretty automatic, and please check the python version