Lockpick_RCM payload - Official Thread


Description

Lockpick_RCM is a bare metal Nintendo Switch payload that derives encryption keys for use in Switch file handling software like hactool, hactoolnet/LibHac, ChoiDujour, etc. without booting Horizon OS.

Source: https://github.com/shchmue/Lockpick_RCM
Payload: https://github.com/shchmue/Lockpick_RCM/releases

Due to changes imposed by firmware 7.0.0, Lockpick homebrew can no longer derive the latest keys. In the boot-time environment however, there are fewer limitations. That means the new keys are finally easy to dump!

Usage
  • Launch Lockpick_RCM.bin using your favorite payload injector or chainload from Hekate by placing it in /bootloader/payloads
  • Upon completion, keys will be saved to /switch/prod.keys on SD
  • If the console has Firmware 7.x, the /sept/ folder from Atmosphère or Kosmos release zip containing both sept-primary.bin and sept-secondary.enc must be present on SD or else only keyblob master key derivation is possible (ie. up to master_key_05 only)
Big thanks to CTCaer
For Hekate and all the advice while developing this!

Known Issues
  • Chainloading from SX will hang immediately due to quirks in their hwinit code, please launch payload directly
 

Attachments

  • AB1248EA-8BB9-448B-83F5-FF68C2579FB1.jpeg
    AB1248EA-8BB9-448B-83F5-FF68C2579FB1.jpeg
    11.2 KB · Views: 0
Last edited by shchmue,

cai_miao

Well-Known Member
Newcomer
Joined
Jun 6, 2017
Messages
56
Trophies
0
XP
322
Country
China
thank you for you hard work. verified working on mariko.

a note to average mariko users, you have to use alternative firmware of tx/gateway modchip (specifically Spacecraft-NX at the moment) in order to extract correct keyset
 
Last edited by cai_miao,

nickveldrin

Member
Newcomer
Joined
Aug 31, 2016
Messages
9
Trophies
0
Age
45
XP
205
Country
United States
thank you for you hard work. verified working on mariko.

a note to average mariko users, you have to use alternative firmware of tx/gateway modchip (specifically Spacecraft-NX at the moment) in order to extract correct keyset
What does this mean? We cannot do it natively on sx core?
 

nickveldrin

Member
Newcomer
Joined
Aug 31, 2016
Messages
9
Trophies
0
Age
45
XP
205
Country
United States
20201211_101213.jpg
Above pic is on my mariko with SX Core, so i guess it is not clear to me which of the keysets in the prod.keys are proper for the partialaeskeycrack.exe ?

Here are notes from the github:
Code:
The contents of this file are the keyslot number followed by the result of that keyslot encrypting 16 null bytes. With the tool linked above, enter them in sequence for a given keyslot you want the contents of, for example: PartialAesKeyCrack.exe <num1> <num2> <num3> <num4> with the --numthreads=N where N is the number of threads you can dedicate to the brute force.

