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

  • Thread starter Deleted-451877
  • Start date
  • Views 531,774
  • Replies 760
  • Likes 119

datahoarder

Organized.
Member
Joined
Jul 7, 2007
Messages
567
Trophies
1
XP
749
Country
United States
Fixed some bugs, implemented the 'download last update' thing (do updateTID-0), some other stuff maybe..
The updateTID-0 fails with the error:
CDNSP.py -g 0100284007d6c800-0

0100284007d6c800 v0:
Traceback (most recent call last):
File "S:\CDN\CDNSP.py", line 648, in <module>
sys.exit(main())
File "S:\CDN\CDNSP.py", line 621, in main
download_game(tid, ver, tkey, nspRepack=args.repack)
File "S:\CDN\CDNSP.py", line 365, in download_game
files = download_title(gameDir, tid, ver, tkey, nspRepack)
File "S:\CDN\CDNSP.py", line 258, in download_title
r = make_request('HEAD', url)
File "S:\CDN\CDNSP.py", line 101, in make_request
raise ValueError('File doesn\'t exist!')
ValueError: File doesn't exist!
 

thealgorithm

Well-Known Member
Member
Joined
Oct 27, 2015
Messages
393
Trophies
0
Age
48
XP
786
Country
do you mind uploading your cdnsp? op attachment is gone thanks in advanced
Thx for the tutorial ! :)

What's happening if i go to devmenu and derectrly install the NSP file without your script?

Thanks ;)

The script is for downloading a game and then converting to NSP. If you already have the NSP of the game (and it is dumped correctly) then no need for the script
 
  • Like
Reactions: Mordicuss

thealgorithm

Well-Known Member
Member
Joined
Oct 27, 2015
Messages
393
Trophies
0
Age
48
XP
786
Country
Ok but no worry if the switch lauched without custom firmware in ?
Once you are online regardless if you are in usual firmware or custom, There is a risk of ban if you have been using backups and in particular if using devmenu.

Only longwinded approach would be (if you have not done any switch hacks)..

Make a backup of your full nand and microsd card.
Turn off wireless
play backups without turning on wireless at all

When you are fed up and want to turn on wireless. then..

Flash back the nand backup to your switch. Use either an empty microsd or to use win32diskimager or so to flash the image back to your microsd

reboot switch and turn on wifi
 
  • Like
Reactions: Mordicuss

thealgorithm

Well-Known Member
Member
Joined
Oct 27, 2015
Messages
393
Trophies
0
Age
48
XP
786
Country
Yes but if i reboot the switch without the CFW to make the game update any risk ?
There is always a risk as there are still traces of other activity on the device regardless if you boot to OFW

Also it is very easy for Nintendo to say "hey, this guy did not purchase the game, but he is updating..."
 
  • Like
Reactions: Mordicuss

Mordicuss

Member
Newcomer
Joined
Jul 4, 2018
Messages
5
Trophies
0
Age
38
XP
59
Country
France
Once you are online regardless if you are in usual firmware or custom, There is a risk of ban if you have been using backups and in particular if using devmenu.

Only longwinded approach would be (if you have not done any switch hacks)..

Make a backup of your full nand and microsd card.
Turn off wireless
play backups without turning on wireless at all

When you are fed up and want to turn on wireless. then..

Flash back the nand backup to your switch. Use either an empty microsd or to use win32diskimager or so to flash the image back to your microsd

reboot switch and turn on wifi


Wow ! Nice explanation, so, even Usual firmware or custom the ban risk is here. Thanks !
 

JaRocker

Well-Known Member
Member
Joined
May 3, 2018
Messages
341
Trophies
0
XP
1,486
Country
Jamaica
[EDIT]
  • I have changed the way my script generates tiks and certs. It seems more games will install, but some reportedly won't launch. 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.
hey, what happened to the download link?
 

AlphaSapphire

Well-Known Member
Member
Joined
Aug 10, 2015
Messages
422
Trophies
0
Age
25
XP
1,174
Country
Canada
its not working i keep getting this
File "C:\Users\-----\Downloads\CDNSP\CDNSP.py", line 6, in <module>
import requests
ImportError: No module named requests
 

datahoarder

Organized.
Member
Joined
Jul 7, 2007
Messages
567
Trophies
1
XP
749
Country
United States
its not working i keep getting this
File "C:\Users\-----\Downloads\CDNSP\CDNSP.py", line 6, in <module>
import requests
ImportError: No module named requests
Your error was answered a couple of times. You have to install some pip modules using the command line. Search or look a few pages back.
 

jakkal

Well-Known Member
Member
Joined
Apr 27, 2018
Messages
2,303
Trophies
1
Age
44
XP
3,982
Country
United States
its not working i keep getting this
File "C:\Users\-----\Downloads\CDNSP\CDNSP.py", line 6, in <module>
import requests
ImportError: No module named requests


  • Open CMD (Command Prompt) and run the following commands
  • pip install requests <press enter> (Wait for it to install)
  • pip install tqdm <press enter> (Wait for it to install)
  • pip install pyopenssl <press enter> (Wait for it to install)
  • pip install request <press enter> (Wait for it to install)
 
  • Like
Reactions: EmperorX

Akuma540

Member
Newcomer
Joined
May 16, 2018
Messages
18
Trophies
0
Age
36
XP
83
Country
Germany
I ve tested the new CDNSP script and its ok but even when I get the nsp file installed 100 without error, the game will freeze or telling me it got corrupted data. Even when the right titelkey has been used. I ve tested Outlast, Naruto UNS3, Layers of Fear, Perception and Infernium.
 

PeterGemp

Well-Known Member
Member
Joined
Jun 28, 2018
Messages
118
Trophies
0
XP
269
Country
United States
Yes, but not ones that need signature patches, = not illegitimate nsps.
For example, game update nsps are fine.
I mean install them so they are viewed in the horizon os homescreen, without SX OS.
Whenever I confirm "Install from SD" on my DEVMENU (replaced Pokemon Quest) it crashes.
I don't even get to the SD-path selection screen.
How do it achieve that? (Hekate, SD Files v5)

I did get most of the eShop games work unpacked (.nsp->encrypted .nca->decrypted .nca->exefs-folder and romfs.bin) with layeredFS but I'm running out of donor games and save-space (almost always use Kitten Squad, backing up and reloading save via Checkpoint every time I want to play another title via Kitten Squad is such a hastle...).
It would be great to have the Games installed correctly, each with their own saves like owned games.
 
Last edited by PeterGemp,

srwgin

Well-Known Member
Member
Joined
Aug 13, 2013
Messages
520
Trophies
0
XP
425
Country
China
py -3 CDNSP.py -i 0100eae003a5a000

0100eae003a5a000:
Can't get name of title, TitleID not found on Shogun!
Avaible update versions for 0100eae003a5a800:
v65536 v131072 v196608 v262144 v327680

is this normal I can not get game name and dlc
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: Least they got head in the end