[Release] FunKeyCIA - make GOOD cias from eshop content, no tickets needed!

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by cearp, Apr 15, 2016.

  1. cearp
    OP

    cearp the ticket master

    Member
    7,550
    4,813
    May 26, 2008
    Tuvalu
  2. pikatsu

    pikatsu GBAtemp Advanced Fan

    Member
    738
    127
    Apr 16, 2014
    Argentina
    I do not know anything more that everybody since i have not used this tool yet. Packhack could do this i guess but we have to wait untill Asia81 updates his library
     
    cearp likes this.
  3. windwakr

    windwakr GBAtemp Fan

    Member
    483
    112
    Sep 13, 2009
    United States
    Grab the latest source of ctrtool and compile it. Grab a seeddb.bin file either from here or wherever. Then you extract the contents of the CIA using
    Then you can run ctrtool on the files it spits out (make sure seeddb.bin is in the same folder)
     
    Last edited by windwakr, May 30, 2017
    cearp likes this.
  4. cearp
    OP

    cearp the ticket master

    Member
    7,550
    4,813
    May 26, 2008
    Tuvalu
    Last edited by cearp, May 30, 2017
    pikatsu likes this.
  5. Ev1l0rd

    Ev1l0rd (⌐◥▶◀◤) Knight of Void

    Member
    1,036
    816
    Oct 26, 2015
    Netherlands
    Land of Darkness and Bounty
    PackHack is nothing more than 3dstool and ctrtool combined with some preset extraction commands passed as a batch script. You can literally skip PackHack and just use ihaveamac's wiki instead. In fact, I recommend you do that, as as far as I'm aware, PackHack does not work with manuals and download play containers, whereas 3dstool does. In a similar fashion, PackHack has no protection against braindump dumps (which cannot be recompiled to CIA), whereas 3dstool requires you to extract said files.

    Also, I'm pretty sure Asia81 is female.
     
    Ryccardo and cearp like this.
  6. cearp
    OP

    cearp the ticket master

    Member
    7,550
    4,813
    May 26, 2008
    Tuvalu
    plus packhack is windows only, i think?
    it is nice to have the base tools and run them on what os you want.

    (although i understand having windows batch stuff can be useful for noobs)
     
    Ev1l0rd likes this.
  7. asper

    asper GBAtemp Advanced Fan

    Member
    648
    326
    May 14, 2010
    United States
    I managed to get a game from wiiu usb helper, decrypt it and open it with citra, without any .3ds file or a 3ds console. Thank you for your hint about latest compiled ctrtool version !!
     
  8. demon77

    demon77 Advanced Member

    Newcomer
    62
    26
    May 4, 2015
    Belgium
    Can somebody compile the latetest ctrtool
     
  9. Ryccardo

    Ryccardo WiiUaboo

    Member
    3,350
    1,611
    Feb 13, 2015
    Italy
    Imola

    Attached Files:

    Last edited by Ryccardo, Jun 6, 2017
    demon77 likes this.
  10. cearp
    OP

    cearp the ticket master

    Member
    7,550
    4,813
    May 26, 2008
    Tuvalu
    i was just about to post a freebsd build, here's hoping that the user wanted windows x64 - i doubt it though ;)
    thanks
     
  11. redunka

    redunka GBAtemp Regular

    Member
    292
    136
    Nov 26, 2014
    Russia
    And in case anyone needs them, here are Windows x86 builds of both ctrtool and makerom.
    I had to include a couple of DLLs, though. Otherwise ctrtool won't run on "clean" PC.
    By the way, @Ryccardo, your ctrtool build does require some DLLs too (libgcc_s_seh-1.dll, libstdc++-6.dll and libwinpthread-1.dll).
    Is that something with our mingw-w64 setups, or with the project itself?
     

    Attached Files:

    Ryccardo likes this.
  12. Anon--0

    Anon--0 Member

    Newcomer
    10
    6
    Jun 8, 2017
    4c- I mean, Reddit
    Is it better than Freeshop? Any chance of bricking with these .cias?
     
  13. Ryccardo

    Ryccardo WiiUaboo

    Member
    3,350
    1,611
    Feb 13, 2015
    Italy
    Imola
    1- Zero difference (tickets are "invented" from titleid and titlekey only - well of course with this tool you get an actual BACKUP and you won't be crying when the servers close or you're simply offline and you won't be able to redownload your favorite games)

    2- Zero difference (any titles that install to the SD still have a ticket to write to nand, and there is an extremely small but nonzero chance of that write causing the last remappable bad sector and forcing it into permanent write protection mode)
     
  14. Ryccardo

    Ryccardo WiiUaboo

    Member
    3,350
    1,611
    Feb 13, 2015
    Italy
    Imola
    Try adding -static to all gcc calls (ie in the per-file "$(CC) -o ..." macro at the end of the makefile)
     

    Attached Files:

    redunka likes this.
  15. redunka

    redunka GBAtemp Regular

    Member
    292
    136
    Nov 26, 2014
    Russia
    Thank you, that did the trick. :)
    I'll leave statically linked builds for win 32-bit here, for anyone who needs them.
     

    Attached Files:

    Ryccardo likes this.
  16. demon77

    demon77 Advanced Member

    Newcomer
    62
    26
    May 4, 2015
    Belgium
  17. gengardenne

    gengardenne GBAtemp Regular

    Member
    291
    5
    Nov 14, 2016
    Italy
    Can I use FunkeyCIA to create a GOOD cia and then use it to follow the dsi ware 11.4 guide on 3ds guide?
    Or a cia build in this way is invalid like the unofficial one?
    I'm interested to this for a my friend :)
     
  18. asper

    asper GBAtemp Advanced Fan

    Member
    648
    326
    May 14, 2010
    United States
    Man I have a small new problem: even with latest ctrtool I am not able to decrypt .cia (encrypted) obtained form DSiWare games; I am only able to obtain contents.0000.00000000 but no way to extract it with the "usual" commands: is there a specific command/key to use with ctrtool to decrypt those DSiWare titles ?
     
  19. redunka

    redunka GBAtemp Regular

    Member
    292
    136
    Nov 26, 2014
    Russia
    If it's DSiWare, there's nothing more to extract, that "contents.0000.00000000" file is everything you need.
     
    Ryccardo likes this.
  20. asper

    asper GBAtemp Advanced Fan

    Member
    648
    326
    May 14, 2010
    United States
    Is it already decrypted? How can i extract ds game data from that file?