The keyslots are as follows:
12 - Mariko KEK (this is used for master key derivation)
13 - Mariko BEK (this is used for package1 decryption)
14 - console unique SBK (this isn't needed for further key derivation)
15 - console unique SSK (this is used on dev only)
Does anyone know which specific keynames are the right ones?
 

cai_miao

Well-Known Member
Newcomer
Joined
Jun 6, 2017
Messages
56
Trophies
0
XP
322
Country
China
What does this mean? We cannot do it natively on sx core?
yes because gateway drm clears key before you access it.
go flash spacecraft, extract your keys and wait for atmosphere 0.17.0 drops.

or if you wish a functional HOS at the moment, by flashing the bootloader backup back and use the "updater" tool on gw site, you are also able to go back gw firmware. no further instructions i wish to provide.
 
Last edited by cai_miao,

kenton6

New Member
Newbie
Joined
Dec 12, 2020
Messages
3
Trophies
0
Age
44
XP
59
Country
United States
hi, I'm kinda new. I was halfway through modifying my first switch when I was hit with the key extraction bug with 1.8.5 and system 11.0.

There doesn't seem to be the lockpick_rcm.bin file in the 1.9.0 release I need to copy to the SD card to extract the keys?


Also, DesignGears? Same guy from the ATT Captivate ROMs like... a decade ago!? I knew I remembered that name from somewhere! :D
 

LyuboA

Unknown Entity
Member
Joined
Jun 1, 2018
Messages
530
Trophies
0
XP
919
Country
Bulgaria
hi, I'm kinda new. I was halfway through modifying my first switch when I was hit with the key extraction bug with 1.8.5 and system 11.0.

There doesn't seem to be the lockpick_rcm.bin file in the 1.9.0 release I need to copy to the SD card to extract the keys?


Also, DesignGears? Same guy from the ATT Captivate ROMs like... a decade ago!? I knew I remembered that name from somewhere! :D

really you sure theres no bin file

https://github.com/shchmue/Lockpick_RCM/releases/download/v1.9.0/Lockpick_RCM.bin
 

mrdude

Developer
Developer
Joined
Dec 11, 2015
Messages
3,071
Trophies
1
Age
56
XP
8,227
@shchmue - thanks for updating.

I see there's no new keys added - 0b for example. I was expecting a new key would be added with the 11.0 firmware update. It's been a while since any new keys were added - do you have any knowledge why this could be?
 
  • Like
Reactions: peteruk

cai_miao

Well-Known Member
Newcomer
Joined
Jun 6, 2017
Messages
56
Trophies
0
XP
322
Country
China
@shchmue - thanks for updating.

I see there's no new keys added - 0b for example. I was expecting a new key would be added with the 11.0 firmware update. It's been a while since any new keys were added - do you have any knowledge why this could be?
new key extraction is sept dependent iirc
 

kenton6

New Member
Newbie
Joined
Dec 12, 2020
Messages
3
Trophies
0
Age
44
XP
59
Country
United States
why am I unable to find that bin? github is so confusing at times it's stupid. i have no idea how you found that bin, all I found was the damn source
 

shchmue

Developer
OP
Developer
Joined
Dec 23, 2013
Messages
791
Trophies
1
XP
2,367
Country
United States
@shchmue - thanks for updating.

I see there's no new keys added - 0b for example. I was expecting a new key would be added with the 11.0 firmware update. It's been a while since any new keys were added - do you have any knowledge why this could be?
they simply don’t always change key generation in major updates. i don’t know why they didn’t this time, but firmware updates from them do often require compatibility updates from me so i provide them.
why am I unable to find that bin? github is so confusing at times it's stupid. i have no idea how you found that bin, all I found was the damn source
under the description at the release link. releases are on the right hand side of the main repo page, else scroll in the thread back to where i linked the specific recent release
 
  • Like
Reactions: mrdude and peteruk

ZachyCatGames

Well-Known Member
Member
Joined
Jun 19, 2018
Messages
3,398
Trophies
1
Location
Hell
XP
4,209
Country
United States
I see there's no new keys added - 0b for example. I was expecting a new key would be added with the 11.0 firmware update. It's been a while since any new keys were added - do you have any knowledge why this could be?
Changing keys at this point would be completely pointless.
I’m guessing they won’t ever go past 0x0A on NX.
 

shchmue

Developer
OP
Developer
Joined
Dec 23, 2013
Messages
791
Trophies
1
XP
2,367
Country
United States
well, they might if they either patch a security flaw or think of another layer of security to add for future console horizon use. like what if the next hardware ends up with some vuln that doesn't apply to the current ones?
 
  • Like
Reactions: LyuboA and peteruk

shiro1811

New Member
Newbie
Joined
Dec 14, 2020
Messages
2
Trophies
0
Age
28
XP
59
Country
Antarctica
Hi,

I used 1.9.0 and it extrated the keys just fine, but I need a upper and lower biskey 3 for HacDiskMount and I can't find them in my key file. Is the designation just different?
 

shiro1811

New Member
Newbie
Joined
Dec 14, 2020
Messages
2
Trophies
0
Age
28
XP
59
Country
Antarctica
Biskeydump didn't worked for me, that's why I used Lockpick in the first place.
But thank you, I just need to split the extracted biskey. What an easy way... :switch:
 
Last edited by shiro1811,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Veho @ Veho: The cybertruck is a death trap.