Advertisement
Guest User

ctr-savetool

a guest
Jul 24th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. ctr-savetool by yellows8
  2. Tool for generating a Nintendo 3DS savegame MAC and xorpad.
  3. Usage:
  4. --serveradr=<addr> Use the specified server address instead of the default address.
  5. --useserver=<val> This specified whether to use the server. When this is zero, the hashes and keyY are generated, without using the server for the MAC/xorpad generation.
  6.  
  7. --insave=<path> Input savegame, required when using options --genmac or --decblocks.
  8. --ncch=<path> NCCH to load the 8-byte cleartext accessdesc signature from, for the keyY.
  9. --genxorpad=<path> Generate the save xorpad, and optionally write the xorpad to <path>.
  10. --xorpadsize=<hex-size> Size of the xorpad to generate, when --genxorpad was specified.
  11. --saveid=<hex> SaveID, required for non-gamecard savegames(also required for gamecard v6.0 save crypto).
  12. --imgid=<hex> ImageID, used for extdata when generating the MAC.
  13.  
  14. --genmac Generate the MAC.
  15. --writemac Write the calculated MAC to the save, when the save MAC and generated MAC don't match.
  16. --decblocks Decrypt the second and third AES blocks from the input savegame with AES-CBC IV=0, for retrieving the CTR used for each block.
  17. --gamecard Process a gamecard savegame, this is the default save-type.
  18. --nandsave Process a NAND savegame, only MAC generation is supported for this.
  19. --extdata Process an extdata image, MAC generation is not supported for Quota.dat.
  20. --sdsave Process a SD /title savegame.
  21. --dbsave=<sd|nand> Process a DB /dbs extdata image.
  22.  
  23. --accessdescsig=<hex> 8-byte cleartext accessdesc signature, for the keyY.
  24. --romid=<hex> Specify the 4-byte/8-byte ID stored at keyY+8, or the 0x10-byte romID used for generating the keyY.
  25. --keyY=<hex> Raw keyY to use for the savegame.
  26. --CTR=<hex> Raw CTR to use for the savegame.
  27. --imgpath=<path> SD card path to generate the CTR from.
  28. --exefscodehash=<hex> Hash of the ExeFS .code from the main CXI ExeFS header, for the v6.0 save crypto.
  29. --genv60keys=<rsamodulopath> Calculate the v6.0/v7.0 keys for savedata keyY generation and NCCH crypto. If the input file is larger than 0x100-bytes, this will then calculate the keys using the modulus loaded from each byte in the input file.
  30. --rsaexponent=<big-endian hex u32 exponent> Sets the RSA exponent used for the above v6.0+ key generation. The value of this parameter can also be <@filepath>, to load the exponent from a file.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement