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

  • Thread starter Deleted-451877
  • Start date
  • Views 541,436
  • Replies 760
  • Likes 119
D

Deleted-451877

Guest
OP
[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:
upload_2018-7-3_20-4-8.png
upload_2018-7-3_20-6-24.png
upload_2018-7-3_20-8-32.png
upload_2018-7-3_20-9-28.png
upload_2018-7-3_20-13-7.png

Cheers! To get you started, I have also included a small list of 859 TitleID's.
 
Last edited by ,

cearp

瓜老外
Developer
Joined
May 26, 2008
Messages
8,740
Trophies
2
XP
8,587
Country
Tuvalu
even game updates require a console unique cert?
because game update are not console unique, the ticket is generic (like wiiu, unlike 3ds)
anyway, this is really cool! very happy thanks :)
 
D

Deleted-451877

Guest
OP
Should have been called BanShop
Heh, that's how the CDN works, not my doing.

It's too bad this requires a console-unique cert. I see you added one more listing from 858 to 859.
It's funny that I had to wait less than 12 hours for this request to be made:
https://gbatemp.net/threads/manually-updating-romfs-bin-for-backups.509834/page-4#post-8113092
Thank you!
Yeah, that was 01006a600623e000: 70010000001564 - Yodanji. Not sure why it slipped through my script.

--------------------- MERGED ---------------------------

even game updates require a console unique cert?
because game update are not console unique, the ticket is generic (like wiiu, unlike 3ds)
anyway, this is really cool! very happy thanks :)
Like I said in the OP, TIK and CERT are directly downloaded from Nintendo in the case of updates.
Downloading anything REQUIRES a console-unique cert. Updates, Sysupdates, ...
 

Jaimy

Well-Known Member
Member
Joined
Dec 2, 2016
Messages
135
Trophies
0
Age
43
XP
417
Country
United States
I get module not found error for 'requests' and 'urllib3' despite having installed required packages.
 

huma_dawii

Well-Known Member
Member
Joined
Apr 3, 2014
Messages
3,880
Trophies
2
Age
33
Location
Planet Earth
XP
4,275
Country
United States
Files are already downloaded as NCA (that's what the CDN returns). The script will let them sit in your folder.

So I can download an update and all I will get is one .nca? Cause I need that to merge them with the stockgame.nca and get an updated romfs.bin for LAYEREDFS
 
D

Deleted-451877

Guest
OP
So I can download an update and all I will get is one .nca? Cause I need that to merge them with the stockgame.nca and get an updated romfs.bin for LAYEREDFS
Merging NCA's is technically impossible. Downloading an update will get you several NCA's.
 
  • Like
Reactions: theweirdojerry
D

Deleted-451877

Guest
OP
Working great here, thanks very much.
Cool, good to know.
While we're at it, it's technically possible to add 'support' for pfx certs by converting them in a tempfile everytime the script is launched. I didn't add it because it would bloat you AppData/Local/Temp folder.
I'm also looking at listing available DLC's when printing info about a file.
 
  • Like
Reactions: theweirdojerry

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • S @ salazarcosplay:
    hunter x hunter
  • S @ salazarcosplay:
    he has not allowed anyone to continue it for him for example
  • Xdqwerty @ Xdqwerty:
    @salazarcosplay, theres a dragon ball af mod for budokai 3
  • Xdqwerty @ Xdqwerty:
    updated ship of harkinian, gonna install some hd texture pack
  • Xdqwerty @ Xdqwerty:
    I might download rayman revolution for my ps3
  • BigOnYa @ BigOnYa:
    I may try the new ram site, and download more RAM to my Switch. Not sure if ddr3 is the right ram
    for it tho. Edit- no it uses floppy Ram, just like @AncientBoi
    +1
  • Xdqwerty @ Xdqwerty:
    aeiou
  • BigOnYa @ BigOnYa:
    And sometimes Z
  • SylverReZ @ SylverReZ:
    @K3Nv2, MAGA supporters be wearing tin foil hats lol.
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, whats maga?
  • BigOnYa @ BigOnYa:
    It stands for Maniacs Against General Acceptance
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, people rejecting general consensus about stuff?
    +1
  • BigOnYa @ BigOnYa:
    Yup, nuh its really just Trump followers
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, im not american so i dont care about trump
    +1
  • Xdqwerty @ Xdqwerty:
    or us elections
  • BigOnYa @ BigOnYa:
    Me niether, us north Koreans don't care
  • Xdqwerty @ Xdqwerty:
    good night
  • BakerMan @ BakerMan:
    i don't care either, even if i'm american
  • BakerMan @ BakerMan:
    truth be told, i agree with psi, i dislike both candidates, but i'd probably vote trump simply because the economy was better during his presidency
  • AngryCinnabon @ AngryCinnabon:
    Just be careful, if trump ends up winning and using project 2025 America might really change...for the worse.
  • AngryCinnabon @ AngryCinnabon:
    I'm not american and even that sends shivers down my spine.
  • AngryCinnabon @ AngryCinnabon:
    anything that offers trump an opportunity to become an actual dictator
    is bad in my book, i could care less if it wasn't for that...
  • K3Nv2 @ K3Nv2:
    Canada: America's Russia
  • NinStar @ NinStar:
    people are so dramatic that I can't even tell if they are being serious
    NinStar @ NinStar: people are so dramatic that I can't even tell if they are being serious