Skip to content

Instantly share code, notes, and snippets.

@willfaust
Last active September 6, 2024 16:00
Show Gist options
  • Save willfaust/fb90dec409b8918290012031f09a78ef to your computer and use it in GitHub Desktop.
Save willfaust/fb90dec409b8918290012031f09a78ef to your computer and use it in GitHub Desktop.

NSP Update Patcher

Instructions:

  1. Place your base NSP, update NSP, and prod.keys into a new folder
  2. Open a terminal and cd into this folder
  3. Download and run script:
curl -o nsp_update_patcher.sh https://gist.githubusercontent.com/willfaust/fb90dec409b8918290012031f09a78ef/raw/9abf2e1b020203aec0051fad99524f8269cb1edd/nsp_update_patcher.sh && chmod +x nsp_update_patcher.sh && ./nsp_update_patcher.sh

Notice:

  • This script assumes that the larger NSP is the base, and the smaller NSP is the update
  • Your free drive space should be at least three times the size of your base and update NSPs combined
  • You must have your product keys dumped from your switch

Credit to hactool and hacPack

# find base and update NSPs
basensp=$(ls -S *.nsp | head -1)
updatensp=$(ls -Sr *.nsp | head -1)
# clone and build hactool and hacpack
git clone https://github.com/SciresM/hactool
mv hactool hactoolsrc
cd hactoolsrc
mv config.mk.template config.mk
make
mv hactool ..
cd ..
rm -rf hactoolsrc
git clone https://github.com/The-4n/hacPack
mv hacPack hacpacksrc
cd hacpacksrc
mv config.mk.template config.mk
make
mv hacpack ..
cd ..
rm -rf hacpacksrc
mkdir -p ~/.switch
cp prod.keys ~/.switch
touch ~/.switch/title.keys
mkdir temp hactool_out
cd hactool_out
# derive title keys from base and update NSPs
derivekey () {
title=$(xxd *.tik | grep -oP -m 1 "(?<=2a0: ).{39}" | sed 's/ //g')
key=$(xxd *.tik | grep -oP -m 1 "(?<=180: ).{39}" | sed 's/ //g')
sed -i "/$title=$key/d" ~/.switch/title.keys
echo $title=$key >> ~/.switch/title.keys
}
../hactool -t pfs0 "../$basensp" --outdir .
derivekey
rm *
../hactool -t pfs0 "../$updatensp" --outdir .
derivekey
rm *
# extract base NSP and move program NCA to temp dir
../hactool -t pfs0 "../$basensp" --outdir .
for i in *.nca
do
type=$(../hactool $i | grep -oP "(?<=Content Type:\s{23}).*")
if [ $type == "Program" ]; then
basenca=$i
mv $i ../temp
fi
done
rm *
# extract update NSP and move program & control NCAs to temp dir
../hactool -t pfs0 "../$updatensp" --outdir .
for i in *.nca
do
type=$(../hactool $i | grep -oP "(?<=Content Type:\s{23}).*")
if [ $type == "Program" ]; then
updatenca=$i
mv $i ../temp
elif [ $type == "Control" ]; then
controlnca=$i
mv $i ../temp
fi
done
rm *
cd ..
rm -rf hactool_out
mv hactool temp/
mv hacpack temp/
cd temp
# parse Title ID from base program NCA
titleid=$(./hactool $basenca | grep -oP "(?<=Title ID:\s{27}).*")
# extract base and update NCAs into romfs end exefs
mkdir exefs romfs
./hactool --basenca="$basenca" $updatenca --romfsdir="romfs" --exefsdir="exefs"
rm $basenca $updatenca
# pack romfs and exefs into one NCA
mkdir nca
./hacpack --type="nca" --ncatype="program" --plaintext --exefsdir="exefs" --romfsdir="romfs" --titleid="$titleid" --outdir="nca"
patchednca=$(ls nca)
mv $controlnca nca
rm -rf exefs romfs
# generate meta NCA from patched NCA and control NCA
./hacpack --type="nca" --ncatype="meta" --titletype="application" --programnca="nca/$patchednca" --controlnca="nca/$controlnca" --titleid="$titleid" --outdir="nca"
# pack all three NCAs into an NSP
mkdir nsp
./hacpack --type="nsp" --ncadir="nca" --titleid="$titleid" --outdir="nsp"
cd ..
mv temp/nsp/$titleid.nsp ./$titleid[patched].nsp
rm -rf temp
@sminato27
Copy link

