1. nopo

    OP nopo Advanced Member
    Newcomer

    Joined:
    Dec 6, 2017
    Messages:
    57
    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
     

    Attached Files:

  2. Dust2dust

    Dust2dust GBAtemp Maniac
    Member

    Joined:
    Jun 17, 2010
    Messages:
    1,152
    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)
     
  3. nopo

    OP nopo Advanced Member
    Newcomer

    Joined:
    Dec 6, 2017
    Messages:
    57
    Country:
    Australia
    i used lockpick rcm to get the keys, do i need more
     
  4. Dust2dust

    Dust2dust GBAtemp Maniac
    Member

    Joined:
    Jun 17, 2010
    Messages:
    1,152
    Country:
    Canada
    Lockpick is another option if your Switch is running the latest update. If not (like me), the Google option definitely works. :D
     
  5. nopo

    OP nopo Advanced Member
    Newcomer

    Joined:
    Dec 6, 2017
    Messages:
    57
    Country:
    Australia
    my switch is on fw 8.1.0 and i used lock pick and i linked what keys im using do i need more
     
  6. Dust2dust

    Dust2dust GBAtemp Maniac
    Member

    Joined:
    Jun 17, 2010
    Messages:
    1,152
    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)
     
  7. 8BitWonder

    8BitWonder Small Homebrew Dev
    Member

    Joined:
    Jan 23, 2016
    Messages:
    2,103
    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: Jul 10, 2019
    ELY_M likes this.
  8. nopo

    OP nopo Advanced Member
    Newcomer

    Joined:
    Dec 6, 2017
    Messages:
    57
    Country:
    Australia

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

    8BitWonder Small Homebrew Dev
    Member

    Joined:
    Jan 23, 2016
    Messages:
    2,103
    Country:
    United States
    What is the exact input you're entering?

    I might know what's wrong but I want to be sure.
     
  10. nopo

    OP nopo Advanced Member
    Newcomer

    Joined:
    Dec 6, 2017
    Messages:
    57
    Country:
    Australia
    hactool -x -tpfs0 --pfs0dir=D:\Switch\games\pokemon D:\Switch\games\lets go pikachu.nsp
     
  11. 8BitWonder

    8BitWonder Small Homebrew Dev
    Member

    Joined:
    Jan 23, 2016
    Messages:
    2,103
    Country:
    United States
    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.
     
  12. nopo

    OP nopo Advanced Member
    Newcomer

    Joined:
    Dec 6, 2017
    Messages:
    57
    Country:
    Australia
    thank you
     
    Last edited: Jul 10, 2019
  13. simskidd

    simskidd Newbie
    Newcomer

    Joined:
    Dec 3, 2019
    Messages:
    7
    Country:
    United States
    i don't know where to put that command
     
  14. 8BitWonder

    8BitWonder Small Homebrew Dev
    Member

    Joined:
    Jan 23, 2016
    Messages:
    2,103
    Country:
    United States
    Open a terminal/command prompt in whatever directory you have hactool and enter those commands there.
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - hactool, liking,