nstool/programs/nstool
2018-08-07 13:28:06 +08:00
..
source [nstool] Add usage text about --cert 2018-08-06 20:20:06 +08:00
makefile Take out non-ticket code from libes into new libpki. 2018-08-06 16:59:56 +08:00
nstool.vcxproj Updated layout of project files. 2018-08-07 13:28:06 +08:00
nstool.vcxproj.filters Update VS Project Files. 2018-08-06 20:23:01 +08:00
nstool.vcxproj.user Update VS project files. 2018-06-02 11:17:53 +08:00
README.md Update readmes. 2018-08-07 11:47:44 +08:00

Nintendo Switch Tool (NSTool) DeviceTag

General purpose reading/extration tool for Nintendo Switch file formats.

Supported File Formats

  • NPDM (.npdm)
  • PartitionFS (and HashedPartitionFS) (includes raw .nsp)
  • RomFS
  • GameCard Image (.xci)
  • Nintendo Content Archive (.nca)
  • Content Metadata (.cnmt)
  • Nintendo Software Object (.nso)
  • Nintendo Relocatable Software Object (.nro)
  • Nintendo Application Control Property (.nacp)
  • ES Ticket (v2 only) (.tik)
  • PKI Certificate (.cert)

Usage

Usage: nstool [options... ] <file>

  General Options:
      -d, --dev       Use devkit keyset.
      -k, --keyset    Specify keyset file.
      -t, --type      Specify input file type. [xci, pfs, romfs, nca, npdm, cnmt, nso, nro, nacp, aset, cert, tik]
      -y, --verify    Verify file.

  Output Options:
      --showkeys      Show keys generated.
      --showlayout    Show layout metadata.
      -v, --verbose   Verbose output.

  XCI (GameCard Image)
    nstool [--listfs] [--update <dir> --logo <dir> --normal <dir> --secure <dir>] <.xci file>
      --listfs        Print file system in embedded partitions.
      --update        Extract "update" partition to directory.
      --logo          Extract "logo" partition to directory.
      --normal        Extract "normal" partition to directory.
      --secure        Extract "secure" partition to directory.

  PFS0/HFS0 (PartitionFs), RomFs, NSP (Ninendo Submission Package)
    nstool [--listfs] [--fsdir <dir>] <file>
      --listfs        Print file system.
      --fsdir         Extract file system to directory.

  NCA (Nintendo Content Archive)
    nstool [--listfs] [--bodykey <key> --titlekey <key>] [--part0 <dir> ...] <.nca file>
      --listfs        Print file system in embedded partitions.
      --titlekey      Specify title key extracted from ticket.
      --bodykey       Specify body encryption key.
      --tik           Specify ticket to source title key.
      --part0         Extract "partition 0" to directory.
      --part1         Extract "partition 1" to directory.
      --part2         Extract "partition 2" to directory.
      --part3         Extract "partition 3" to directory.

  NSO (Nintendo Software Object), NRO (Nintendo Relocatable Object)
    nstool [--listapi --listsym] [--insttype <inst. type>] <file>
      --listapi       Print SDK API List.
      --listsym       Print Code Symbols.
      --insttype      Specify instruction type [64bit|32bit] (64bit is assumed).

  ASET (Homebrew Asset Blob)
    nstool [--listfs] [--icon <file> --nacp <file> --fsdir <dir>] <file>
      --listfs        Print filesystem in embedded RomFS partition.
      --icon          Extract icon partition to file.
      --nacp          Extract NACP partition to file.
      --fsdir         Extract RomFS partition to directory.

External Keys

NSTool doesn't embed any keys that are copyright protected. However keys can be imported via various keyset files.

See SWITCH_KEYS.md for more info.