Hacking Question which keys do i need for hactool?

  • Thread starter Thread starter tomi1578
  • Start date Start date
  • Views Views 20,942
  • Replies Replies 10

tomi1578

Well-Known Member
Member
Joined
Sep 12, 2018
Messages
136
Reaction score
35
Trophies
0
XP
405
Country
Israel
i'm trying to use hactool to turn an nsp to layered fs but i'm getting invalid nca header are keys correct i tried dumping keys with lockpick which gave me prod.keys but that doesn't seem to work i also tried renaming it to keys.txt and keys.ini but that doesn't work either what am i missing?
 
i'm trying to use hactool to turn an nsp to layered fs but i'm getting invalid nca header are keys correct i tried dumping keys with lockpick which gave me prod.keys but that doesn't seem to work i also tried renaming it to keys.txt and keys.ini but that doesn't work either what am i missing?
keys.txt:
master_key_00 =
master_key_01 =
master_key_02 =
master_key_03 =
master_key_04 =
master_key_05 =
master_key_06 =
master_key_07 =

header_key =
aes_kek_generation_source =
aes_key_generation_source =
key_area_key_application_source =
You can fill in the blanks. Keys are not allowed to be shared, so you have to move to another site. Good luck.
 
i'm trying to use hactool to turn an nsp to layered fs but i'm getting invalid nca header are keys correct i tried dumping keys with lockpick which gave me prod.keys but that doesn't seem to work i also tried renaming it to keys.txt and keys.ini but that doesn't work either what am i missing?
Code:
hactool -k prod.keys -t pfs0 --pfs0dir=extracted_game /path/to/game.nsp

By default hactool assumes an NCA (hence the error). You need to tell it you're giving it an NSP with -t pfs0
 
Last edited by DocKlokMan,
Code:
hactool -k prod.keys -t pfs0 --pfs0dir=extracted_game /path/to/game.nsp

By default hactool assumes an NCA (hence the error). You need to tell it you're giving it an NSP with -t pfs0
thank you!!!
how do i find a titlekey for an nca?
 
thank you!!!
how do i find a titlekey for an nca?
After extracting the NSP, you should have a TIK file. The title key is in that file. You can also dump it with a variety of homebrew apps like BlaWar's TinFoil or GoldLeaf or Lockpick.
 
I've tried extracting the nsp, i don't get a TIK file. I do get all the nca and xml files.
 
After extracting the NSP, you should have a TIK file. The title key is in that file. You can also dump it with a variety of homebrew apps like BlaWar's TinFoil or GoldLeaf or Lockpick.
i looked in the TIK file with hxd and it still said invild
 
i'm trying to use hactool to turn an nsp to layered fs but i'm getting invalid nca header are keys correct i tried dumping keys with lockpick which gave me prod.keys but that doesn't seem to work i also tried renaming it to keys.txt and keys.ini but that doesn't work either what am i missing?

I think I found somehow a way how it works. I created in my user's home directory a folder named ".switch" and put the prod.keys file in there. Now hactool recognices the keys.
 
Code:
hactool -k prod.keys -t pfs0 --pfs0dir=extracted_game /path/to/game.nsp

By default hactool assumes an NCA (hence the error). You need to tell it you're giving it an NSP with -t pfs0
Excuse me, how should I use the code ?
 

Site & Scene News

Popular threads in this forum