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

  • Thread starter Deleted-451877
  • Start date
  • Views 534,912
  • 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
36
XP
403
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,013
Trophies
2
Age
29
Location
New York City
XP
13,398
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,890
Trophies
2
XP
29,450
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: 593
  • Like
Reactions: urdaddy

KongsNutz

[Team Oceanic]
Member
Joined
Jul 19, 2008
Messages
1,680
Trophies
1
XP
1,589
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,013
Trophies
2
Age
29
Location
New York City
XP
13,398
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,250
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,469
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.
  • BigOnYa @ BigOnYa:
    I kept thinking jaws was gonna come up and attack
  • K3Nv2 @ K3Nv2:
    Jaws is on a diet
  • K3Nv2 @ K3Nv2:
    Damn power went out
  • BigOnYa @ BigOnYa:
    Ok xdqwerty, your little bro prob tripped On the cord and unplugged you
  • K3Nv2 @ K3Nv2:
    Ya I'm afraid of the dark hug me
  • BigOnYa @ BigOnYa:
    Grab and hold close your AncientBoi doll.
  • K3Nv2 @ K3Nv2:
    Damn didn't charge my external battery either
  • BigOnYa @ BigOnYa:
    Take the batteries out of your SuperStabber3000... Or is it gas powered?
  • K3Nv2 @ K3Nv2:
    I stole batteries from your black mamba
    +1
  • K3Nv2 @ K3Nv2:
    My frozen food better hold up for an hour I know that
  • BigOnYa @ BigOnYa:
    Or else gonna be a big lunch and dinner tomorrow.
  • BigOnYa @ BigOnYa:
    Did you pay your power bill? Or give all yo money to my wife, again.
  • K3Nv2 @ K3Nv2:
    Oh good the estimated time is the same exact time they just said
    +1
  • BigOnYa @ BigOnYa:
    Load up your pc and monitor, and head to a McDonalds dining room, they have free WiFi
  • K3Nv2 @ K3Nv2:
    Sir please watch your porn in the bathroom
    +2
  • BigOnYa @ BigOnYa:
    No sir we can not sell you anymore apple pies, after what you did with the last one.
  • K3Nv2 @ K3Nv2:
    We ran out
  • HiradeGirl @ HiradeGirl:
    for your life
    +1
  • K3Nv2 @ K3Nv2:
    My life has no value my fat ass is staying right here
  • K3Nv2 @ K3Nv2:
    Nearly 4 hours without power :(
  • Veho @ Veho:
    SO POWERLESS
  • K3Nv2 @ K3Nv2:
    Tell Kanye I need power
    K3Nv2 @ K3Nv2: Tell Kanye I need power