"smina@DESKTOP-6SSH3J7:$ chmod +x ./nsp_update_patcher.sh
smina@DESKTOP-6SSH3J7:
$ sudo ./nsp_update_patcher.sh
Cloning into 'hactool'...
remote: Enumerating objects: 1805, done.
remote: Counting objects: 100% (73/73), done.
remote: Compressing objects: 100% (41/41), done.
remote: Total 1805 (delta 32), reused 65 (delta 28), pack-reused 1732
Receiving objects: 100% (1805/1805), 2.76 MiB | 467.00 KiB/s, done.
Resolving deltas: 100% (853/853), done.
make -C mbedtls lib
make[1]: Entering directory '/home/smina/hactoolsrc/mbedtls'
make[2]: Entering directory '/home/smina/hactoolsrc/mbedtls/library'
CC aes.c
CC aesni.c
CC arc4.c
CC asn1parse.c
CC asn1write.c
CC base64.c
CC bignum.c
CC blowfish.c
CC camellia.c
CC ccm.c
CC cipher.c
CC cipher_wrap.c
CC cmac.c
CC ctr_drbg.c
CC des.c
CC dhm.c
CC ecdh.c
CC ecdsa.c
CC ecjpake.c
CC ecp.c
CC ecp_curves.c
CC entropy.c
CC entropy_poll.c
CC error.c
CC gcm.c
CC gf128mul.c
CC havege.c
CC hmac_drbg.c
CC md.c
CC md2.c
CC md4.c
CC md5.c
CC md_wrap.c
CC memory_buffer_alloc.c
CC oid.c
CC padlock.c
CC pem.c
CC pk.c
CC pk_wrap.c
CC pkcs12.c
CC pkcs5.c
CC pkparse.c
CC pkwrite.c
CC platform.c
CC ripemd160.c
CC rsa.c
CC sha1.c
CC sha256.c
CC sha512.c
CC threading.c
CC timing.c
CC version.c
CC version_features.c
CC xtea.c
AR libmbedcrypto.a
RL libmbedcrypto.a
CC certs.c
CC pkcs11.c
CC x509.c
CC x509_create.c
CC x509_crl.c
CC x509_crt.c
CC x509_csr.c
CC x509write_crt.c
CC x509write_csr.c
AR libmbedx509.a
RL libmbedx509.a
CC debug.c
CC net_sockets.c
CC ssl_cache.c
CC ssl_ciphersuites.c
CC ssl_cli.c
CC ssl_cookie.c
CC ssl_srv.c
CC ssl_ticket.c
CC ssl_tls.c
AR libmbedtls.a
RL libmbedtls.a
make[2]: Leaving directory '/home/smina/hactoolsrc/mbedtls/library'
make[1]: Leaving directory '/home/smina/hactoolsrc/mbedtls'
make hactool
make[1]: Entering directory '/home/smina/hactoolsrc'
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o save.o save.c
save.c: In function ‘save_remap_read’:
save.c:128:17: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
128 | fread((uint8_t *)buffer + out_pos, bytes_to_read, 1, ctx->file);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
save.c: In function ‘save_process’:
save.c:654:9: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
654 | fread(&ctx->data_remap_storage.map_entries[i], 0x20, 1, ctx->file);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
save.c:699:9: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
699 | fread(&ctx->meta_remap_storage.map_entries[i], 0x20, 1, ctx->file);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o sha.o sha.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o aes.o aes.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o extkeys.o extkeys.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o rsa.o rsa.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o npdm.o npdm.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o bktr.o bktr.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o kip.o kip.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o packages.o packages.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o pki.o pki.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o pfs0.o pfs0.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o hfs0.o hfs0.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o nca0_romfs.o nca0_romfs.c
nca0_romfs.c: In function ‘nca0_romfs_print’:
nca0_romfs.c:141:41: warning: unused parameter ‘ctx’ [-Wunused-parameter]
141 | void nca0_romfs_print(nca0_romfs_ctx_t *ctx) {
| ~~~~~~~~~~~~~~~~~~^~~
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o romfs.o romfs.c
romfs.c: In function ‘romfs_print’:
romfs.c:140:31: warning: unused parameter ‘ctx’ [-Wunused-parameter]
140 | void romfs_print(romfs_ctx_t *ctx) {
| ~~~~~~~~~~~~~^~~
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o utils.o utils.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o nax0.o nax0.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o nso.o nso.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o lz4.o lz4.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o nca.o nca.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o xci.o xci.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o main.o main.c
main.c: In function ‘usage’:
main.c:112:9: warning: string length ‘5108’ is greater than the length ‘4095’ ISO C99 compilers are required to support [-Woverlength-strings]
112 | "\n", TIME, DATE, prog_name);
| ^~~~
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o filepath.o filepath.c
In file included from /usr/include/string.h:495,
from filepath.c:4:
In function ‘strncpy’,
inlined from ‘filepath_set’ at filepath.c:109:9:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 1023 equals destination size [-Wstringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o ConvertUTF.o ConvertUTF.c
ConvertUTF.c: In function ‘ConvertUTF16toUTF8’:
ConvertUTF.c:270:72: warning: this statement may fall through [-Wimplicit-fallthrough=]
270 | case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
| ~~~^~~~~
ConvertUTF.c:271:13: note: here
271 | case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
| ^~~~
ConvertUTF.c:271:72: warning: this statement may fall through [-Wimplicit-fallthrough=]
271 | case 3: --target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
| ~~~^~~~~
ConvertUTF.c:272:13: note: here
272 | case 2: --target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
| ^~~~
ConvertUTF.c:272:72: warning: this statement may fall through [-Wimplicit-fallthrough=]
272 | case 2: --target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
| ~~~^~~~~
ConvertUTF.c:273:13: note: here
273 | case 1: --target = (UTF8)(ch | firstByteMark[bytesToWrite]);
| ^~~~
ConvertUTF.c: In function ‘isLegalUTF8’:
ConvertUTF.c:301:42: warning: this statement may fall through [-Wimplicit-fallthrough=]
301 | case 4: if ((a = (
--srcptr)) < 0x80 || a > 0xBF) return false;
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
ConvertUTF.c:302:5: note: here
302 | case 3: if ((a = (
--srcptr)) < 0x80 || a > 0xBF) return false;
| ^~~~
ConvertUTF.c:302:42: warning: this statement may fall through [-Wimplicit-fallthrough=]
302 | case 3: if ((a = (
--srcptr)) < 0x80 || a > 0xBF) return false;
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
ConvertUTF.c:303:5: note: here
303 | case 2: if ((a = (
--srcptr)) > 0xBF) return false;
| ^~~~
ConvertUTF.c:305:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
305 | switch (*source) {
| ^~~~~~
ConvertUTF.c:314:5: note: here
314 | case 1: if (*source >= 0x80 && *source < 0xC2) return false;
| ^~~~
ConvertUTF.c: In function ‘ConvertUTF8toUTF16’:
ConvertUTF.c:357:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
357 | case 5: ch += source++; ch <<= 6; / remember, illegal UTF-8 */
| ~~~^~~~~
ConvertUTF.c:358:13: note: here
358 | case 4: ch += source++; ch <<= 6; / remember, illegal UTF-8 */
| ^~~~
ConvertUTF.c:358:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
358 | case 4: ch += source++; ch <<= 6; / remember, illegal UTF-8 */
| ~~~^~~~~
ConvertUTF.c:359:13: note: here
359 | case 3: ch += *source++; ch <<= 6;
| ^~~~
ConvertUTF.c:359:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
359 | case 3: ch += *source++; ch <<= 6;
| ~~~^~~~~
ConvertUTF.c:360:13: note: here
360 | case 2: ch += *source++; ch <<= 6;
| ^~~~
ConvertUTF.c:360:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
360 | case 2: ch += *source++; ch <<= 6;
| ~~~^~~~~
ConvertUTF.c:361:13: note: here
361 | case 1: ch += *source++; ch <<= 6;
| ^~~~
ConvertUTF.c:361:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
361 | case 1: ch += *source++; ch <<= 6;
| ~~~^~~~~
ConvertUTF.c:362:13: note: here
362 | case 0: ch += *source++;
| ^~~~
ConvertUTF.c: In function ‘ConvertUTF32toUTF8’:
ConvertUTF.c:448:72: warning: this statement may fall through [-Wimplicit-fallthrough=]
448 | case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
| ~~~^~~~~
ConvertUTF.c:449:13: note: here
449 | case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
| ^~~~
ConvertUTF.c:449:72: warning: this statement may fall through [-Wimplicit-fallthrough=]
449 | case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
| ~~~^~~~~
ConvertUTF.c:450:13: note: here
450 | case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
| ^~~~
ConvertUTF.c:450:72: warning: this statement may fall through [-Wimplicit-fallthrough=]
450 | case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
| ~~~^~~~~
ConvertUTF.c:451:13: note: here
451 | case 1: *--target = (UTF8) (ch | firstByteMark[bytesToWrite]);
| ^~~~
ConvertUTF.c: In function ‘ConvertUTF8toUTF32’:
ConvertUTF.c:483:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
483 | case 5: ch += *source++; ch <<= 6;
| ~~~^~~~~
ConvertUTF.c:484:13: note: here
484 | case 4: ch += *source++; ch <<= 6;
| ^~~~
ConvertUTF.c:484:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
484 | case 4: ch += *source++; ch <<= 6;
| ~~~^~~~~
ConvertUTF.c:485:13: note: here
485 | case 3: ch += *source++; ch <<= 6;
| ^~~~
ConvertUTF.c:485:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
485 | case 3: ch += *source++; ch <<= 6;
| ~~~^~~~~
ConvertUTF.c:486:13: note: here
486 | case 2: ch += *source++; ch <<= 6;
| ^~~~
ConvertUTF.c:486:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
486 | case 2: ch += *source++; ch <<= 6;
| ~~~^~~~~
ConvertUTF.c:487:13: note: here
487 | case 1: ch += *source++; ch <<= 6;
| ^~~~
ConvertUTF.c:487:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
487 | case 1: ch += *source++; ch <<= 6;
| ~~~^~~~~
ConvertUTF.c:488:13: note: here
488 | case 0: ch += *source++;
| ^~~~
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o cJSON.o cJSON.c
gcc -o hactool save.o sha.o aes.o extkeys.o rsa.o npdm.o bktr.o kip.o packages.o pki.o pfs0.o hfs0.o nca0_romfs.o romfs.o utils.o nax0.o nso.o lz4.o nca.o xci.o main.o filepath.o ConvertUTF.o cJSON.o -L ./mbedtls/library -lmbedtls -lmbedx509 -lmbedcrypto
make[1]: Leaving directory '/home/smina/hactoolsrc'
Cloning into 'hacPack'...
remote: Enumerating objects: 1435, done.
remote: Total 1435 (delta 0), reused 0 (delta 0), pack-reused 1435
Receiving objects: 100% (1435/1435), 2.52 MiB | 1.21 MiB/s, done.
Resolving deltas: 100% (555/555), done.
cd mbedtls && make lib
make[1]: Entering directory '/home/smina/hacpacksrc/mbedtls'
make[2]: Entering directory '/home/smina/hacpacksrc/mbedtls/library'
CC aes.c
CC aesni.c
CC arc4.c
CC asn1parse.c
CC asn1write.c
CC base64.c
CC bignum.c
CC blowfish.c
CC camellia.c
CC ccm.c
CC cipher.c
CC cipher_wrap.c
CC cmac.c
CC ctr_drbg.c
CC des.c
CC dhm.c
CC ecdh.c
CC ecdsa.c
CC ecjpake.c
CC ecp.c
CC ecp_curves.c
CC entropy.c
CC entropy_poll.c
CC error.c
CC gcm.c
CC gf128mul.c
CC havege.c
CC hmac_drbg.c
CC md.c
CC md2.c
CC md4.c
CC md5.c
CC md_wrap.c
CC memory_buffer_alloc.c
CC oid.c
CC padlock.c
CC pem.c
CC pk.c
CC pk_wrap.c
CC pkcs12.c
CC pkcs5.c
CC pkparse.c
CC pkwrite.c
CC platform.c
CC ripemd160.c
CC rsa.c
CC sha1.c
CC sha256.c
CC sha512.c
CC threading.c
CC timing.c
CC version.c
CC version_features.c
CC xtea.c
AR libmbedcrypto.a
RL libmbedcrypto.a
CC certs.c
CC pkcs11.c
CC x509.c
CC x509_create.c
CC x509_crl.c
CC x509_crt.c
CC x509_csr.c
CC x509write_crt.c
CC x509write_csr.c
AR libmbedx509.a
RL libmbedx509.a
CC debug.c
CC net_sockets.c
CC ssl_cache.c
CC ssl_ciphersuites.c
CC ssl_cli.c
CC ssl_cookie.c
CC ssl_srv.c
CC ssl_ticket.c
CC ssl_tls.c
AR libmbedtls.a
RL libmbedtls.a
make[2]: Leaving directory '/home/smina/hacpacksrc/mbedtls/library'
make[1]: Leaving directory '/home/smina/hacpacksrc/mbedtls'
make hacpack
make[1]: Entering directory '/home/smina/hacpacksrc'
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o sha.o sha.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o aes.o aes.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o extkeys.o extkeys.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o pki.o pki.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o utils.o utils.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o main.o main.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o filepath.o filepath.c
In file included from /usr/include/string.h:495,
from filepath.c:3:
In function ‘strncpy’,
inlined from ‘filepath_set’ at filepath.c:124:9,
inlined from ‘filepath_set’ at filepath.c:118:6:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 4095 equals destination size [-Wstringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o ConvertUTF.o ConvertUTF.c
ConvertUTF.c: In function ‘ConvertUTF16toUTF8’:
ConvertUTF.c:270:72: warning: this statement may fall through [-Wimplicit-fallthrough=]
270 | case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
| ~~~^~~~~
ConvertUTF.c:271:13: note: here
271 | case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
| ^~~~
ConvertUTF.c:271:72: warning: this statement may fall through [-Wimplicit-fallthrough=]
271 | case 3: --target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
| ~~~^~~~~
ConvertUTF.c:272:13: note: here
272 | case 2: --target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
| ^~~~
ConvertUTF.c:272:72: warning: this statement may fall through [-Wimplicit-fallthrough=]
272 | case 2: --target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
| ~~~^~~~~
ConvertUTF.c:273:13: note: here
273 | case 1: --target = (UTF8)(ch | firstByteMark[bytesToWrite]);
| ^~~~
ConvertUTF.c: In function ‘isLegalUTF8’:
ConvertUTF.c:301:42: warning: this statement may fall through [-Wimplicit-fallthrough=]
301 | case 4: if ((a = (
--srcptr)) < 0x80 || a > 0xBF) return false;
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
ConvertUTF.c:302:5: note: here
302 | case 3: if ((a = (
--srcptr)) < 0x80 || a > 0xBF) return false;
| ^~~~
ConvertUTF.c:302:42: warning: this statement may fall through [-Wimplicit-fallthrough=]
302 | case 3: if ((a = (
--srcptr)) < 0x80 || a > 0xBF) return false;
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
ConvertUTF.c:303:5: note: here
303 | case 2: if ((a = (
--srcptr)) > 0xBF) return false;
| ^~~~
ConvertUTF.c:305:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
305 | switch (*source) {
| ^~~~~~
ConvertUTF.c:314:5: note: here
314 | case 1: if (*source >= 0x80 && *source < 0xC2) return false;
| ^~~~
ConvertUTF.c: In function ‘ConvertUTF8toUTF16’:
ConvertUTF.c:357:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
357 | case 5: ch += source++; ch <<= 6; / remember, illegal UTF-8 */
| ~~~^~~~~
ConvertUTF.c:358:13: note: here
358 | case 4: ch += source++; ch <<= 6; / remember, illegal UTF-8 */
| ^~~~
ConvertUTF.c:358:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
358 | case 4: ch += source++; ch <<= 6; / remember, illegal UTF-8 */
| ~~~^~~~~
ConvertUTF.c:359:13: note: here
359 | case 3: ch += *source++; ch <<= 6;
| ^~~~
ConvertUTF.c:359:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
359 | case 3: ch += *source++; ch <<= 6;
| ~~~^~~~~
ConvertUTF.c:360:13: note: here
360 | case 2: ch += *source++; ch <<= 6;
| ^~~~
ConvertUTF.c:360:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
360 | case 2: ch += *source++; ch <<= 6;
| ~~~^~~~~
ConvertUTF.c:361:13: note: here
361 | case 1: ch += *source++; ch <<= 6;
| ^~~~
ConvertUTF.c:361:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
361 | case 1: ch += *source++; ch <<= 6;
| ~~~^~~~~
ConvertUTF.c:362:13: note: here
362 | case 0: ch += *source++;
| ^~~~
ConvertUTF.c: In function ‘ConvertUTF32toUTF8’:
ConvertUTF.c:448:72: warning: this statement may fall through [-Wimplicit-fallthrough=]
448 | case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
| ~~~^~~~~
ConvertUTF.c:449:13: note: here
449 | case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
| ^~~~
ConvertUTF.c:449:72: warning: this statement may fall through [-Wimplicit-fallthrough=]
449 | case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
| ~~~^~~~~
ConvertUTF.c:450:13: note: here
450 | case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
| ^~~~
ConvertUTF.c:450:72: warning: this statement may fall through [-Wimplicit-fallthrough=]
450 | case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
| ~~~^~~~~
ConvertUTF.c:451:13: note: here
451 | case 1: *--target = (UTF8) (ch | firstByteMark[bytesToWrite]);
| ^~~~
ConvertUTF.c: In function ‘ConvertUTF8toUTF32’:
ConvertUTF.c:483:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
483 | case 5: ch += *source++; ch <<= 6;
| ~~~^~~~~
ConvertUTF.c:484:13: note: here
484 | case 4: ch += *source++; ch <<= 6;
| ^~~~
ConvertUTF.c:484:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
484 | case 4: ch += *source++; ch <<= 6;
| ~~~^~~~~
ConvertUTF.c:485:13: note: here
485 | case 3: ch += *source++; ch <<= 6;
| ^~~~
ConvertUTF.c:485:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
485 | case 3: ch += *source++; ch <<= 6;
| ~~~^~~~~
ConvertUTF.c:486:13: note: here
486 | case 2: ch += *source++; ch <<= 6;
| ^~~~
ConvertUTF.c:486:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
486 | case 2: ch += *source++; ch <<= 6;
| ~~~^~~~~
ConvertUTF.c:487:13: note: here
487 | case 1: ch += *source++; ch <<= 6;
| ^~~~
ConvertUTF.c:487:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
487 | case 1: ch += *source++; ch <<= 6;
| ~~~^~~~~
ConvertUTF.c:488:13: note: here
488 | case 0: ch += *source++;
| ^~~~
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o nca.o nca.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o romfs.o romfs.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o pfs0.o pfs0.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o ivfc.o ivfc.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o nacp.o nacp.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o npdm.o npdm.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o cnmt.o cnmt.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o ticket.o ticket.c
gcc -I ./mbedtls/include -c -O2 -Wall -Wextra -pedantic -std=gnu11 -fPIC -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D__USE_MINGW_ANSI_STDIO=1 -D_FILE_OFFSET_BITS=64 -o rsa.o rsa.c
gcc -o hacpack sha.o aes.o extkeys.o pki.o utils.o main.o filepath.o ConvertUTF.o nca.o romfs.o pfs0.o ivfc.o nacp.o npdm.o cnmt.o ticket.o rsa.o -lmbedtls -lmbedx509 -lmbedcrypto -L ./mbedtls/library
make[1]: Leaving directory '/home/smina/hacpacksrc'
[WARN]: Failed to match key "bis_kek_source", (value "34c1a0c48258f8b4fa9e5e6adafc7e4f")
[WARN]: Failed to match key "bis_key_00", (value "4a4b4063d4a5f145880c36b8cd139f932ae42b473b902a734d3c6e7f2b7b000b")
[WARN]: Failed to match key "bis_key_01", (value "db8f185c5441ee394e81c0325e7fd1d7e3a2e3ce9a68029c400961e312ac81a5")
[WARN]: Failed to match key "bis_key_02", (value "cc0977c8b258511c0f6a1d0827e4aa127fd04d09ef895bcc2a303dc04e88cc0e")
[WARN]: Failed to match key "bis_key_03", (value "cc0977c8b258511c0f6a1d0827e4aa127fd04d09ef895bcc2a303dc04e88cc0e")
[WARN]: Failed to match key "bis_key_source_00", (value "f83f386e2cd2ca32a89ab9aa29bfc7487d92b03aa8bfdee1a74c3b6e35cb7106")
[WARN]: Failed to match key "bis_key_source_01", (value "41003049ddccc065647a7eb41eed9c5f44424edab49dfcd98777249adc9f7ca4")
[WARN]: Failed to match key "bis_key_source_02", (value "52c2e9eb09e3ee2932a10c1fb6a0926c4d12e14b2a474c1c09cb0359f015f4e4")
[WARN]: Failed to match key "device_key", (value "c8c0453eb3d24f6930dfa9ebcd2437fd")
[WARN]: Failed to match key "device_key_4x", (value "21f208fe4c14d1695f5b46c8985dc5c3")
[WARN]: Failed to match key "eticket_rsa_kek", (value "19c8b441d318802bad63a5beda283a84")
[WARN]: Failed to match key "eticket_rsa_kek_source", (value "dba451124ca0a9836814f5ed95e3125b")
[WARN]: Failed to match key "eticket_rsa_kekek_source", (value "466e57b74a447f02f321cde58f2f5535")
[WARN]: Failed to match key "eticket_rsa_keypair", (value "184760334fb5338a32de59a2cae96024acf0f5e3265159ff975ee60ef65d27267b807e40224c08bc92808489c80b0b0d63d30ce459e49aff605ea74ec2d5b48a130efec2ed3d09cb0e6e705f09083ff6416567e157667262e9cc0420dfe2dbc0784bd30941248bc0707a30a7c38d2eee5006c89e42bbfdd1c709ddf9e5c482b69b493d9ccfc0577788199715a30dbf95acd15e1391fe4780d0df390f81ed6b3226f5c621a760f9438ac772dc729a84bb721d8b0dbab27e3aeb66e424e3e326064de49bff8c67133d551a78f1a6d554fc84d348ba6d1d3033f9b355f65fcd38d0e36dc1f8c9a2c8f85bd9d824625335b98f5c35a745166a598c227e275b1ca04d8024ca592fd23708e4f0fb0e0d28343e8864d56daa5e24ad20b01906aaffb8d2ad48d59a9e0d76a9a94ecc717cc514315ffb11143dc9b6a50bbb4c3ff4e061a3178bc21b416aac272d3e61f5ed39509a13d3938780018570a2462daa0720c0b68073074ccd376a81af5c13ea3b9a34267da976abf9096460ffe3bc0ab72b3e5a85e0644a13f2f6ddd7927374cec0248fd023f31d7d9757de8b8899e0141a4921c18371bf2dc87f6b73b1761e9a2665570f57b97e623e4390c59c825c0d4ff3592442779a44d01d26fb35af25db6d3f7d13b6e888d9a0aceb9ee45ad4ef3d1052c996a24e62df143290a12a34a6e05c7d440ba60b9")
[WARN]: Failed to match key "retail_specific_aes_key_source", (value "e2d6b87a119cb880e822888a46fba195")
[WARN]: Failed to match key "rsa_oaep_kek_generation_source", (value "a8ca938434127fda82cc1aa5e807b112")
[WARN]: Failed to match key "rsa_private_kek_generation_source", (value "ef2cb61a56729b9157c38b9316784ddd")
[WARN]: Failed to match key "save_mac_key", (value "9dae284ac051d6084f0ae534cdbd7dfe")
[WARN]: Failed to match key "save_mac_sd_card_kek_source", (value "0489ef5d326e1a59c4b7ab8c367aab17")
[WARN]: Failed to match key "save_mac_sd_card_key_source", (value "6f645947c56146f9ffa045d595332918")
[WARN]: Failed to match key "sd_card_custom_storage_key_source", (value "370c345e12e4cefe21b58e64db52af354f2ca5a3fc999a47c03ee004485b2fd0")
[WARN]: Failed to match key "sd_seed", (value "36823a8d3a07cbaf69969dc0cd55de73")
[WARN]: Failed to match key "ssl_rsa_kek", (value "b011100660d1dccbad1b1b733afa9f95")
[WARN]: Failed to match key "ssl_rsa_kek_source_x", (value "7f5bb0847b25aa67fac84be23d7b6903")
[WARN]: Failed to match key "ssl_rsa_kek_source_y", (value "9a383bf431d0bd8132534ba964397de3")

PFS0:
Magic: PFS0
Number of files: 7
Files: pfs0:/0100698009c6e0000000000000000008.cert 000000000000-000000000700
pfs0:/0100698009c6e0000000000000000008.tik 000000000700-0000000009c0
pfs0:/365bc352569f1d9e9c5861e49f6fcb0b.nca 0000000009c0-0000000293c0
pfs0:/59e40b54427ca3fed760656d118745e2.nca 0000000293c0-0000000e9bc0
pfs0:/63aab95544e2046eb1658f2109810f58.nca 0000000e9bc0-0000e3f09bc0
pfs0:/75bb4c8dcc4e0936e0d615e66a86a51d.cnmt.nca 0000e3f09bc0-0000e3f0a9c0
pfs0:/75bb4c8dcc4e0936e0d615e66a86a51d.cnmt.xml 0000e3f0a9c0-0000e3f0af3a
Saving 0100698009c6e0000000000000000008.cert to ./0100698009c6e0000000000000000008.cert...
Saving 0100698009c6e0000000000000000008.tik to ./0100698009c6e0000000000000000008.tik...
Saving 365bc352569f1d9e9c5861e49f6fcb0b.nca to ./365bc352569f1d9e9c5861e49f6fcb0b.nca...
Saving 59e40b54427ca3fed760656d118745e2.nca to ./59e40b54427ca3fed760656d118745e2.nca...
Saving 63aab95544e2046eb1658f2109810f58.nca to ./63aab95544e2046eb1658f2109810f58.nca...
Saving 75bb4c8dcc4e0936e0d615e66a86a51d.cnmt.nca to ./75bb4c8dcc4e0936e0d615e66a86a51d.cnmt.nca...
Saving 75bb4c8dcc4e0936e0d615e66a86a51d.cnmt.xml to ./75bb4c8dcc4e0936e0d615e66a86a51d.cnmt.xml...
Done!
[WARN]: Failed to match key "bis_kek_source", (value "34c1a0c48258f8b4fa9e5e6adafc7e4f")
[WARN]: Failed to match key "bis_key_00", (value "4a4b4063d4a5f145880c36b8cd139f932ae42b473b902a734d3c6e7f2b7b000b")
[WARN]: Failed to match key "bis_key_01", (value "db8f185c5441ee394e81c0325e7fd1d7e3a2e3ce9a68029c400961e312ac81a5")
[WARN]: Failed to match key "bis_key_02", (value "cc0977c8b258511c0f6a1d0827e4aa127fd04d09ef895bcc2a303dc04e88cc0e")
[WARN]: Failed to match key "bis_key_03", (value "cc0977c8b258511c0f6a1d0827e4aa127fd04d09ef895bcc2a303dc04e88cc0e")
[WARN]: Failed to match key "bis_key_source_00", (value "f83f386e2cd2ca32a89ab9aa29bfc7487d92b03aa8bfdee1a74c3b6e35cb7106")
[WARN]: Failed to match key "bis_key_source_01", (value "41003049ddccc065647a7eb41eed9c5f44424edab49dfcd98777249adc9f7ca4")
[WARN]: Failed to match key "bis_key_source_02", (value "52c2e9eb09e3ee2932a10c1fb6a0926c4d12e14b2a474c1c09cb0359f015f4e4")
[WARN]: Failed to match key "device_key", (value "c8c0453eb3d24f6930dfa9ebcd2437fd")
[WARN]: Failed to match key "device_key_4x", (value "21f208fe4c14d1695f5b46c8985dc5c3")
[WARN]: Failed to match key "eticket_rsa_kek", (value "19c8b441d318802bad63a5beda283a84")
[WARN]: Failed to match key "eticket_rsa_kek_source", (value "dba451124ca0a9836814f5ed95e3125b")
[WARN]: Failed to match key "eticket_rsa_kekek_source", (value "466e57b74a447f02f321cde58f2f5535")
[WARN]: Failed to match key "eticket_rsa_keypair", (value "184760334fb5338a32de59a2cae96024acf0f5e3265159ff975ee60ef65d27267b807e40224c08bc92808489c80b0b0d63d30ce459e49aff605ea74ec2d5b48a130efec2ed3d09cb0e6e705f09083ff6416567e157667262e9cc0420dfe2dbc0784bd30941248bc0707a30a7c38d2eee5006c89e42bbfdd1c709ddf9e5c482b69b493d9ccfc0577788199715a30dbf95acd15e1391fe4780d0df390f81ed6b3226f5c621a760f9438ac772dc729a84bb721d8b0dbab27e3aeb66e424e3e326064de49bff8c67133d551a78f1a6d554fc84d348ba6d1d3033f9b355f65fcd38d0e36dc1f8c9a2c8f85bd9d824625335b98f5c35a745166a598c227e275b1ca04d8024ca592fd23708e4f0fb0e0d28343e8864d56daa5e24ad20b01906aaffb8d2ad48d59a9e0d76a9a94ecc717cc514315ffb11143dc9b6a50bbb4c3ff4e061a3178bc21b416aac272d3e61f5ed39509a13d3938780018570a2462daa0720c0b68073074ccd376a81af5c13ea3b9a34267da976abf9096460ffe3bc0ab72b3e5a85e0644a13f2f6ddd7927374cec0248fd023f31d7d9757de8b8899e0141a4921c18371bf2dc87f6b73b1761e9a2665570f57b97e623e4390c59c825c0d4ff3592442779a44d01d26fb35af25db6d3f7d13b6e888d9a0aceb9ee45ad4ef3d1052c996a24e62df143290a12a34a6e05c7d440ba60b9")
[WARN]: Failed to match key "retail_specific_aes_key_source", (value "e2d6b87a119cb880e822888a46fba195")
[WARN]: Failed to match key "rsa_oaep_kek_generation_source", (value "a8ca938434127fda82cc1aa5e807b112")
[WARN]: Failed to match key "rsa_private_kek_generation_source", (value "ef2cb61a56729b9157c38b9316784ddd")
[WARN]: Failed to match key "save_mac_key", (value "9dae284ac051d6084f0ae534cdbd7dfe")
[WARN]: Failed to match key "save_mac_sd_card_kek_source", (value "0489ef5d326e1a59c4b7ab8c367aab17")
[WARN]: Failed to match key "save_mac_sd_card_key_source", (value "6f645947c56146f9ffa045d595332918")
[WARN]: Failed to match key "sd_card_custom_storage_key_source", (value "370c345e12e4cefe21b58e64db52af354f2ca5a3fc999a47c03ee004485b2fd0")
[WARN]: Failed to match key "sd_seed", (value "36823a8d3a07cbaf69969dc0cd55de73")
[WARN]: Failed to match key "ssl_rsa_kek", (value "b011100660d1dccbad1b1b733afa9f95")
[WARN]: Failed to match key "ssl_rsa_kek_source_x", (value "7f5bb0847b25aa67fac84be23d7b6903")
[WARN]: Failed to match key "ssl_rsa_kek_source_y", (value "9a383bf431d0bd8132534ba964397de3")

PFS0:
Magic: PFS0
Number of files: 6
Files: pfs0:/3f3e4a8eaa1dc01c16ee408ca8e3e34e.nca 000000000000-0000e2a17600
pfs0:/ed9c3b31b269dfd2acce1d7233035f9c.nca 0000e2a17600-0000e2b37800
pfs0:/8232ba50879562592905f5b5921a01c8.nca 0000e2b37800-0000e2b60200
pfs0:/4ee438ab717a113f764e495e4aacfff6.cnmt.nca 0000e2b60200-0000e2b61a00
pfs0:/0100698009c6e800000000000000000a.tik 0000e2b61a00-0000e2b61cc0
pfs0:/0100698009c6e800000000000000000a.cert 0000e2b61cc0-0000e2b623c0
Saving 3f3e4a8eaa1dc01c16ee408ca8e3e34e.nca to ./3f3e4a8eaa1dc01c16ee408ca8e3e34e.nca...
Saving ed9c3b31b269dfd2acce1d7233035f9c.nca to ./ed9c3b31b269dfd2acce1d7233035f9c.nca...
Saving 8232ba50879562592905f5b5921a01c8.nca to ./8232ba50879562592905f5b5921a01c8.nca...
Saving 4ee438ab717a113f764e495e4aacfff6.cnmt.nca to ./4ee438ab717a113f764e495e4aacfff6.cnmt.nca...
Saving 0100698009c6e800000000000000000a.tik to ./0100698009c6e800000000000000000a.tik...
Saving 0100698009c6e800000000000000000a.cert to ./0100698009c6e800000000000000000a.cert...
Done!
[WARN]: Failed to match key "bis_kek_source", (value "34c1a0c48258f8b4fa9e5e6adafc7e4f")
[WARN]: Failed to match key "bis_key_00", (value "4a4b4063d4a5f145880c36b8cd139f932ae42b473b902a734d3c6e7f2b7b000b")
[WARN]: Failed to match key "bis_key_01", (value "db8f185c5441ee394e81c0325e7fd1d7e3a2e3ce9a68029c400961e312ac81a5")
[WARN]: Failed to match key "bis_key_02", (value "cc0977c8b258511c0f6a1d0827e4aa127fd04d09ef895bcc2a303dc04e88cc0e")
[WARN]: Failed to match key "bis_key_03", (value "cc0977c8b258511c0f6a1d0827e4aa127fd04d09ef895bcc2a303dc04e88cc0e")
[WARN]: Failed to match key "bis_key_source_00", (value "f83f386e2cd2ca32a89ab9aa29bfc7487d92b03aa8bfdee1a74c3b6e35cb7106")
[WARN]: Failed to match key "bis_key_source_01", (value "41003049ddccc065647a7eb41eed9c5f44424edab49dfcd98777249adc9f7ca4")
[WARN]: Failed to match key "bis_key_source_02", (value "52c2e9eb09e3ee2932a10c1fb6a0926c4d12e14b2a474c1c09cb0359f015f4e4")
[WARN]: Failed to match key "device_key", (value "c8c0453eb3d24f6930dfa9ebcd2437fd")
[WARN]: Failed to match key "device_key_4x", (value "21f208fe4c14d1695f5b46c8985dc5c3")
[WARN]: Failed to match key "eticket_rsa_kek", (value "19c8b441d318802bad63a5beda283a84")
[WARN]: Failed to match key "eticket_rsa_kek_source", (value "dba451124ca0a9836814f5ed95e3125b")
[WARN]: Failed to match key "eticket_rsa_kekek_source", (value "466e57b74a447f02f321cde58f2f5535")
[WARN]: Failed to match key "eticket_rsa_keypair", (value "184760334fb5338a32de59a2cae96024acf0f5e3265159ff975ee60ef65d27267b807e40224c08bc92808489c80b0b0d63d30ce459e49aff605ea74ec2d5b48a130efec2ed3d09cb0e6e705f09083ff6416567e157667262e9cc0420dfe2dbc0784bd30941248bc0707a30a7c38d2eee5006c89e42bbfdd1c709ddf9e5c482b69b493d9ccfc0577788199715a30dbf95acd15e1391fe4780d0df390f81ed6b3226f5c621a760f9438ac772dc729a84bb721d8b0dbab27e3aeb66e424e3e326064de49bff8c67133d551a78f1a6d554fc84d348ba6d1d3033f9b355f65fcd38d0e36dc1f8c9a2c8f85bd9d824625335b98f5c35a745166a598c227e275b1ca04d8024ca592fd23708e4f0fb0e0d28343e8864d56daa5e24ad20b01906aaffb8d2ad48d59a9e0d76a9a94ecc717cc514315ffb11143dc9b6a50bbb4c3ff4e061a3178bc21b416aac272d3e61f5ed39509a13d3938780018570a2462daa0720c0b68073074ccd376a81af5c13ea3b9a34267da976abf9096460ffe3bc0ab72b3e5a85e0644a13f2f6ddd7927374cec0248fd023f31d7d9757de8b8899e0141a4921c18371bf2dc87f6b73b1761e9a2665570f57b97e623e4390c59c825c0d4ff3592442779a44d01d26fb35af25db6d3f7d13b6e888d9a0aceb9ee45ad4ef3d1052c996a24e62df143290a12a34a6e05c7d440ba60b9")
[WARN]: Failed to match key "retail_specific_aes_key_source", (value "e2d6b87a119cb880e822888a46fba195")
[WARN]: Failed to match key "rsa_oaep_kek_generation_source", (value "a8ca938434127fda82cc1aa5e807b112")
[WARN]: Failed to match key "rsa_private_kek_generation_source", (value "ef2cb61a56729b9157c38b9316784ddd")
[WARN]: Failed to match key "save_mac_key", (value "9dae284ac051d6084f0ae534cdbd7dfe")
[WARN]: Failed to match key "save_mac_sd_card_kek_source", (value "0489ef5d326e1a59c4b7ab8c367aab17")
[WARN]: Failed to match key "save_mac_sd_card_key_source", (value "6f645947c56146f9ffa045d595332918")
[WARN]: Failed to match key "sd_card_custom_storage_key_source", (value "370c345e12e4cefe21b58e64db52af354f2ca5a3fc999a47c03ee004485b2fd0")
[WARN]: Failed to match key "sd_seed", (value "36823a8d3a07cbaf69969dc0cd55de73")
[WARN]: Failed to match key "ssl_rsa_kek", (value "b011100660d1dccbad1b1b733afa9f95")
[WARN]: Failed to match key "ssl_rsa_kek_source_x", (value "7f5bb0847b25aa67fac84be23d7b6903")
[WARN]: Failed to match key "ssl_rsa_kek_source_y", (value "9a383bf431d0bd8132534ba964397de3")

PFS0:
Magic: PFS0
Number of files: 7
Files: pfs0:/0100698009c6e0000000000000000008.cert 000000000000-000000000700
pfs0:/0100698009c6e0000000000000000008.tik 000000000700-0000000009c0
pfs0:/365bc352569f1d9e9c5861e49f6fcb0b.nca 0000000009c0-0000000293c0
pfs0:/59e40b54427ca3fed760656d118745e2.nca 0000000293c0-0000000e9bc0
pfs0:/63aab95544e2046eb1658f2109810f58.nca 0000000e9bc0-0000e3f09bc0
pfs0:/75bb4c8dcc4e0936e0d615e66a86a51d.cnmt.nca 0000e3f09bc0-0000e3f0a9c0
pfs0:/75bb4c8dcc4e0936e0d615e66a86a51d.cnmt.xml 0000e3f0a9c0-0000e3f0af3a
Saving 0100698009c6e0000000000000000008.cert to ./0100698009c6e0000000000000000008.cert...
Saving 0100698009c6e0000000000000000008.tik to ./0100698009c6e0000000000000000008.tik...
Saving 365bc352569f1d9e9c5861e49f6fcb0b.nca to ./365bc352569f1d9e9c5861e49f6fcb0b.nca...
Saving 59e40b54427ca3fed760656d118745e2.nca to ./59e40b54427ca3fed760656d118745e2.nca...
Saving 63aab95544e2046eb1658f2109810f58.nca to ./63aab95544e2046eb1658f2109810f58.nca...
Saving 75bb4c8dcc4e0936e0d615e66a86a51d.cnmt.nca to ./75bb4c8dcc4e0936e0d615e66a86a51d.cnmt.nca...
Saving 75bb4c8dcc4e0936e0d615e66a86a51d.cnmt.xml to ./75bb4c8dcc4e0936e0d615e66a86a51d.cnmt.xml...
Done!
[WARN]: Failed to match key "bis_kek_source", (value "34c1a0c48258f8b4fa9e5e6adafc7e4f")
[WARN]: Failed to match key "bis_key_00", (value "4a4b4063d4a5f145880c36b8cd139f932ae42b473b902a734d3c6e7f2b7b000b")
[WARN]: Failed to match key "bis_key_01", (value "db8f185c5441ee394e81c0325e7fd1d7e3a2e3ce9a68029c400961e312ac81a5")
[WARN]: Failed to match key "bis_key_02", (value "cc0977c8b258511c0f6a1d0827e4aa127fd04d09ef895bcc2a303dc04e88cc0e")
[WARN]: Failed to match key "bis_key_03", (value "cc0977c8b258511c0f6a1d0827e4aa127fd04d09ef895bcc2a303dc04e88cc0e")
[WARN]: Failed to match key "bis_key_source_00", (value "f83f386e2cd2ca32a89ab9aa29bfc7487d92b03aa8bfdee1a74c3b6e35cb7106")
[WARN]: Failed to match key "bis_key_source_01", (value "41003049ddccc065647a7eb41eed9c5f44424edab49dfcd98777249adc9f7ca4")
[WARN]: Failed to match key "bis_key_source_02", (value "52c2e9eb09e3ee2932a10c1fb6a0926c4d12e14b2a474c1c09cb0359f015f4e4")
[WARN]: Failed to match key "device_key", (value "c8c0453eb3d24f6930dfa9ebcd2437fd")
[WARN]: Failed to match key "device_key_4x", (value "21f208fe4c14d1695f5b46c8985dc5c3")
[WARN]: Failed to match key "eticket_rsa_kek", (value "19c8b441d318802bad63a5beda283a84")
[WARN]: Failed to match key "eticket_rsa_kek_source", (value "dba451124ca0a9836814f5ed95e3125b")
[WARN]: Failed to match key "eticket_rsa_kekek_source", (value "466e57b74a447f02f321cde58f2f5535")
[WARN]: Failed to match key "eticket_rsa_keypair", (value "184760334fb5338a32de59a2cae96024acf0f5e3265159ff975ee60ef65d27267b807e40224c08bc92808489c80b0b0d63d30ce459e49aff605ea74ec2d5b48a130efec2ed3d09cb0e6e705f09083ff6416567e157667262e9cc0420dfe2dbc0784bd30941248bc0707a30a7c38d2eee5006c89e42bbfdd1c709ddf9e5c482b69b493d9ccfc0577788199715a30dbf95acd15e1391fe4780d0df390f81ed6b3226f5c621a760f9438ac772dc729a84bb721d8b0dbab27e3aeb66e424e3e326064de49bff8c67133d551a78f1a6d554fc84d348ba6d1d3033f9b355f65fcd38d0e36dc1f8c9a2c8f85bd9d824625335b98f5c35a745166a598c227e275b1ca04d8024ca592fd23708e4f0fb0e0d28343e8864d56daa5e24ad20b01906aaffb8d2ad48d59a9e0d76a9a94ecc717cc514315ffb11143dc9b6a50bbb4c3ff4e061a3178bc21b416aac272d3e61f5ed39509a13d3938780018570a2462daa0720c0b68073074ccd376a81af5c13ea3b9a34267da976abf9096460ffe3bc0ab72b3e5a85e0644a13f2f6ddd7927374cec0248fd023f31d7d9757de8b8899e0141a4921c18371bf2dc87f6b73b1761e9a2665570f57b97e623e4390c59c825c0d4ff3592442779a44d01d26fb35af25db6d3f7d13b6e888d9a0aceb9ee45ad4ef3d1052c996a24e62df143290a12a34a6e05c7d440ba60b9")
[WARN]: Failed to match key "retail_specific_aes_key_source", (value "e2d6b87a119cb880e822888a46fba195")
[WARN]: Failed to match key "rsa_oaep_kek_generation_source", (value "a8ca938434127fda82cc1aa5e807b112")
[WARN]: Failed to match key "rsa_private_kek_generation_source", (value "ef2cb61a56729b9157c38b9316784ddd")
[WARN]: Failed to match key "save_mac_key", (value "9dae284ac051d6084f0ae534cdbd7dfe")
[WARN]: Failed to match key "save_mac_sd_card_kek_source", (value "0489ef5d326e1a59c4b7ab8c367aab17")
[WARN]: Failed to match key "save_mac_sd_card_key_source", (value "6f645947c56146f9ffa045d595332918")
[WARN]: Failed to match key "sd_card_custom_storage_key_source", (value "370c345e12e4cefe21b58e64db52af354f2ca5a3fc999a47c03ee004485b2fd0")
[WARN]: Failed to match key "sd_seed", (value "36823a8d3a07cbaf69969dc0cd55de73")
[WARN]: Failed to match key "ssl_rsa_kek", (value "b011100660d1dccbad1b1b733afa9f95")
[WARN]: Failed to match key "ssl_rsa_kek_source_x", (value "7f5bb0847b25aa67fac84be23d7b6903")
[WARN]: Failed to match key "ssl_rsa_kek_source_y", (value "9a383bf431d0bd8132534ba964397de3")
./nsp_update_patcher.sh: 50: [: Manual: unexpected operator
[WARN]: Failed to match key "bis_kek_source", (value "34c1a0c48258f8b4fa9e5e6adafc7e4f")
[WARN]: Failed to match key "bis_key_00", (value "4a4b4063d4a5f145880c36b8cd139f932ae42b473b902a734d3c6e7f2b7b000b")
[WARN]: Failed to match key "bis_key_01", (value "db8f185c5441ee394e81c0325e7fd1d7e3a2e3ce9a68029c400961e312ac81a5")
[WARN]: Failed to match key "bis_key_02", (value "cc0977c8b258511c0f6a1d0827e4aa127fd04d09ef895bcc2a303dc04e88cc0e")
[WARN]: Failed to match key "bis_key_03", (value "cc0977c8b258511c0f6a1d0827e4aa127fd04d09ef895bcc2a303dc04e88cc0e")
[WARN]: Failed to match key "bis_key_source_00", (value "f83f386e2cd2ca32a89ab9aa29bfc7487d92b03aa8bfdee1a74c3b6e35cb7106")
[WARN]: Failed to match key "bis_key_source_01", (value "41003049ddccc065647a7eb41eed9c5f44424edab49dfcd98777249adc9f7ca4")
[WARN]: Failed to match key "bis_key_source_02", (value "52c2e9eb09e3ee2932a10c1fb6a0926c4d12e14b2a474c1c09cb0359f015f4e4")
[WARN]: Failed to match key "device_key", (value "c8c0453eb3d24f6930dfa9ebcd2437fd")
[WARN]: Failed to match key "device_key_4x", (value "21f208fe4c14d1695f5b46c8985dc5c3")
[WARN]: Failed to match key "eticket_rsa_kek", (value "19c8b441d318802bad63a5beda283a84")
[WARN]: Failed to match key "eticket_rsa_kek_source", (value "dba451124ca0a9836814f5ed95e3125b")
[WARN]: Failed to match key "eticket_rsa_kekek_source", (value "466e57b74a447f02f321cde58f2f5535")
[WARN]: Failed to match key "eticket_rsa_keypair", (value "184760334fb5338a32de59a2cae96024acf0f5e3265159ff975ee60ef65d27267b807e40224c08bc92808489c80b0b0d63d30ce459e49aff605ea74ec2d5b48a130efec2ed3d09cb0e6e705f09083ff6416567e157667262e9cc0420dfe2dbc0784bd30941248bc0707a30a7c38d2eee5006c89e42bbfdd1c709ddf9e5c482b69b493d9ccfc0577788199715a30dbf95acd15e1391fe4780d0df390f81ed6b3226f5c621a760f9438ac772dc729a84bb721d8b0dbab27e3aeb66e424e3e326064de49bff8c67133d551a78f1a6d554fc84d348ba6d1d3033f9b355f65fcd38d0e36dc1f8c9a2c8f85bd9d824625335b98f5c35a745166a598c227e275b1ca04d8024ca592fd23708e4f0fb0e0d28343e8864d56daa5e24ad20b01906aaffb8d2ad48d59a9e0d76a9a94ecc717cc514315ffb11143dc9b6a50bbb4c3ff4e061a3178bc21b416aac272d3e61f5ed39509a13d3938780018570a2462daa0720c0b68073074ccd376a81af5c13ea3b9a34267da976abf9096460ffe3bc0ab72b3e5a85e0644a13f2f6ddd7927374cec0248fd023f31d7d9757de8b8899e0141a4921c18371bf2dc87f6b73b1761e9a2665570f57b97e623e4390c59c825c0d4ff3592442779a44d01d26fb35af25db6d3f7d13b6e888d9a0aceb9ee45ad4ef3d1052c996a24e62df143290a12a34a6e05c7d440ba60b9")
[WARN]: Failed to match key "retail_specific_aes_key_source", (value "e2d6b87a119cb880e822888a46fba195")
[WARN]: Failed to match key "rsa_oaep_kek_generation_source", (value "a8ca938434127fda82cc1aa5e807b112")
[WARN]: Failed to match key "rsa_private_kek_generation_source", (value "ef2cb61a56729b9157c38b9316784ddd")
[WARN]: Failed to match key "save_mac_key", (value "9dae284ac051d6084f0ae534cdbd7dfe")
[WARN]: Failed to match key "save_mac_sd_card_kek_source", (value "0489ef5d326e1a59c4b7ab8c367aab17")
[WARN]: Failed to match key "save_mac_sd_card_key_source", (value "6f645947c56146f9ffa045d595332918")
[WARN]: Failed to match key "sd_card_custom_storage_key_source", (value "370c345e12e4cefe21b58e64db52af354f2ca5a3fc999a47c03ee004485b2fd0")
[WARN]: Failed to match key "sd_seed", (value "36823a8d3a07cbaf69969dc0cd55de73")
[WARN]: Failed to match key "ssl_rsa_kek", (value "b011100660d1dccbad1b1b733afa9f95")
[WARN]: Failed to match key "ssl_rsa_kek_source_x", (value "7f5bb0847b25aa67fac84be23d7b6903")
[WARN]: Failed to match key "ssl_rsa_kek_source_y", (value "9a383bf431d0bd8132534ba964397de3")
./nsp_update_patcher.sh: 50: [: Control: unexpected operator
[WARN]: Failed to match key "bis_kek_source", (value "34c1a0c48258f8b4fa9e5e6adafc7e4f")
[WARN]: Failed to match key "bis_key_00", (value "4a4b4063d4a5f145880c36b8cd139f932ae42b473b902a734d3c6e7f2b7b000b")
[WARN]: Failed to match key "bis_key_01", (value "db8f185c5441ee394e81c0325e7fd1d7e3a2e3ce9a68029c400961e312ac81a5")
[WARN]: Failed to match key "bis_key_02", (value "cc0977c8b258511c0f6a1d0827e4aa127fd04d09ef895bcc2a303dc04e88cc0e")
[WARN]: Failed to match key "bis_key_03", (value "cc0977c8b258511c0f6a1d0827e4aa127fd04d09ef895bcc2a303dc04e88cc0e")
[WARN]: Failed to match key "bis_key_source_00", (value "f83f386e2cd2ca32a89ab9aa29bfc7487d92b03aa8bfdee1a74c3b6e35cb7106")
[WARN]: Failed to match key "bis_key_source_01", (value "41003049ddccc065647a7eb41eed9c5f44424edab49dfcd98777249adc9f7ca4")
[WARN]: Failed to match key "bis_key_source_02", (value "52c2e9eb09e3ee2932a10c1fb6a0926c4d12e14b2a474c1c09cb0359f015f4e4")
[WARN]: Failed to match key "device_key", (value "c8c0453eb3d24f6930dfa9ebcd2437fd")
[WARN]: Failed to match key "device_key_4x", (value "21f208fe4c14d1695f5b46c8985dc5c3")
[WARN]: Failed to match key "eticket_rsa_kek", (value "19c8b441d318802bad63a5beda283a84")
[WARN]: Failed to match key "eticket_rsa_kek_source", (value "dba451124ca0a9836814f5ed95e3125b")
[WARN]: Failed to match key "eticket_rsa_kekek_source", (value "466e57b74a447f02f321cde58f2f5535")
[WARN]: Failed to match key "eticket_rsa_keypair", (value "184760334fb5338a32de59a2cae96024acf0f5e3265159ff975ee60ef65d27267b807e40224c08bc92808489c80b0b0d63d30ce459e49aff605ea74ec2d5b48a130efec2ed3d09cb0e6e705f09083ff6416567e157667262e9cc0420dfe2dbc0784bd30941248bc0707a30a7c38d2eee5006c89e42bbfdd1c709ddf9e5c482b69b493d9ccfc0577788199715a30dbf95acd15e1391fe4780d0df390f81ed6b3226f5c621a760f9438ac772dc729a84bb721d8b0dbab27e3aeb66e424e3e326064de49bff8c67133d551a78f1a6d554fc84d348ba6d1d3033f9b355f65fcd38d0e36dc1f8c9a2c8f85bd9d824625335b98f5c35a745166a598c227e275b1ca04d8024ca592fd23708e4f0fb0e0d28343e8864d56daa5e24ad20b01906aaffb8d2ad48d59a9e0d76a9a94ecc717cc514315ffb11143dc9b6a50bbb4c3ff4e061a3178bc21b416aac272d3e61f5ed39509a13d3938780018570a2462daa0720c0b68073074ccd376a81af5c13ea3b9a34267da976abf9096460ffe3bc0ab72b3e5a85e0644a13f2f6ddd7927374cec0248fd023f31d7d9757de8b8899e0141a4921c18371bf2dc87f6b73b1761e9a2665570f57b97e623e4390c59c825c0d4ff3592442779a44d01d26fb35af25db6d3f7d13b6e888d9a0aceb9ee45ad4ef3d1052c996a24e62df143290a12a34a6e05c7d440ba60b9")
[WARN]: Failed to match key "retail_specific_aes_key_source", (value "e2d6b87a119cb880e822888a46fba195")
[WARN]: Failed to match key "rsa_oaep_kek_generation_source", (value "a8ca938434127fda82cc1aa5e807b112")
[WARN]: Failed to match key "rsa_private_kek_generation_source", (value "ef2cb61a56729b9157c38b9316784ddd")
[WARN]: Failed to match key "save_mac_key", (value "9dae284ac051d6084f0ae534cdbd7dfe")
[WARN]: Failed to match key "save_mac_sd_card_kek_source", (value "0489ef5d326e1a59c4b7ab8c367aab17")
[WARN]: Failed to match key "save_mac_sd_card_key_source", (value "6f645947c56146f9ffa045d595332918")
[WARN]: Failed to match key "sd_card_custom_storage_key_source", (value "370c345e12e4cefe21b58e64db52af354f2ca5a3fc999a47c03ee004485b2fd0")
[WARN]: Failed to match key "sd_seed", (value "36823a8d3a07cbaf69969dc0cd55de73")
[WARN]: Failed to match key "ssl_rsa_kek", (value "b011100660d1dccbad1b1b733afa9f95")
[WARN]: Failed to match key "ssl_rsa_kek_source_x", (value "7f5bb0847b25aa67fac84be23d7b6903")
[WARN]: Failed to match key "ssl_rsa_kek_source_y", (value "9a383bf431d0bd8132534ba964397de3")
./nsp_update_patcher.sh: 50: [: Program: unexpected operator
[WARN]: Failed to match key "bis_kek_source", (value "34c1a0c48258f8b4fa9e5e6adafc7e4f")
[WARN]: Failed to match key "bis_key_00", (value "4a4b4063d4a5f145880c36b8cd139f932ae42b473b902a734d3c6e7f2b7b000b")
[WARN]: Failed to match key "bis_key_01", (value "db8f185c5441ee394e81c0325e7fd1d7e3a2e3ce9a68029c400961e312ac81a5")
[WARN]: Failed to match key "bis_key_02", (value "cc0977c8b258511c0f6a1d0827e4aa127fd04d09ef895bcc2a303dc04e88cc0e")
[WARN]: Failed to match key "bis_key_03", (value "cc0977c8b258511c0f6a1d0827e4aa127fd04d09ef895bcc2a303dc04e88cc0e")
[WARN]: Failed to match key "bis_key_source_00", (value "f83f386e2cd2ca32a89ab9aa29bfc7487d92b03aa8bfdee1a74c3b6e35cb7106")
[WARN]: Failed to match key "bis_key_source_01", (value "41003049ddccc065647a7eb41eed9c5f44424edab49dfcd98777249adc9f7ca4")
[WARN]: Failed to match key "bis_key_source_02", (value "52c2e9eb09e3ee2932a10c1fb6a0926c4d12e14b2a474c1c09cb0359f015f4e4")
[WARN]: Failed to match key "device_key", (value "c8c0453eb3d24f6930dfa9ebcd2437fd")
[WARN]: Failed to match key "device_key_4x", (value "21f208fe4c14d1695f5b46c8985dc5c3")
[WARN]: Failed to match key "eticket_rsa_kek", (value "19c8b441d318802bad63a5beda283a84")
[WARN]: Failed to match key "eticket_rsa_kek_source", (value "dba451124ca0a9836814f5ed95e3125b")
[WARN]: Failed to match key "eticket_rsa_kekek_source", (value "466e57b74a447f02f321cde58f2f5535")
[WARN]: Failed to match key "eticket_rsa_keypair", (value "184760334fb5338a32de59a2cae96024acf0f5e3265159ff975ee60ef65d27267b807e40224c08bc92808489c80b0b0d63d30ce459e49aff605ea74ec2d5b48a130efec2ed3d09cb0e6e705f09083ff6416567e157667262e9cc0420dfe2dbc0784bd30941248bc0707a30a7c38d2eee5006c89e42bbfdd1c709ddf9e5c482b69b493d9ccfc0577788199715a30dbf95acd15e1391fe4780d0df390f81ed6b3226f5c621a760f9438ac772dc729a84bb721d8b0dbab27e3aeb66e424e3e326064de49bff8c67133d551a78f1a6d554fc84d348ba6d1d3033f9b355f65fcd38d0e36dc1f8c9a2c8f85bd9d824625335b98f5c35a745166a598c227e275b1ca04d8024ca592fd23708e4f0fb0e0d28343e8864d56daa5e24ad20b01906aaffb8d2ad48d59a9e0d76a9a94ecc717cc514315ffb11143dc9b6a50bbb4c3ff4e061a3178bc21b416aac272d3e61f5ed39509a13d3938780018570a2462daa0720c0b68073074ccd376a81af5c13ea3b9a34267da976abf9096460ffe3bc0ab72b3e5a85e0644a13f2f6ddd7927374cec0248fd023f31d7d9757de8b8899e0141a4921c18371bf2dc87f6b73b1761e9a2665570f57b97e623e4390c59c825c0d4ff3592442779a44d01d26fb35af25db6d3f7d13b6e888d9a0aceb9ee45ad4ef3d1052c996a24e62df143290a12a34a6e05c7d440ba60b9")
[WARN]: Failed to match key "retail_specific_aes_key_source", (value "e2d6b87a119cb880e822888a46fba195")
[WARN]: Failed to match key "rsa_oaep_kek_generation_source", (value "a8ca938434127fda82cc1aa5e807b112")
[WARN]: Failed to match key "rsa_private_kek_generation_source", (value "ef2cb61a56729b9157c38b9316784ddd")
[WARN]: Failed to match key "save_mac_key", (value "9dae284ac051d6084f0ae534cdbd7dfe")
[WARN]: Failed to match key "save_mac_sd_card_kek_source", (value "0489ef5d326e1a59c4b7ab8c367aab17")
[WARN]: Failed to match key "save_mac_sd_card_key_source", (value "6f645947c56146f9ffa045d595332918")
[WARN]: Failed to match key "sd_card_custom_storage_key_source", (value "370c345e12e4cefe21b58e64db52af354f2ca5a3fc999a47c03ee004485b2fd0")
[WARN]: Failed to match key "sd_seed", (value "36823a8d3a07cbaf69969dc0cd55de73")
[WARN]: Failed to match key "ssl_rsa_kek", (value "b011100660d1dccbad1b1b733afa9f95")
[WARN]: Failed to match key "ssl_rsa_kek_source_x", (value "7f5bb0847b25aa67fac84be23d7b6903")
[WARN]: Failed to match key "ssl_rsa_kek_source_y", (value "9a383bf431d0bd8132534ba964397de3")
./nsp_update_patcher.sh: 50: [: Meta: unexpected operator
[WARN]: Failed to match key "bis_kek_source", (value "34c1a0c48258f8b4fa9e5e6adafc7e4f")
[WARN]: Failed to match key "bis_key_00", (value "4a4b4063d4a5f145880c36b8cd139f932ae42b473b902a734d3c6e7f2b7b000b")
[WARN]: Failed to match key "bis_key_01", (value "db8f185c5441ee394e81c0325e7fd1d7e3a2e3ce9a68029c400961e312ac81a5")
[WARN]: Failed to match key "bis_key_02", (value "cc0977c8b258511c0f6a1d0827e4aa127fd04d09ef895bcc2a303dc04e88cc0e")
[WARN]: Failed to match key "bis_key_03", (value "cc0977c8b258511c0f6a1d0827e4aa127fd04d09ef895bcc2a303dc04e88cc0e")
[WARN]: Failed to match key "bis_key_source_00", (value "f83f386e2cd2ca32a89ab9aa29bfc7487d92b03aa8bfdee1a74c3b6e35cb7106")
[WARN]: Failed to match key "bis_key_source_01", (value "41003049ddccc065647a7eb41eed9c5f44424edab49dfcd98777249adc9f7ca4")
[WARN]: Failed to match key "bis_key_source_02", (value "52c2e9eb09e3ee2932a10c1fb6a0926c4d12e14b2a474c1c09cb0359f015f4e4")
[WARN]: Failed to match key "device_key", (value "c8c0453eb3d24f6930dfa9ebcd2437fd")
[WARN]: Failed to match key "device_key_4x", (value "21f208fe4c14d1695f5b46c8985dc5c3")
[WARN]: Failed to match key "eticket_rsa_kek", (value "19c8b441d318802bad63a5beda283a84")
[WARN]: Failed to match key "eticket_rsa_kek_source", (value "dba451124ca0a9836814f5ed95e3125b")
[WARN]: Failed to match key "eticket_rsa_kekek_source", (value "466e57b74a447f02f321cde58f2f5535")
[WARN]: Failed to match key "eticket_rsa_keypair", (value "184760334fb5338a32de59a2cae96024acf0f5e3265159ff975ee60ef65d27267b807e40224c08bc92808489c80b0b0d63d30ce459e49aff605ea74ec2d5b48a130efec2ed3d09cb0e6e705f09083ff6416567e157667262e9cc0420dfe2dbc0784bd30941248bc0707a30a7c38d2eee5006c89e42bbfdd1c709ddf9e5c482b69b493d9ccfc0577788199715a30dbf95acd15e1391fe4780d0df390f81ed6b3226f5c621a760f9438ac772dc729a84bb721d8b0dbab27e3aeb66e424e3e326064de49bff8c67133d551a78f1a6d554fc84d348ba6d1d3033f9b355f65fcd38d0e36dc1f8c9a2c8f85bd9d824625335b98f5c35a745166a598c227e275b1ca04d8024ca592fd23708e4f0fb0e0d28343e8864d56daa5e24ad20b01906aaffb8d2ad48d59a9e0d76a9a94ecc717cc514315ffb11143dc9b6a50bbb4c3ff4e061a3178bc21b416aac272d3e61f5ed39509a13d3938780018570a2462daa0720c0b68073074ccd376a81af5c13ea3b9a34267da976abf9096460ffe3bc0ab72b3e5a85e0644a13f2f6ddd7927374cec0248fd023f31d7d9757de8b8899e0141a4921c18371bf2dc87f6b73b1761e9a2665570f57b97e623e4390c59c825c0d4ff3592442779a44d01d26fb35af25db6d3f7d13b6e888d9a0aceb9ee45ad4ef3d1052c996a24e62df143290a12a34a6e05c7d440ba60b9")
[WARN]: Failed to match key "retail_specific_aes_key_source", (value "e2d6b87a119cb880e822888a46fba195")
[WARN]: Failed to match key "rsa_oaep_kek_generation_source", (value "a8ca938434127fda82cc1aa5e807b112")
[WARN]: Failed to match key "rsa_private_kek_generation_source", (value "ef2cb61a56729b9157c38b9316784ddd")
[WARN]: Failed to match key "save_mac_key", (value "9dae284ac051d6084f0ae534cdbd7dfe")
[WARN]: Failed to match key "save_mac_sd_card_kek_source", (value "0489ef5d326e1a59c4b7ab8c367aab17")
[WARN]: Failed to match key "save_mac_sd_card_key_source", (value "6f645947c56146f9ffa045d595332918")
[WARN]: Failed to match key "sd_card_custom_storage_key_source", (value "370c345e12e4cefe21b58e64db52af354f2ca5a3fc999a47c03ee004485b2fd0")
[WARN]: Failed to match key "sd_seed", (value "36823a8d3a07cbaf69969dc0cd55de73")
[WARN]: Failed to match key "ssl_rsa_kek", (value "b011100660d1dccbad1b1b733afa9f95")
[WARN]: Failed to match key "ssl_rsa_kek_source_x", (value "7f5bb0847b25aa67fac84be23d7b6903")
[WARN]: Failed to match key "ssl_rsa_kek_source_y", (value "9a383bf431d0bd8132534ba964397de3")

PFS0:
Magic: PFS0
Number of files: 6
Files: pfs0:/3f3e4a8eaa1dc01c16ee408ca8e3e34e.nca 000000000000-0000e2a17600
pfs0:/ed9c3b31b269dfd2acce1d7233035f9c.nca 0000e2a17600-0000e2b37800
pfs0:/8232ba50879562592905f5b5921a01c8.nca 0000e2b37800-0000e2b60200
pfs0:/4ee438ab717a113f764e495e4aacfff6.cnmt.nca 0000e2b60200-0000e2b61a00
pfs0:/0100698009c6e800000000000000000a.tik 0000e2b61a00-0000e2b61cc0
pfs0:/0100698009c6e800000000000000000a.cert 0000e2b61cc0-0000e2b623c0
Saving 3f3e4a8eaa1dc01c16ee408ca8e3e34e.nca to ./3f3e4a8eaa1dc01c16ee408ca8e3e34e.nca...
Saving ed9c3b31b269dfd2acce1d7233035f9c.nca to ./ed9c3b31b269dfd2acce1d7233035f9c.nca...
Saving 8232ba50879562592905f5b5921a01c8.nca to ./8232ba50879562592905f5b5921a01c8.nca...
Saving 4ee438ab717a113f764e495e4aacfff6.cnmt.nca to ./4ee438ab717a113f764e495e4aacfff6.cnmt.nca...
Saving 0100698009c6e800000000000000000a.tik to ./0100698009c6e800000000000000000a.tik...
Saving 0100698009c6e800000000000000000a.cert to ./0100698009c6e800000000000000000a.cert...
Done!
[WARN]: Failed to match key "bis_kek_source", (value "34c1a0c48258f8b4fa9e5e6adafc7e4f")
[WARN]: Failed to match key "bis_key_00", (value "4a4b4063d4a5f145880c36b8cd139f932ae42b473b902a734d3c6e7f2b7b000b")
[WARN]: Failed to match key "bis_key_01", (value "db8f185c5441ee394e81c0325e7fd1d7e3a2e3ce9a68029c400961e312ac81a5")
[WARN]: Failed to match key "bis_key_02", (value "cc0977c8b258511c0f6a1d0827e4aa127fd04d09ef895bcc2a303dc04e88cc0e")
[WARN]: Failed to match key "bis_key_03", (value "cc0977c8b258511c0f6a1d0827e4aa127fd04d09ef895bcc2a303dc04e88cc0e")
[WARN]: Failed to match key "bis_key_source_00", (value "f83f386e2cd2ca32a89ab9aa29bfc7487d92b03aa8bfdee1a74c3b6e35cb7106")
[WARN]: Failed to match key "bis_key_source_01", (value "41003049ddccc065647a7eb41eed9c5f44424edab49dfcd98777249adc9f7ca4")
[WARN]: Failed to match key "bis_key_source_02", (value "52c2e9eb09e3ee2932a10c1fb6a0926c4d12e14b2a474c1c09cb0359f015f4e4")
[WARN]: Failed to match key "device_key", (value "c8c0453eb3d24f6930dfa9ebcd2437fd")
[WARN]: Failed to match key "device_key_4x", (value "21f208fe4c14d1695f5b46c8985dc5c3")
[WARN]: Failed to match key "eticket_rsa_kek", (value "19c8b441d318802bad63a5beda283a84")
[WARN]: Failed to match key "eticket_rsa_kek_source", (value "dba451124ca0a9836814f5ed95e3125b")
[WARN]: Failed to match key "eticket_rsa_kekek_source", (value "466e57b74a447f02f321cde58f2f5535")
[WARN]: Failed to match key "eticket_rsa_keypair", (value "184760334fb5338a32de59a2cae96024acf0f5e3265159ff975ee60ef65d27267b807e40224c08bc92808489c80b0b0d63d30ce459e49aff605ea74ec2d5b48a130efec2ed3d09cb0e6e705f09083ff6416567e157667262e9cc0420dfe2dbc0784bd30941248bc0707a30a7c38d2eee5006c89e42bbfdd1c709ddf9e5c482b69b493d9ccfc0577788199715a30dbf95acd15e1391fe4780d0df390f81ed6b3226f5c621a760f9438ac772dc729a84bb721d8b0dbab27e3aeb66e424e3e326064de49bff8c67133d551a78f1a6d554fc84d348ba6d1d3033f9b355f65fcd38d0e36dc1f8c9a2c8f85bd9d824625335b98f5c35a745166a598c227e275b1ca04d8024ca592fd23708e4f0fb0e0d28343e8864d56daa5e24ad20b01906aaffb8d2ad48d59a9e0d76a9a94ecc717cc514315ffb11143dc9b6a50bbb4c3ff4e061a3178bc21b416aac272d3e61f5ed39509a13d3938780018570a2462daa0720c0b68073074ccd376a81af5c13ea3b9a34267da976abf9096460ffe3bc0ab72b3e5a85e0644a13f2f6ddd7927374cec0248fd023f31d7d9757de8b8899e0141a4921c18371bf2dc87f6b73b1761e9a2665570f57b97e623e4390c59c825c0d4ff3592442779a44d01d26fb35af25db6d3f7d13b6e888d9a0aceb9ee45ad4ef3d1052c996a24e62df143290a12a34a6e05c7d440ba60b9")
[WARN]: Failed to match key "retail_specific_aes_key_source", (value "e2d6b87a119cb880e822888a46fba195")
[WARN]: Failed to match key "rsa_oaep_kek_generation_source", (value "a8ca938434127fda82cc1aa5e807b112")
[WARN]: Failed to match key "rsa_private_kek_generation_source", (value "ef2cb61a56729b9157c38b9316784ddd")
[WARN]: Failed to match key "save_mac_key", (value "9dae284ac051d6084f0ae534cdbd7dfe")
[WARN]: Failed to match key "save_mac_sd_card_kek_source", (value "0489ef5d326e1a59c4b7ab8c367aab17")
[WARN]: Failed to match key "save_mac_sd_card_key_source", (value "6f645947c56146f9ffa045d595332918")
[WARN]: Failed to match key "sd_card_custom_storage_key_source", (value "370c345e12e4cefe21b58e64db52af354f2ca5a3fc999a47c03ee004485b2fd0")
[WARN]: Failed to match key "sd_seed", (value "36823a8d3a07cbaf69969dc0cd55de73")
[WARN]: Failed to match key "ssl_rsa_kek", (value "b011100660d1dccbad1b1b733afa9f95")
[WARN]: Failed to match key "ssl_rsa_kek_source_x", (value "7f5bb0847b25aa67fac84be23d7b6903")
[WARN]: Failed to match key "ssl_rsa_kek_source_y", (value "9a383bf431d0bd8132534ba964397de3")
Note: cannot save BKTR section without base romfs.
./nsp_update_patcher.sh: 62: [: Program: unexpected operator
./nsp_update_patcher.sh: 65: [: Program: unexpected operator
[WARN]: Failed to match key "bis_kek_source", (value "34c1a0c48258f8b4fa9e5e6adafc7e4f")
[WARN]: Failed to match key "bis_key_00", (value "4a4b4063d4a5f145880c36b8cd139f932ae42b473b902a734d3c6e7f2b7b000b")
[WARN]: Failed to match key "bis_key_01", (value "db8f185c5441ee394e81c0325e7fd1d7e3a2e3ce9a68029c400961e312ac81a5")
[WARN]: Failed to match key "bis_key_02", (value "cc0977c8b258511c0f6a1d0827e4aa127fd04d09ef895bcc2a303dc04e88cc0e")
[WARN]: Failed to match key "bis_key_03", (value "cc0977c8b258511c0f6a1d0827e4aa127fd04d09ef895bcc2a303dc04e88cc0e")
[WARN]: Failed to match key "bis_key_source_00", (value "f83f386e2cd2ca32a89ab9aa29bfc7487d92b03aa8bfdee1a74c3b6e35cb7106")
[WARN]: Failed to match key "bis_key_source_01", (value "41003049ddccc065647a7eb41eed9c5f44424edab49dfcd98777249adc9f7ca4")
[WARN]: Failed to match key "bis_key_source_02", (value "52c2e9eb09e3ee2932a10c1fb6a0926c4d12e14b2a474c1c09cb0359f015f4e4")
[WARN]: Failed to match key "device_key", (value "c8c0453eb3d24f6930dfa9ebcd2437fd")
[WARN]: Failed to match key "device_key_4x", (value "21f208fe4c14d1695f5b46c8985dc5c3")
[WARN]: Failed to match key "eticket_rsa_kek", (value "19c8b441d318802bad63a5beda283a84")
[WARN]: Failed to match key "eticket_rsa_kek_source", (value "dba451124ca0a9836814f5ed95e3125b")
[WARN]: Failed to match key "eticket_rsa_kekek_source", (value "466e57b74a447f02f321cde58f2f5535")
[WARN]: Failed to match key "eticket_rsa_keypair", (value "184760334fb5338a32de59a2cae96024acf0f5e3265159ff975ee60ef65d27267b807e40224c08bc92808489c80b0b0d63d30ce459e49aff605ea74ec2d5b48a130efec2ed3d09cb0e6e705f09083ff6416567e157667262e9cc0420dfe2dbc0784bd30941248bc0707a30a7c38d2eee5006c89e42bbfdd1c709ddf9e5c482b69b493d9ccfc0577788199715a30dbf95acd15e1391fe4780d0df390f81ed6b3226f5c621a760f9438ac772dc729a84bb721d8b0dbab27e3aeb66e424e3e326064de49bff8c67133d551a78f1a6d554fc84d348ba6d1d3033f9b355f65fcd38d0e36dc1f8c9a2c8f85bd9d824625335b98f5c35a745166a598c227e275b1ca04d8024ca592fd23708e4f0fb0e0d28343e8864d56daa5e24ad20b01906aaffb8d2ad48d59a9e0d76a9a94ecc717cc514315ffb11143dc9b6a50bbb4c3ff4e061a3178bc21b416aac272d3e61f5ed39509a13d3938780018570a2462daa0720c0b68073074ccd376a81af5c13ea3b9a34267da976abf9096460ffe3bc0ab72b3e5a85e0644a13f2f6ddd7927374cec0248fd023f31d7d9757de8b8899e0141a4921c18371bf2dc87f6b73b1761e9a2665570f57b97e623e4390c59c825c0d4ff3592442779a44d01d26fb35af25db6d3f7d13b6e888d9a0aceb9ee45ad4ef3d1052c996a24e62df143290a12a34a6e05c7d440ba60b9")
[WARN]: Failed to match key "retail_specific_aes_key_source", (value "e2d6b87a119cb880e822888a46fba195")
[WARN]: Failed to match key "rsa_oaep_kek_generation_source", (value "a8ca938434127fda82cc1aa5e807b112")
[WARN]: Failed to match key "rsa_private_kek_generation_source", (value "ef2cb61a56729b9157c38b9316784ddd")
[WARN]: Failed to match key "save_mac_key", (value "9dae284ac051d6084f0ae534cdbd7dfe")
[WARN]: Failed to match key "save_mac_sd_card_kek_source", (value "0489ef5d326e1a59c4b7ab8c367aab17")
[WARN]: Failed to match key "save_mac_sd_card_key_source", (value "6f645947c56146f9ffa045d595332918")
[WARN]: Failed to match key "sd_card_custom_storage_key_source", (value "370c345e12e4cefe21b58e64db52af354f2ca5a3fc999a47c03ee004485b2fd0")
[WARN]: Failed to match key "sd_seed", (value "36823a8d3a07cbaf69969dc0cd55de73")
[WARN]: Failed to match key "ssl_rsa_kek", (value "b011100660d1dccbad1b1b733afa9f95")
[WARN]: Failed to match key "ssl_rsa_kek_source_x", (value "7f5bb0847b25aa67fac84be23d7b6903")
[WARN]: Failed to match key "ssl_rsa_kek_source_y", (value "9a383bf431d0bd8132534ba964397de3")
./nsp_update_patcher.sh: 62: [: Meta: unexpected operator
./nsp_update_patcher.sh: 65: [: Meta: unexpected operator
[WARN]: Failed to match key "bis_kek_source", (value "34c1a0c48258f8b4fa9e5e6adafc7e4f")
[WARN]: Failed to match key "bis_key_00", (value "4a4b4063d4a5f145880c36b8cd139f932ae42b473b902a734d3c6e7f2b7b000b")
[WARN]: Failed to match key "bis_key_01", (value "db8f185c5441ee394e81c0325e7fd1d7e3a2e3ce9a68029c400961e312ac81a5")
[WARN]: Failed to match key "bis_key_02", (value "cc0977c8b258511c0f6a1d0827e4aa127fd04d09ef895bcc2a303dc04e88cc0e")
[WARN]: Failed to match key "bis_key_03", (value "cc0977c8b258511c0f6a1d0827e4aa127fd04d09ef895bcc2a303dc04e88cc0e")
[WARN]: Failed to match key "bis_key_source_00", (value "f83f386e2cd2ca32a89ab9aa29bfc7487d92b03aa8bfdee1a74c3b6e35cb7106")
[WARN]: Failed to match key "bis_key_source_01", (value "41003049ddccc065647a7eb41eed9c5f44424edab49dfcd98777249adc9f7ca4")
[WARN]: Failed to match key "bis_key_source_02", (value "52c2e9eb09e3ee2932a10c1fb6a0926c4d12e14b2a474c1c09cb0359f015f4e4")
[WARN]: Failed to match key "device_key", (value "c8c0453eb3d24f6930dfa9ebcd2437fd")
[WARN]: Failed to match key "device_key_4x", (value "21f208fe4c14d1695f5b46c8985dc5c3")
[WARN]: Failed to match key "eticket_rsa_kek", (value "19c8b441d318802bad63a5beda283a84")
[WARN]: Failed to match key "eticket_rsa_kek_source", (value "dba451124ca0a9836814f5ed95e3125b")
[WARN]: Failed to match key "eticket_rsa_kekek_source", (value "466e57b74a447f02f321cde58f2f5535")
[WARN]: Failed to match key "eticket_rsa_keypair", (value "184760334fb5338a32de59a2cae96024acf0f5e3265159ff975ee60ef65d27267b807e40224c08bc92808489c80b0b0d63d30ce459e49aff605ea74ec2d5b48a130efec2ed3d09cb0e6e705f09083ff6416567e157667262e9cc0420dfe2dbc0784bd30941248bc0707a30a7c38d2eee5006c89e42bbfdd1c709ddf9e5c482b69b493d9ccfc0577788199715a30dbf95acd15e1391fe4780d0df390f81ed6b3226f5c621a760f9438ac772dc729a84bb721d8b0dbab27e3aeb66e424e3e326064de49bff8c67133d551a78f1a6d554fc84d348ba6d1d3033f9b355f65fcd38d0e36dc1f8c9a2c8f85bd9d824625335b98f5c35a745166a598c227e275b1ca04d8024ca592fd23708e4f0fb0e0d28343e8864d56daa5e24ad20b01906aaffb8d2ad48d59a9e0d76a9a94ecc717cc514315ffb11143dc9b6a50bbb4c3ff4e061a3178bc21b416aac272d3e61f5ed39509a13d3938780018570a2462daa0720c0b68073074ccd376a81af5c13ea3b9a34267da976abf9096460ffe3bc0ab72b3e5a85e0644a13f2f6ddd7927374cec0248fd023f31d7d9757de8b8899e0141a4921c18371bf2dc87f6b73b1761e9a2665570f57b97e623e4390c59c825c0d4ff3592442779a44d01d26fb35af25db6d3f7d13b6e888d9a0aceb9ee45ad4ef3d1052c996a24e62df143290a12a34a6e05c7d440ba60b9")
[WARN]: Failed to match key "retail_specific_aes_key_source", (value "e2d6b87a119cb880e822888a46fba195")
[WARN]: Failed to match key "rsa_oaep_kek_generation_source", (value "a8ca938434127fda82cc1aa5e807b112")
[WARN]: Failed to match key "rsa_private_kek_generation_source", (value "ef2cb61a56729b9157c38b9316784ddd")
[WARN]: Failed to match key "save_mac_key", (value "9dae284ac051d6084f0ae534cdbd7dfe")
[WARN]: Failed to match key "save_mac_sd_card_kek_source", (value "0489ef5d326e1a59c4b7ab8c367aab17")
[WARN]: Failed to match key "save_mac_sd_card_key_source", (value "6f645947c56146f9ffa045d595332918")
[WARN]: Failed to match key "sd_card_custom_storage_key_source", (value "370c345e12e4cefe21b58e64db52af354f2ca5a3fc999a47c03ee004485b2fd0")
[WARN]: Failed to match key "sd_seed", (value "36823a8d3a07cbaf69969dc0cd55de73")
[WARN]: Failed to match key "ssl_rsa_kek", (value "b011100660d1dccbad1b1b733afa9f95")
[WARN]: Failed to match key "ssl_rsa_kek_source_x", (value "7f5bb0847b25aa67fac84be23d7b6903")
[WARN]: Failed to match key "ssl_rsa_kek_source_y", (value "9a383bf431d0bd8132534ba964397de3")
./nsp_update_patcher.sh: 62: [: Manual: unexpected operator
./nsp_update_patcher.sh: 65: [: Manual: unexpected operator
[WARN]: Failed to match key "bis_kek_source", (value "34c1a0c48258f8b4fa9e5e6adafc7e4f")
[WARN]: Failed to match key "bis_key_00", (value "4a4b4063d4a5f145880c36b8cd139f932ae42b473b902a734d3c6e7f2b7b000b")
[WARN]: Failed to match key "bis_key_01", (value "db8f185c5441ee394e81c0325e7fd1d7e3a2e3ce9a68029c400961e312ac81a5")
[WARN]: Failed to match key "bis_key_02", (value "cc0977c8b258511c0f6a1d0827e4aa127fd04d09ef895bcc2a303dc04e88cc0e")
[WARN]: Failed to match key "bis_key_03", (value "cc0977c8b258511c0f6a1d0827e4aa127fd04d09ef895bcc2a303dc04e88cc0e")
[WARN]: Failed to match key "bis_key_source_00", (value "f83f386e2cd2ca32a89ab9aa29bfc7487d92b03aa8bfdee1a74c3b6e35cb7106")
[WARN]: Failed to match key "bis_key_source_01", (value "41003049ddccc065647a7eb41eed9c5f44424edab49dfcd98777249adc9f7ca4")
[WARN]: Failed to match key "bis_key_source_02", (value "52c2e9eb09e3ee2932a10c1fb6a0926c4d12e14b2a474c1c09cb0359f015f4e4")
[WARN]: Failed to match key "device_key", (value "c8c0453eb3d24f6930dfa9ebcd2437fd")
[WARN]: Failed to match key "device_key_4x", (value "21f208fe4c14d1695f5b46c8985dc5c3")
[WARN]: Failed to match key "eticket_rsa_kek", (value "19c8b441d318802bad63a5beda283a84")
[WARN]: Failed to match key "eticket_rsa_kek_source", (value "dba451124ca0a9836814f5ed95e3125b")
[WARN]: Failed to match key "eticket_rsa_kekek_source", (value "466e57b74a447f02f321cde58f2f5535")
[WARN]: Failed to match key "eticket_rsa_keypair", (value "184760334fb5338a32de59a2cae96024acf0f5e3265159ff975ee60ef65d27267b807e40224c08bc92808489c80b0b0d63d30ce459e49aff605ea74ec2d5b48a130efec2ed3d09cb0e6e705f09083ff6416567e157667262e9cc0420dfe2dbc0784bd30941248bc0707a30a7c38d2eee5006c89e42bbfdd1c709ddf9e5c482b69b493d9ccfc0577788199715a30dbf95acd15e1391fe4780d0df390f81ed6b3226f5c621a760f9438ac772dc729a84bb721d8b0dbab27e3aeb66e424e3e326064de49bff8c67133d551a78f1a6d554fc84d348ba6d1d3033f9b355f65fcd38d0e36dc1f8c9a2c8f85bd9d824625335b98f5c35a745166a598c227e275b1ca04d8024ca592fd23708e4f0fb0e0d28343e8864d56daa5e24ad20b01906aaffb8d2ad48d59a9e0d76a9a94ecc717cc514315ffb11143dc9b6a50bbb4c3ff4e061a3178bc21b416aac272d3e61f5ed39509a13d3938780018570a2462daa0720c0b68073074ccd376a81af5c13ea3b9a34267da976abf9096460ffe3bc0ab72b3e5a85e0644a13f2f6ddd7927374cec0248fd023f31d7d9757de8b8899e0141a4921c18371bf2dc87f6b73b1761e9a2665570f57b97e623e4390c59c825c0d4ff3592442779a44d01d26fb35af25db6d3f7d13b6e888d9a0aceb9ee45ad4ef3d1052c996a24e62df143290a12a34a6e05c7d440ba60b9")
[WARN]: Failed to match key "retail_specific_aes_key_source", (value "e2d6b87a119cb880e822888a46fba195")
[WARN]: Failed to match key "rsa_oaep_kek_generation_source", (value "a8ca938434127fda82cc1aa5e807b112")
[WARN]: Failed to match key "rsa_private_kek_generation_source", (value "ef2cb61a56729b9157c38b9316784ddd")
[WARN]: Failed to match key "save_mac_key", (value "9dae284ac051d6084f0ae534cdbd7dfe")
[WARN]: Failed to match key "save_mac_sd_card_kek_source", (value "0489ef5d326e1a59c4b7ab8c367aab17")
[WARN]: Failed to match key "save_mac_sd_card_key_source", (value "6f645947c56146f9ffa045d595332918")
[WARN]: Failed to match key "sd_card_custom_storage_key_source", (value "370c345e12e4cefe21b58e64db52af354f2ca5a3fc999a47c03ee004485b2fd0")
[WARN]: Failed to match key "sd_seed", (value "36823a8d3a07cbaf69969dc0cd55de73")
[WARN]: Failed to match key "ssl_rsa_kek", (value "b011100660d1dccbad1b1b733afa9f95")
[WARN]: Failed to match key "ssl_rsa_kek_source_x", (value "7f5bb0847b25aa67fac84be23d7b6903")
[WARN]: Failed to match key "ssl_rsa_kek_source_y", (value "9a383bf431d0bd8132534ba964397de3")
./nsp_update_patcher.sh: 62: [: Control: unexpected operator
./nsp_update_patcher.sh: 65: [: Control: unexpected operator
[WARN]: Failed to match key "bis_kek_source", (value "34c1a0c48258f8b4fa9e5e6adafc7e4f")
[WARN]: Failed to match key "bis_key_00", (value "4a4b4063d4a5f145880c36b8cd139f932ae42b473b902a734d3c6e7f2b7b000b")
[WARN]: Failed to match key "bis_key_01", (value "db8f185c5441ee394e81c0325e7fd1d7e3a2e3ce9a68029c400961e312ac81a5")
[WARN]: Failed to match key "bis_key_02", (value "cc0977c8b258511c0f6a1d0827e4aa127fd04d09ef895bcc2a303dc04e88cc0e")
[WARN]: Failed to match key "bis_key_03", (value "cc0977c8b258511c0f6a1d0827e4aa127fd04d09ef895bcc2a303dc04e88cc0e")
[WARN]: Failed to match key "bis_key_source_00", (value "f83f386e2cd2ca32a89ab9aa29bfc7487d92b03aa8bfdee1a74c3b6e35cb7106")
[WARN]: Failed to match key "bis_key_source_01", (value "41003049ddccc065647a7eb41eed9c5f44424edab49dfcd98777249adc9f7ca4")
[WARN]: Failed to match key "bis_key_source_02", (value "52c2e9eb09e3ee2932a10c1fb6a0926c4d12e14b2a474c1c09cb0359f015f4e4")
[WARN]: Failed to match key "device_key", (value "c8c0453eb3d24f6930dfa9ebcd2437fd")
[WARN]: Failed to match key "device_key_4x", (value "21f208fe4c14d1695f5b46c8985dc5c3")
[WARN]: Failed to match key "eticket_rsa_kek", (value "19c8b441d318802bad63a5beda283a84")
[WARN]: Failed to match key "eticket_rsa_kek_source", (value "dba451124ca0a9836814f5ed95e3125b")
[WARN]: Failed to match key "eticket_rsa_kekek_source", (value "466e57b74a447f02f321cde58f2f5535")
[WARN]: Failed to match key "eticket_rsa_keypair", (value "184760334fb5338a32de59a2cae96024acf0f5e3265159ff975ee60ef65d27267b807e40224c08bc92808489c80b0b0d63d30ce459e49aff605ea74ec2d5b48a130efec2ed3d09cb0e6e705f09083ff6416567e157667262e9cc0420dfe2dbc0784bd30941248bc0707a30a7c38d2eee5006c89e42bbfdd1c709ddf9e5c482b69b493d9ccfc0577788199715a30dbf95acd15e1391fe4780d0df390f81ed6b3226f5c621a760f9438ac772dc729a84bb721d8b0dbab27e3aeb66e424e3e326064de49bff8c67133d551a78f1a6d554fc84d348ba6d1d3033f9b355f65fcd38d0e36dc1f8c9a2c8f85bd9d824625335b98f5c35a745166a598c227e275b1ca04d8024ca592fd23708e4f0fb0e0d28343e8864d56daa5e24ad20b01906aaffb8d2ad48d59a9e0d76a9a94ecc717cc514315ffb11143dc9b6a50bbb4c3ff4e061a3178bc21b416aac272d3e61f5ed39509a13d3938780018570a2462daa0720c0b68073074ccd376a81af5c13ea3b9a34267da976abf9096460ffe3bc0ab72b3e5a85e0644a13f2f6ddd7927374cec0248fd023f31d7d9757de8b8899e0141a4921c18371bf2dc87f6b73b1761e9a2665570f57b97e623e4390c59c825c0d4ff3592442779a44d01d26fb35af25db6d3f7d13b6e888d9a0aceb9ee45ad4ef3d1052c996a24e62df143290a12a34a6e05c7d440ba60b9")
[WARN]: Failed to match key "retail_specific_aes_key_source", (value "e2d6b87a119cb880e822888a46fba195")
[WARN]: Failed to match key "rsa_oaep_kek_generation_source", (value "a8ca938434127fda82cc1aa5e807b112")
[WARN]: Failed to match key "rsa_private_kek_generation_source", (value "ef2cb61a56729b9157c38b9316784ddd")
[WARN]: Failed to match key "save_mac_key", (value "9dae284ac051d6084f0ae534cdbd7dfe")
[WARN]: Failed to match key "save_mac_sd_card_kek_source", (value "0489ef5d326e1a59c4b7ab8c367aab17")
[WARN]: Failed to match key "save_mac_sd_card_key_source", (value "6f645947c56146f9ffa045d595332918")
[WARN]: Failed to match key "sd_card_custom_storage_key_source", (value "370c345e12e4cefe21b58e64db52af354f2ca5a3fc999a47c03ee004485b2fd0")
[WARN]: Failed to match key "sd_seed", (value "36823a8d3a07cbaf69969dc0cd55de73")
[WARN]: Failed to match key "ssl_rsa_kek", (value "b011100660d1dccbad1b1b733afa9f95")
[WARN]: Failed to match key "ssl_rsa_kek_source_x", (value "7f5bb0847b25aa67fac84be23d7b6903")
[WARN]: Failed to match key "ssl_rsa_kek_source_y", (value "9a383bf431d0bd8132534ba964397de3")
hactool (c) SciresM.
Built: 19:27:03 Oct 3 2022

Usage: ./hactool [options...]
Options:
-i, --info Show file info.
This is the default action.
-x, --extract Extract data from file.
This is also the default action.
-r, --raw Keep raw data, don't unpack.
-y, --verify Verify hashes and signatures.
-d, --dev Decrypt with development keys instead of retail.
-k, --keyset Load keys from an external file.
-t, --intype=type Specify input file type [nca, xci, pfs0, romfs, hfs0, npdm, pk11, pk21, ini1, kip1, nax0, save, keygen]
--titlekey=key Set title key for Rights ID crypto titles.
--contentkey=key Set raw key for NCA body decryption.
--disablekeywarns Disables warning output when loading external keys.
NCA options:
--plaintext=file Specify file path for saving a decrypted copy of the NCA.
--header=file Specify Header file path.
--section0=file Specify Section 0 file path.
--section1=file Specify Section 1 file path.
--section2=file Specify Section 2 file path.
--section3=file Specify Section 3 file path.
--section0dir=dir Specify Section 0 directory path.
--section1dir=dir Specify Section 1 directory path.
--section2dir=dir Specify Section 2 directory path.
--section3dir=dir Specify Section 3 directory path.
--exefs=file Specify ExeFS file path. Overrides appropriate section file path.
--exefsdir=dir Specify ExeFS directory path. Overrides appropriate section directory path.
--romfs=file Specify RomFS file path. Overrides appropriate section file path.
--romfsdir=dir Specify RomFS directory path. Overrides appropriate section directory path.
--listromfs List files in RomFS.
--baseromfs Set Base RomFS to use with update partitions.
--basenca Set Base NCA to use with update partitions.
--basefake Use a fake Base RomFS with update partitions (all reads will return 0xCC).
--onlyupdated Ignore non-updated files in update partitions.
--xcontenttype= Only extract contents if the content type matches an expected one.
Supported types are integers 0-9 or [program, meta, control, manual, data, publicdata].
--appendsectypes Append a section type string to section paths.
--suppresskeys Suppress output of decrypted keys.
NPDM options:
--json=file Specify file path for saving JSON representation of program permissions to.
KIP1 options:
--json=file Specify file path for saving JSON representation of program permissions to.
--uncompressed=f Specify file path for saving uncompressed KIP1.
NSO0 options:
--uncompressed=f Specify file path for saving uncompressed NSO0.
PFS0 options:
--pfs0dir=dir Specify PFS0 directory path.
--outdir=dir Specify PFS0 directory path. Overrides previous path, if present.
--exefsdir=dir Specify PFS0 directory path. Overrides previous paths, if present for ExeFS PFS0.
RomFS options:
--romfsdir=dir Specify RomFS directory path.
--outdir=dir Specify RomFS directory path. Overrides previous path, if present.
--listromfs List files in RomFS.
HFS0 options:
--hfs0dir=dir Specify HFS0 directory path.
--outdir=dir Specify HFS0 directory path. Overrides previous path, if present.
--exefsdir=dir Specify HFS0 directory path. Overrides previous paths, if present.
XCI options:
--rootdir=dir Specify XCI root HFS0 directory path.
--updatedir=dir Specify XCI update HFS0 directory path.
--normaldir=dir Specify XCI normal HFS0 directory path.
--securedir=dir Specify XCI secure HFS0 directory path.
--logodir=dir Specify XCI logo HFS0 directory path.
--outdir=dir Specify XCI directory path. Overrides previous paths, if present.
Package1 options:
--package1dir=dir Specify Package1 directory path.
--outdir=dir Specify Package1 directory path. Overrides previous path, if present.
Package2 options:
--package2dir=dir Specify Package2 directory path.
--outdir=dir Specify Package2 directory path. Overrides previous path, if present.
--extractini1 Enable INI1 extraction to default directory (redundant with --ini1dir set).
--ini1dir=dir Specify INI1 directory path. Overrides default path, if present.
INI1 options:
--ini1dir=dir Specify INI1 directory path.
--outdir=dir Specify INI1 directory path. Overrides previous path, if present.
--saveini1json Enable generation of JSON descriptors for all INI1 members.
NAX0 options:
--sdseed=seed Set console unique seed for SD card NAX0 encryption.
--sdpath=path Set relative path for NAX0 key derivation (ex: /registered/000000FF/cafebabecafebabecafebabecafebabe.nca).
Save data options:
--outdir=dir Specify save directory path.
--listfiles List files in save file.
Key Derivation options:
--sbk=key Set console unique Secure Boot Key for key derivation.
--tseckey=key Set console unique TSEC Key for key derivation.

unable to open : No such file or directory
rm: missing operand
Try 'rm --help' for more information.
hacPack v1.36 by The-4n

----> Preparing:
Loading '/root/.switch/prod.keys' keyset file
Error: Bad TitleID: 0000000000000000
Valid TitleID range: 0100000000000000 - ffffffffffffffff
Usage: hacpack [options...]

Options:
General options:
-o, --outdir Set output directory
-k, --keyset Set keyset filepath, default filepath is ./keys.dat
-h, --help Display usage
--type Set file type [nca, nsp]
--titleid Set titleid
NCA required options:
--ncatype Set nca type if file type is nca [program, control, manual, data, publicdata, meta]
NCA general options:
--tempdir Set temp directory filepath, default filepath is ./hacbpack_temp/
--backupdir Set backup directory filepath, default filepath is ./hacbpack_backup/
--keygeneration Set keygeneration for encrypting key area, default keygeneration is 1
--plaintext Skip encrypting sections and set section header block crypto type to plaintext
--sdkversion Set SDK version in hex, default SDK version is 000C1100
--keyareakey Set key area key 2 in hex with 16 bytes length
--ncasig Set nca signature type [zero, static, random]. Default is zero
--disttype Set nca distribution type [download, gamecard]. Default is download
--ncasig1privatekey Set private key filepath for signing nca signature 1 with PEM format
Program NCA options:
--exefsdir Set program exefs directory path
--romfsdir Set program romfs directory path
--logodir Set program logo directory path
--titlekey Set Titlekey for encrypting nca
--acidsigprivatekey Set private key filepath for signing acid with PEM format
--ncasig2privatekey Set private key filepath for signing nca signature 2 with PEM format
--ncasig2modulus Set modulus filepath for signing nca signature 2
--nosignncasig2 Skip patching acid public key in npdm and signing nca header with self-signed keys
Control NCA options:
--romfsdir Set control romfs directory path
Manual NCA options:
--romfsdir Set manual romfs directory path
--titlekey Set Titlekey for encrypting nca
Data NCA options:
--romfsdir Set data romfs directory path
PublicData NCA options:
--romfsdir Set publicdata romfs directory path
--titlekey Set Titlekey for encrypting nca
Metadata NCA options:
--titletype Set cnmt title type [application, patch, addon, systemprogram, systemdata]
--titleversion Set title-version in hex with 4 bytes length, default value is 0x0
--programnca Set program nca path
--controlnca Set control nca path
--legalnca Set legal information nca path
--htmldocnca Set offline manual nca path
--datanca Set data nca path
--cnmt Set cnmt path
--digest Set cnmt digest
NSP options:
--ncadir Set input nca directory path
mv: missing destination file operand after 'nca'
Try 'mv --help' for more information.
hacPack v1.36 by The-4n

----> Preparing:
Loading '/root/.switch/prod.keys' keyset file
Error: Bad TitleID: 0000000000000000
Valid TitleID range: 0100000000000000 - ffffffffffffffff
Usage: hacpack [options...]

Options:
General options:
-o, --outdir Set output directory
-k, --keyset Set keyset filepath, default filepath is ./keys.dat
-h, --help Display usage
--type Set file type [nca, nsp]
--titleid Set titleid
NCA required options:
--ncatype Set nca type if file type is nca [program, control, manual, data, publicdata, meta]
NCA general options:
--tempdir Set temp directory filepath, default filepath is ./hacbpack_temp/
--backupdir Set backup directory filepath, default filepath is ./hacbpack_backup/
--keygeneration Set keygeneration for encrypting key area, default keygeneration is 1
--plaintext Skip encrypting sections and set section header block crypto type to plaintext
--sdkversion Set SDK version in hex, default SDK version is 000C1100
--keyareakey Set key area key 2 in hex with 16 bytes length
--ncasig Set nca signature type [zero, static, random]. Default is zero
--disttype Set nca distribution type [download, gamecard]. Default is download
--ncasig1privatekey Set private key filepath for signing nca signature 1 with PEM format
Program NCA options:
--exefsdir Set program exefs directory path
--romfsdir Set program romfs directory path
--logodir Set program logo directory path
--titlekey Set Titlekey for encrypting nca
--acidsigprivatekey Set private key filepath for signing acid with PEM format
--ncasig2privatekey Set private key filepath for signing nca signature 2 with PEM format
--ncasig2modulus Set modulus filepath for signing nca signature 2
--nosignncasig2 Skip patching acid public key in npdm and signing nca header with self-signed keys
Control NCA options:
--romfsdir Set control romfs directory path
Manual NCA options:
--romfsdir Set manual romfs directory path
--titlekey Set Titlekey for encrypting nca
Data NCA options:
--romfsdir Set data romfs directory path
PublicData NCA options:
--romfsdir Set publicdata romfs directory path
--titlekey Set Titlekey for encrypting nca
Metadata NCA options:
--titletype Set cnmt title type [application, patch, addon, systemprogram, systemdata]
--titleversion Set title-version in hex with 4 bytes length, default value is 0x0
--programnca Set program nca path
--controlnca Set control nca path
--legalnca Set legal information nca path
--htmldocnca Set offline manual nca path
--datanca Set data nca path
--cnmt Set cnmt path
--digest Set cnmt digest
NSP options:
--ncadir Set input nca directory path
hacPack v1.36 by The-4n

----> Preparing:
Loading '/root/.switch/prod.keys' keyset file
Error: Bad TitleID: 0000000000000000
Valid TitleID range: 0100000000000000 - ffffffffffffffff
Usage: hacpack [options...]

Options:
General options:
-o, --outdir Set output directory
-k, --keyset Set keyset filepath, default filepath is ./keys.dat
-h, --help Display usage
--type Set file type [nca, nsp]
--titleid Set titleid
NCA required options:
--ncatype Set nca type if file type is nca [program, control, manual, data, publicdata, meta]
NCA general options:
--tempdir Set temp directory filepath, default filepath is ./hacbpack_temp/
--backupdir Set backup directory filepath, default filepath is ./hacbpack_backup/
--keygeneration Set keygeneration for encrypting key area, default keygeneration is 1
--plaintext Skip encrypting sections and set section header block crypto type to plaintext
--sdkversion Set SDK version in hex, default SDK version is 000C1100
--keyareakey Set key area key 2 in hex with 16 bytes length
--ncasig Set nca signature type [zero, static, random]. Default is zero
--disttype Set nca distribution type [download, gamecard]. Default is download
--ncasig1privatekey Set private key filepath for signing nca signature 1 with PEM format
Program NCA options:
--exefsdir Set program exefs directory path
--romfsdir Set program romfs directory path
--logodir Set program logo directory path
--titlekey Set Titlekey for encrypting nca
--acidsigprivatekey Set private key filepath for signing acid with PEM format
--ncasig2privatekey Set private key filepath for signing nca signature 2 with PEM format
--ncasig2modulus Set modulus filepath for signing nca signature 2
--nosignncasig2 Skip patching acid public key in npdm and signing nca header with self-signed keys
Control NCA options:
--romfsdir Set control romfs directory path
Manual NCA options:
--romfsdir Set manual romfs directory path
--titlekey Set Titlekey for encrypting nca
Data NCA options:
--romfsdir Set data romfs directory path
PublicData NCA options:
--romfsdir Set publicdata romfs directory path
--titlekey Set Titlekey for encrypting nca
Metadata NCA options:
--titletype Set cnmt title type [application, patch, addon, systemprogram, systemdata]
--titleversion Set title-version in hex with 4 bytes length, default value is 0x0
--programnca Set program nca path
--controlnca Set control nca path
--legalnca Set legal information nca path
--htmldocnca Set offline manual nca path
--datanca Set data nca path
--cnmt Set cnmt path
--digest Set cnmt digest
NSP options:
--ncadir Set input nca directory path
mv: cannot stat 'temp/nsp/.nsp': No such file or directory"

Can u help me?

@Jose3342
Copy link

Jose3342 commented Nov 4, 2022

Baixei o Hollow knight (XCI) versão 1.4.3.2 e quando eu abri o emulador estava na versão 1.3.2.9, e quando eu abri o jogo no PC estava tudo certo. Por favor, como faço para resolver isso?

@pokeholmes001
Copy link

Para cuándo DLC installer patch.sh

@pokeholmes001
Copy link

?

@mamichini
Copy link

Error when running it, appears to be working, but then it starts displaying "Saving romfs..." "Failed to open romfs!" in a loop one behind the other, never ending, and it makes me terminate it with "Ctrl + C". I tried runing it with Sudo, using "Bash" instead of "./" and giving the .sh permission with "chmod +x". Any suggestion??

Pd: The game is South Park: The stick of truth, and the update is smaller than the base game.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment