1. caitsith2

    OP caitsith2 GBAtemp Fan
    Member

    Joined:
    Jan 16, 2004
    Messages:
    342
    Country:
    Canada
    Decided to make a tool for packing NSPs from games you have legally purchased through the eShop, that avoids the need for using any CDN tools, which poses a potential ban risk to your Nintendo Switch. You just quite simply dump your nand each time you buy a new game, in order to be able to extract the tickets required for NSP packing. The first run requires getting keys.txt, which can be done through kezplez, (turn on airplane mode, backup nand, run cfw and use kezplez, then restore the nand backup to wipe the traces of having ever run cfw to begin with.) Alternatively, google for keys.txt. As it is right now, eticket_rsa_kek is not extracted by kezplez, so that currently has to be googled for.

    screenshot_new.png

    Download from here or here
    Source code at https://github.com/CaitSith2/SwitchSDTool

    Credits go to @Khangaroo for his original posting of the Switch SD dumping guide, which was not exactly the most user friendly guide, and to whoever wrote CDNSP, which served as the basis for this tool, in terms of figuring out how the NSP format worked. Also to @tubebar for providing me a nintendo switch, and the motivation to work on the tools.

    Version 1.10 - Jan 12, 2019
    • Fixed a regression that prevented conversion of NSPs of titles larger than 4GiB.
    • Fixed an instant crash when the required master keys to decrypt and parse a given title are not present. (It now logs on failure indicating what key is required to process the title.)

    • personal_keys.txt now only includes keys not yet in the database.
    • No longer depends on hactool or create temp files while parsing the ncas.
    • NSPs no longer have *.cnmt.xml. (This file like all of the other xml files and even jpeg files, is 100% derived from the ncas themselves, and is only used for Nintendo's lot check process before final release. (Don't bother asking for the xml files in my tool.))
    • Read tickets more efficiently
    • Get the release date AND time of pre-ordered eshop games.
    • Title key decryption sped up.
    • Added means to output common_keys.txt (and a formatted version for use in cdnsp tools to download updates.)
    • Include history.txt
    • release zip now uniquely named
    • Added ability to retrieve Title keys from DB (Have to find the DB url yourself)
    • Added an option to dump personal_keys.txt
    • Joining/Decrypting now merged into one step.
    • Title key now shown, if available.
    • Dumping from USER nand partition now possible. Just select the USER nand partition as your SD directory to do so.
    • Added a combo box and a means to cache RSA keys by Switch Serial number. This means PRODINFO.bin is only needed once, to initially load the RSA key.
    • Selecting SD Directory now Enables Find SD key.
    • Selecting SYSTEM nand directory now Enables both Find SD Key, and Load RSA Key. (Also deselects the current switch serial number from the combo box as well.)
    • eticket_rsa_kek text box disabled on program startup, if the correct key already exists in the configuration at startup.
    • Fixed a bug that causes duplicate entries to appear
    • The Info box now contains info on what NCA files belong to the title, when a child node of the title is selected, resolving issue #2
    • keys.txt no longer moved to %userprofile%.switch\prod.keys
    • keys.txt if present, or %userprofile%.switch\prod.keys parsed locally, and invalid key length keys for hactool are removed and put into tools\FixedKeys.txt. This should fix some of the hactool related problems for good.
    • Games/Language selection combined into one tab.
    • Selection of a game now shows on the language list which languages are supported.
    • Clicking on a language while a game is selected now shows that languages icon and title/developer information.
    • Fixed a bug where an empty directory in the SD card causes the decryption process to outright stop.
    • Fixed an issue where if the only items you have is DLC from a given game, you end up with lots of "Unknown". It is now one "Unknown" per game which you only have DLC for.
    • Added option to delete data from only the SD card, and keep the local decrypted NCA intact. (This is equivalent to Archiving the content on the switch.)
    • No longer need to re-parse the NCAs if you change the language order after parsing NCAs. The titles/icons now update according to the new language order live.
    • Added MIT License
    • Show error message if .NET Framework is less than 4.7.1.
    • Initial Release :)
     
    Last edited by caitsith2, Jan 12, 2019
    Xanol, MUDD_BR, petermesh and 54 others like this.
  2. Ronhero

    Ronhero Too Weird to Live, Too Rare to Die
    Member

    Joined:
    Jun 28, 2014
    Messages:
    3,464
    Country:
    United States
    Seeing how Nintendo is starting to crack down on things like cia downloading this is great to keep the nsp flowing

    Good work
     
  3. Draxzelex

    Draxzelex GBAtemp Legend
    Member

    Joined:
    Aug 6, 2017
    Messages:
    11,579
    Country:
    United States
    An NSP dumper?! *throws CDNSP out the window*
     
    gnilwob, NoNAND, alexbrarjohn and 6 others like this.
  4. AveSatanas

    AveSatanas GBAtemp Regular
    Member

    Joined:
    Aug 7, 2018
    Messages:
    152
    Country:
    United States
    Do you have a link to the source code? I might port it to linux.
     
  5. sora10pls

    sora10pls GBAtemp Regular
    Member

    Joined:
    Oct 25, 2015
    Messages:
    190
    Country:
    Canada
    Thank you SO MUCH for this tool. This is what I've been wanting for weeks now, major props to you and anybody else involved with this release!
     
  6. tomGER

    tomGER GBAtemp Fan
    Member

    Joined:
    Feb 6, 2017
    Messages:
    348
    Country:
    Germany
    Source Code?
     
  7. magico29

    magico29 GBAtemp Maniac
    Member

    Joined:
    Aug 2, 2017
    Messages:
    1,236
    Country:
    United States
    hell yeah baby!!! thanks.
     
  8. tubebar

    tubebar GBAtemp Regular
    Member

    Joined:
    May 17, 2009
    Messages:
    226
    Country:
    United States
    Thanks we really NEEDED this tool, you are the best! :yayswitch:
     
  9. TR_mahmutpek

    TR_mahmutpek medic
    Member

    Joined:
    Jul 28, 2015
    Messages:
    1,308
    Country:
    Turkey
    *Ninty liked that.
     
  10. caitsith2

    OP caitsith2 GBAtemp Fan
    Member

    Joined:
    Jan 16, 2004
    Messages:
    342
    Country:
    Canada
  11. jptsubasa

    jptsubasa Member
    Newcomer

    Joined:
    Aug 5, 2018
    Messages:
    19
    Country:
    China
    WOW!So great!Thank you.
     
  12. AnalogMan

    AnalogMan ultraSuMoFramework Dev
    Member

    Joined:
    Apr 20, 2007
    Messages:
    2,896
    Country:
    United States
  13. caitsith2

    OP caitsith2 GBAtemp Fan
    Member

    Joined:
    Jan 16, 2004
    Messages:
    342
    Country:
    Canada
    The common ticket is used as a template to generate the ticket for Games/DLCs you have downloaded. No keys are present within that certificate, nor any valid signature data.
     
    SSG Vegeta likes this.
  14. Dodain47

    Dodain47 GBAtemp Addict
    Member

    Joined:
    Jan 1, 2017
    Messages:
    2,677
    Country:
    Austria
    Our Homebrew Hero!:grog:
     
    Reploid and SSG Vegeta like this.
  15. SSG Vegeta

    SSG Vegeta GBAtemp Advanced Fan
    Member

    Joined:
    Jul 25, 2013
    Messages:
    617
    Country:
    United States
    We need this for the 3DS this is awesome :grog:
     
    Last edited by SSG Vegeta, Aug 14, 2018
  16. Wuigi

    Wuigi GBAtemp Advanced Fan
    Member

    Joined:
    Sep 14, 2012
    Messages:
    683
    Country:
    Germany
    @SSG Vegeta Decrypt9WIP/godmode9 can actually dump CIAs from your (bought) games.
    It is used in the Daigykyakuten Saiban translation for example.
     
    SSG Vegeta likes this.
  17. SSG Vegeta

    SSG Vegeta GBAtemp Advanced Fan
    Member

    Joined:
    Jul 25, 2013
    Messages:
    617
    Country:
    United States
    I meant for extracting the ticket files :D
     
  18. nWo

    nWo The Game Master
    Member

    Joined:
    Oct 20, 2016
    Messages:
    458
    Country:
    Mexico
    My Switch is ready
     
  19. uyjulian

    uyjulian Homebrewer
    Member

    Joined:
    Nov 26, 2012
    Messages:
    2,515
    Country:
    United States
    GodMode9 can extract valid ticket files from the ticket database
     
    Hiccup, Quantumcat and SSG Vegeta like this.
  20. dAVID_

    dAVID_ Electrician's Apprentice
    Member

    Joined:
    Oct 23, 2016
    Messages:
    1,357
    Country:
    Mexico
    Thanks dude, now we can share dumped games.
     
    Jayro and SSG Vegeta like this.
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - Nintendo, Switch, Dumper