Git Product home page Git Product logo

nustool's Introduction

nustool

nustool is a simple downloader and decryptor for titles on the Nintendo Update Servers (NUS).

Usage

Usage: nustool [-cDmpr] [-k decrypted_key] [-K encrypted_key]
       [-V version] titleid

Downloads and optionally decrypts a title from NUS.

 -c              try to decrypt the title using the CETK key
 -D              if decrypting the title using the CETK key, use the
                 development common key to decrypt the titlekey
 -k [key]        the titlekey to use to decrypt the contents
 -K [key]        the encrypted titlekey to use to decrypt the contents
 -h              print this help and exit
 -l              download files to local directory instead of /tid/ver/
 -m              keep meta files (cetk, tmd); usable with make_cdn_cia
 -p              show progress bars
 -r              resume download
 -v              print nustool version and exit
 -V [version]    the version of the title to download; if not given,
                 the latest version will be downloaded

If none of -c, -k and -K are given, the raw encrypted contents
will be downloaded.

All files are downloaded into a titleid/version directory.

Building

Copy config.mk.template to config.mk and then run make.

To build under windows, you will need to build libcurl, libgpgerror, and libgcrypt. I recommend using MinGW.

Environment Variables

You can set the NUSTOOL_BASE_URL environment variable to point to a different CDN (e.g. for a local mirror). If not set, it'll default to http://ccs.cdn.c.shop.nintendowifi.net/ccs/download.

Examples

Downloading the raw encrypted contents of title 0004001b00010002

$ nustool 0004001b00010002

Downloading and decrypting a system title

For system titles, you can pass -c to have them automatically be decrypted using each system's common key. Note that this is not possible for 3DS system titles as the required common keyX (or rather, the bootroms) has not yet been dumped.

$ nustool -c 0003000f484e4c45

Downloading and decrypting title 0006000012345678 with the encrypted titlekey 0123456789abcdef0123456789abcdef

$ nustool -K 0123456789abcdef0123456789abcdef 0006000012345678

Downloading and decrypting title 0006000012345678 with the decrypted titlekey abcdef0123456789abcdef0123456789

$ nustool -k abcdef0123456789abcdef0123456789 0006000012345678

Downloading and decrypting system title 00030017484e414a, displaying a progress bar for each file, version 1280

$ nustool -cpV 1280 00030017484e414a

Licensing

This software is licensed under the terms of the ISC License.
You can find a copy of the license in the LICENSE file.

nustool's People

Contributors

ihaveamac avatar plailect avatar sciresm avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.