Homebrew RELEASE Nintendo Switch SD to NSP Dumper

caitsith2

Well-Known Member
OP
Member
Joined
Jan 16, 2004
Messages
350
Trophies
2
Age
43
Location
a secret location 93 million miles from the sun
Website
www.caitsith2.com
XP
2,476
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,

sora10pls

Well-Known Member
Member
Joined
Oct 25, 2015
Messages
190
Trophies
0
XP
715
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!
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: https://www.youtube.com/watch?v=COua5q4CByg