Homebrew Question hactool not liking my keys

nopo

Well-Known Member
OP
Newcomer
Joined
Dec 6, 2017
Messages
57
Trophies
0
Age
53
XP
148
Country
Australia
I'm trying to get the romfs from let's go Pikachu and it says fail to match key

this is what it says
D:\Switch\Decrypt-nsp>hactool -x D:\Switch\games\lets go pikachu.nsp
[WARN]: Failed to match key "bis_kek_source", (value "")
[WARN]: Failed to match key "bis_key_00", (value "")
[WARN]: Failed to match key "bis_key_01", (value "")
[WARN]: Failed to match key "bis_key_02", (value "")
[WARN]: Failed to match key "bis_key_03", (value "")
[WARN]: Failed to match key "bis_key_source_00", (value "")
[WARN]: Failed to match key "bis_key_source_01", (value "")
[WARN]: Failed to match key "bis_key_source_02", (value "")
[WARN]: Failed to match key "device_key", (value "")
[WARN]: Failed to match key "eticket_rsa_kek", (value "")
[WARN]: Failed to match key "eticket_rsa_kek_source", (value "")
[WARN]: Failed to match key "eticket_rsa_kekek_source", (value "")
[WARN]: Failed to match key "per_console_key_source", (value "")
[WARN]: Failed to match key "retail_specific_aes_key_source", (value "")
[WARN]: Failed to match key "rsa_oaep_kek_generation_source", (value "")
[WARN]: Failed to match key "rsa_private_kek_generation_source", (value "")
[WARN]: Failed to match key "save_mac_key", (value "")
[WARN]: Failed to match key "sd_seed", (value "")
[WARN]: Failed to match key "ssl_rsa_kek", (value ")
[WARN]: Failed to match key "ssl_rsa_kek_source_x", (value "")
[WARN]: Failed to match key "ssl_rsa_kek_source_y", (value "")
hactool (c) SciresM.
Built: 00:52:28 Nov 24 2018

in the file i put it will be what keys i have
 

Attachments

  • keys with no keys.txt
    2.8 KB · Views: 340

Dust2dust

Well-Known Member
Member
Joined
Jun 17, 2010
Messages
2,420
Trophies
2
XP
4,370
Country
Canada
Can't give you a direct link to the keys, but Google is your friend.
Hint: search for "key_area_key_system_07"
also search for "key_area_key_system_08"
Build yourself a nice up to date keys.txt file (or prod.keys)
 

nopo

Well-Known Member
OP
Newcomer
Joined
Dec 6, 2017
Messages
57
Trophies
0
Age
53
XP
148
Country
Australia
Can't give you a direct link to the keys, but Google is your friend.
Hint: search for "key_area_key_system_07"
also search for "key_area_key_system_08"
Build yourself a nice up to date keys.txt file (or prod.keys)

i used lockpick rcm to get the keys, do i need more
 

Dust2dust

Well-Known Member
Member
Joined
Jun 17, 2010
Messages
2,420
Trophies
2
XP
4,370
Country
Canada
Lockpick is another option if your Switch is running the latest update. If not (like me), the Google option definitely works. :D
 

nopo

Well-Known Member
OP
Newcomer
Joined
Dec 6, 2017
Messages
57
Trophies
0
Age
53
XP
148
Country
Australia
Lockpick is another option if your Switch is running the latest update. If not (like me), the Google option definitely works. :D

my switch is on fw 8.1.0 and i used lock pick and i linked what keys im using do i need more
 

Dust2dust

Well-Known Member
Member
Joined
Jun 17, 2010
Messages
2,420
Trophies
2
XP
4,370
Country
Canada
The file you uploaded has no keys. I assume you edited them out. If not, Lockpick didn't work properly. Try again. Or just use Google. (google is faster)
 

8BitWonder

Small Homebrew Dev
Member
Joined
Jan 23, 2016
Messages
2,489
Trophies
1
Location
47 4F 54 20 45 45 4D
XP
5,353
Country
United States
You're not using hactool properly.
Those key mismatch errors don't matter because hactool doesn't use those.
In a nutshell it's saying "hey there are keys here that we can't match to any we use".

To extract the NCAs of the NSP you need to run something like:
Code:
hactool -x -tpfs0 --pfs0dir="<Output path>" "<Path to NSP>"

Then on the largest NCA you would run the following to extract the game romfs:
Code:
hactool -x -tnca --romfsdir="<Output path>" "<Path to NCA>"
 
Last edited by 8BitWonder,
  • Like
Reactions: ELY_M

nopo

Well-Known Member
OP
Newcomer
Joined
Dec 6, 2017
Messages
57
Trophies
0
Age
53
XP
148
Country
Australia
You're not using hactool properly.
Those key mismatch errors don't matter because hactool doesn't use those.
In a nutshell it's saying "hey there are keys here that we can't match to any we use".

To extract the NCAs of the NSP you need to run something like:
Code:
hactool -x -tpfs0 --pfs0dir="<Output path>" "<Path to NSP>"

Then on the largest NCA you would run the following to extract the game romfs:
Code:
hactool -x -tnca --romfsdir="<Output path>" "<Path to NCA>"


when i did the first command i still get the same error and no files get put in the output path
 

8BitWonder

Small Homebrew Dev
Member
Joined
Jan 23, 2016
Messages
2,489
Trophies
1
Location
47 4F 54 20 45 45 4D
XP
5,353
Country
United States
hactool -x -tpfs0 --pfs0dir=D:\Switch\games\pokemon D:\Switch\games\lets go pikachu.nsp
Enter:
hactool -x -tpfs0 --pfs0dir="D:\Switch\games\pokemon" "D:\Switch\games\lets go pikachu.nsp"
With those quotation marks added.

They shouldn't be necessary for your outpath (though I recommend them anyway) but you certainly need them for your NSP path.
As it is right now it's looking for "D:\Switch\games\lets" when you don't put quotations around it.
 

simskidd

Member
Newcomer
Joined
Dec 3, 2019
Messages
7
Trophies
0
Age
24
XP
51
Country
United States
You're not using hactool properly.
Those key mismatch errors don't matter because hactool doesn't use those.
In a nutshell it's saying "hey there are keys here that we can't match to any we use".

To extract the NCAs of the NSP you need to run something like:
Code:
hactool -x -tpfs0 --pfs0dir="<Output path>" "<Path to NSP>"

Then on the largest NCA you would run the following to extract the game romfs:
Code:
hactool -x -tnca --romfsdir="<Output path>" "<Path to NCA>"
i don't know where to put that command
 

adityab3

New Member
Newbie
Joined
Feb 17, 2023
Messages
1
Trophies
0
Age
20
XP
28
Country
India
@8BitWonder can you please help me fixing this line
hactool --basenca="$basenca" $updatenca --romfsdir="romfs" --exefsdir="exefs"
Here's the Error:
Failed to read from Base NCA RomFS!
 
Last edited by adityab3,

8BitWonder

Small Homebrew Dev
Member
Joined
Jan 23, 2016
Messages
2,489
Trophies
1
Location
47 4F 54 20 45 45 4D
XP
5,353
Country
United States
@8BitWonder can you please help me fixing this line
hactool --basenca="$basenca" $updatenca --romfsdir="romfs" --exefsdir="exefs"
Here's the Error:
Failed to read from Base NCA RomFS!
Been a while since I've touched hactool, try the following and see if it makes a difference;

hactool -x -tnca --basenca="$basenca" --romfsdir="romfs" --exefsdir="exefs" "$updatenca"

Also make sure you have the correct base/update titlekeys in your title.keys file if they're encrypted.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    BigOnYa @ BigOnYa: Z like Sunday morning