Hacking COMPLETED CDNSP - Download & repack your games, updates, and DLC's to NSP!

  • Thread starter Deleted-451877
  • Start date
  • Views 540,362
  • Replies 760
  • Likes 119

datahoarder

Organized.
Member
Joined
Jul 7, 2007
Messages
567
Trophies
1
XP
750
Country
United States
+ Is there a way to grab the most recent UPDATE without having to specify the version?
CDNSP.py -g 0100000000000800-NEW or something akin to that?

+ Is there a way, when generating the .nsp that you could place the five files in a different folder? \ [nsp, cert, cetk, xml, tik]

- The following in your included games are actually listed, but given as update title IDs when they shouldn't be:
01004d1007926800 70010000007261 10 Second Run RETURNS
0100c8e0083c4800 70010000010129 Japanese Mah-jongg
010077b0038b2800 70010000000444 LOST SPHEAR
010024d0032f2800 70010000011727 Photon Cube
01007b900a508800 70010000010690 Pure / Electric Love "What do you want?" - Eri Kitami -
0100408007078800 70010000002615 Tales of the Tiny Planet

- Also @rkk this script has a few rom_size errors for a few titles:
CDNSP.py -i 01003C100655A000 [& 01008A700989A000 & 0100E570094E8000]

01003C100655A000:
Traceback (most recent call last):
File "X:\SWITCH\CDNSP.py", line 628, in <module>
sys.exit(main())
File "X:\SWITCH\CDNSP.py", line 577, in main
get_info(tid)
File "X:\SWITCH\CDNSP.py", line 129, in get_info
size = j['total_rom_size']
KeyError: 'total_rom_size'
 
Last edited by datahoarder,

shabbypenguin

Well-Known Member
Newcomer
Joined
Apr 29, 2015
Messages
84
Trophies
0
Age
37
XP
413
Country
United States
upload_2018-7-3_19-30-47.png


when doing info, when i try to download...

upload_2018-7-3_19-31-33.png
 

Draxzelex

Well-Known Member
Member
Joined
Aug 6, 2017
Messages
19,029
Trophies
2
Age
29
Location
New York City
XP
13,440
Country
United States

skydancer93

Well-Known Member
Member
Joined
Mar 16, 2015
Messages
585
Trophies
0
Age
30
XP
1,982
Country
United States
Yes I did. I cannot install pycrypto or asn1. I don't know why things like getting your keys and cert need to be so difficult to make you go through loops and holes like this.
 

hippy dave

BBMB
Member
Joined
Apr 30, 2012
Messages
9,923
Trophies
2
XP
30,112
Country
United Kingdom
Thanks for this, looks great. I had to edit various path separators and the like to get it working on Mac, so I'm attaching that modified version in case anyone else with a Mac wants it. Based on OP's current version at the time of this post. It might also be helpful for Linux I guess, once you give it a Linux hactool binary.

e: would really help if I actually attached the file...
 

Attachments

  • CDNSP-Mac.zip
    186.3 KB · Views: 594
  • Like
Reactions: urdaddy

KongsNutz

[Team Oceanic]
Member
Joined
Jul 19, 2008
Messages
1,680
Trophies
1
XP
1,599
Country
United States
Currently no .nsp generated with this work, the scene releases are packed differently, someone needs to compare Yooka BBB and one generated with this to find a difference, then maybe this will be a good tool for SX
 

Draxzelex

Well-Known Member
Member
Joined
Aug 6, 2017
Messages
19,029
Trophies
2
Age
29
Location
New York City
XP
13,440
Country
United States
Yes I did. I cannot install pycrypto or asn1. I don't know why things like getting your keys and cert need to be so difficult to make you go through loops and holes like this.
I have good news and bad news. The good news I think I found something else that can dump the Switch's unique certificate.
The bad news is that this needs PegaSwitch to be run (on top of not having any instructions).

To answer your question, the keys can be considered copyright material so they can and will not be shared on this site at least. Dumping your certificate is potentially asking for it to get banned since there is no reason for you to use this outside of the Switch. If you're really having trouble, you can either post in the thread or join SimonMKWii's Discord Server. He's the one that made the tool and his Server link is in his sig.
 

alkar

Well-Known Member
Member
Joined
Apr 30, 2013
Messages
329
Trophies
1
Age
94
XP
1,264
Country
United States
Could anyone try this? I changed some stuff to match with what I saw in the Stardew Valley dump.
If you could try on this game specifically, that'd be great.
MD5 of the NSP is the same in both previous version and this one.
 

Type_O_Dev

Developer
Developer
Joined
Dec 12, 2017
Messages
683
Trophies
0
XP
1,474
Country
United States
[EDIT]
  • Script has now been reported to work (on certain titles). Attached files have been updated.
  • It seems Nintendo is monitoring the situation. See later in the thread for more details

NOTE: Using this script to download unowned content (and most probably owned too) will lead to a ban. Don't hold me responsible for decisions YOU decided to take.

CDNSP is a Python3 CDN downloader. It needs the requests library (pip install request). tqdm (pip install tqdm) is optional and will make your progress bars look better. Maybe some more, I'm not sure.

What it can do:
  • Print useful info about a titleid (name, available updates)
  • Download games, updates, DLC's and even system update, in their entirety (that means all the available content, logo, legal info, ...) is downloaded
  • Batch download everything explicited further up
  • Resume downloads right were you left them at
  • Repack games, DLC's, updates as ready-for-install NSP's
What it does:
  • Download and extract the CNMT (content metadata) NCA, and parse it to find the other content to download
  • If you want to repack your download as NSP, it will generate a CNMT.XML file
  • Generate the TIK and CERT:
  • for private content the CERT (non console nor game-unique) will be copied and renamed appropriately. The TIK will be generated using a blanked out file taken from BBB's Yooka-Laylee dump, and plug in the titlekey and titleid. To generate the TIK for private content, the titlekey is REQUIRED
  • for public content, it will directly download the CETK from Nintendo's servers, and extract the TIK and CERT.
  • Download everything else
  • And finally, repack everything to an NSP

To get started, you need:
  • hactool, and its keys
  • A console-unique certificate, in PEM format (I have included a PFX to PEM converter script, simply drag your PFX over it)
  • The ShopN certificate, in PEM format (this one is included in the zip)
  • Edit your config in the CDNSPconfig.json
Use the command prompt to download your titles. Example are provided below, and a help message is included

Examples:

Cheers! To get you started, I have also included a small list of 859 TitleID's.
can you confirm this also downloads dlc
Code:
CDNSP.py -r -g 0100e95004038000-0-4*****7708a1ba9*****25b8**** 0100e95004038800-589824
 
  • Like
Reactions: SquidSquadAlpha

NemsMole

Member
Newcomer
Joined
Mar 6, 2015
Messages
7
Trophies
0
Age
33
XP
138
Country
United States
Currently no .nsp generated with this work, the scene releases are packed differently, someone needs to compare Yooka BBB and one generated with this to find a difference, then maybe this will be a good tool for SX
I'm trying to do just this but having a hell of a time actually getting NXTools to work :/
 

switchbricker

Active Member
Newcomer
Joined
Mar 15, 2018
Messages
34
Trophies
0
Age
25
XP
119
Country
United States
Currently no .nsp generated with this work, the scene releases are packed differently, someone needs to compare Yooka BBB and one generated with this to find a difference, then maybe this will be a good tool for SX
Change XS00000021 to XS00000020 in ticket.tik with a hex editor, this makes all 3.0.1 NSPs work.
 
Last edited by switchbricker,

switchbricker

Active Member
Newcomer
Joined
Mar 15, 2018
Messages
34
Trophies
0
Age
25
XP
119
Country
United States
Does this mean downloading titles, without tickets, and installing the repacked NSP files via Dev Menu on SX OS v1.3 - they will run out of the box and or with LayeredFS?
You have to use the generic ticket with the edit I proposed in the original post when using CDNSP to download and repack, you also need the titlekey information. However, other than that, the NSP files generated run out of the box having been installed with DevMenu on SX OS 1.3. They will not work if installed running any other payload, so you have to run SX OS 1.3 to install AND run games with this method. Hope that cleared things up. Enjoy Hollow Knight.
 
  • Like
Reactions: hippy dave

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • realtimesave @ realtimesave:
    @SylverReZ that guy seriously spent over 2 grand on that hot wheels pc?
    +1
  • RedColoredStars @ RedColoredStars:
    LTT is a noob
  • RedColoredStars @ RedColoredStars:
    Guy doesnt know wtf hes talking about half the time
  • realtimesave @ realtimesave:
    @SylverReZ that reminds me that my friend sells CRTs he gets cheap or free for hundreds of dollars. people are dumb
    +1
  • RedColoredStars @ RedColoredStars:
    And is incredibly annoying.
  • realtimesave @ realtimesave:
    man I just washed my shoes and they look exactly the same as before I washed them :|
  • realtimesave @ realtimesave:
    luckily they didn't fall apart
  • RedColoredStars @ RedColoredStars:
    Some CRTs are very much worth the price
  • RedColoredStars @ RedColoredStars:
    i used to go out to the recycling center every couple weeks and look at the crts and other electronics people would drop off. Usually screens were broken or severely scratched from being tossed around. Did find a good one here and there, but never anything like a 1080i widescreen crt.
  • RedColoredStars @ RedColoredStars:
    Or a good contition 40" Sony Trini that weighs 300 lbs. lol
  • RedColoredStars @ RedColoredStars:
    Literally 300 lbs. lolol
  • BigOnYa @ BigOnYa:
    I have a few of those boat anchors in my basement I tried giving away but no one wanted them, So anyone close to Columbus, Ohio area that wants them, (26", 2x 19") please come get, for free.
  • RedColoredStars @ RedColoredStars:
    Dont know anyone wants those smaller ones. Most are after larger sizes and the kinda top of the line models
  • RedColoredStars @ RedColoredStars:
    Motion handling and input lag on those things destroy plasmas, led, oled
  • realtimesave @ realtimesave:
    I had some really nice CRTs I should've kept
  • realtimesave @ realtimesave:
    now I have all lcd
  • realtimesave @ realtimesave:
    one in particular I regret getting rid of oh well :|
  • realtimesave @ realtimesave:
    the Sonys and stuff I don't care about
  • realtimesave @ realtimesave:
    and used LCD are hard to sell I can imagine.. not worth much
  • realtimesave @ realtimesave:
    @SylverReZ where do u lurk
  • a_username_that_isnt_cool @ a_username_that_isnt_cool:
    Is it piracy if it was released for free? Not in my opinion, but I also think it's not piracy if buying it isn't owning it, and it's not piracy if you can't buy it from the original creators anymore.
  • K3Nv2 @ K3Nv2:
    Free release can have loopholes where they still make money through ads
    +1
    Xdqwerty @ Xdqwerty: :sad: