Hacking Sigpatches for Atmosphere (Hekate, fss0, fusee & package3)

bth

Member
Newcomer
Joined
Jan 10, 2024
Messages
13
Trophies
0
Age
28
XP
87
Country
Norway
Did not think to see if new lockpick was out thought it was discontinued a while back but good to know where to look now

https://github.com/borntohonk/Switch-Ghidra-Guides/blob/master/scripts/mariko_keygen.py



requirements: python3, hactoolnet, firmware files such as from https://github.com/THZoria/NX_Firmware/
usage:
1. git clone https://github.com/borntohonk/Switch-Ghidra-Guides.git
2. enter Switch-Ghidra-Guides folder
3. create folder named firmware, put .nca's from firmware dump inside of folder named firmware
4. python scripts/mariko_keygen.py

keys for whatever version firmware files you just processed got made. (regardless of how new or old)

There's no reason to use lockpick anymore, it requires maintenance and manual addition of master_kek_sources.


You can in other words, fully generate all keys on pc, just by using mariko_keygen.py and having firmware files.


copypasted from my README.md on the subject

* It will obtain the key source referred to as "mariko_master_kek_source_%%" from the firmware files you've provided, and output to prod.keys or a file location you've designated with -k or --keys.
* This script eliminates the need for "lockpick" of any kind, as long as the user provides firmware files.
* This script works by first extracting the nca containing package1 with master_key_00, then extracting "package1" with the "mariko_bek" (obtainable with the release.nfo for scene release of "Marvel's Spider-Man: Miles Morales" by BigBlueBox), and then proceeds in finding "mariko_master_kek_source_%%", And then transforms "mariko_master_kek_source_%%" using "mariko_kek" to become "master_kek" and subsequently sets off the key derivation chain, using the tool "hactoolnet".
* Usage: do "python scripts/mariko_keygen.py -f folder -k prod.keys" with firmware files present in a folder called firmware, or as supplied with -f or --firmware, or store the keys at another location as supplied with -k or --keys
 
Last edited by bth,

svoc

Active Member
Newcomer
Joined
Oct 12, 2024
Messages
36
Trophies
0
Age
29
XP
25
Country
United States
https://github.com/borntohonk/Switch-Ghidra-Guides/blob/master/scripts/mariko_keygen.py



requirements: python3, hactoolnet, firmware files such as from https://github.com/THZoria/NX_Firmware/
usage:
1. git clone https://github.com/borntohonk/Switch-Ghidra-Guides.git
2. enter Switch-Ghidra-Guides folder
3. create folder named firmware, put .nca's from firmware dump inside of folder named firmware
4. python scripts/mariko_keygen.py

keys for whatever version firmware files you just processed got made. (regardless of how new or old)

There's no reason to use lockpick anymore, it requires maintenance and manual addition of master_kek_sources.


You can in other words, fully generate all keys on pc, just by using mariko_keygen.py and having firmware files.


copypasted from my README.md on the subject

* It will obtain the key source referred to as "mariko_master_kek_source_%%" from the firmware files you've provided, and output to prod.keys or a file location you've designated with -k or --keys.
* This script eliminates the need for "lockpick" of any kind, as long as the user provides firmware files.
* This script works by first extracting the nca containing package1 with master_key_00, then extracting "package1" with the "mariko_bek" (obtainable with the release.nfo for scene release of "Marvel's Spider-Man: Miles Morales" by BigBlueBox), and then proceeds in finding "mariko_master_kek_source_%%", And then transforms "mariko_master_kek_source_%%" using "mariko_kek" to become "master_kek" and subsequently sets off the key derivation chain, using the tool "hactoolnet".
* Usage: do "python scripts/mariko_keygen.py -f folder -k prod.keys" with firmware files present in a folder called firmware, or as supplied with -f or --firmware, or store the keys at another location as supplied with -k or --keys
That is cool but can't use it unless it runs on android no PC never needed one I use my phones desktop mode at home to get remote work done and that is I ever needed
 

SHAM_UAE

Member
Newcomer
Joined
Oct 17, 2024
Messages
10
Trophies
1
Age
31
XP
28
Country
United Arab Emirates
Hi all, i download ps1 games from tinfoil and installed already RetoArch.

when i try to launch the game there is message appear to me saying unable to start software, it was work before with old CFW
 

impeeza

¡Kabito!
Member
Joined
Apr 5, 2011
Messages
7,920
Trophies
4
Age
46
Location
At my chair.
XP
26,824
Country
Colombia
That is cool but can't use it unless it runs on android no PC never needed one I use my phones desktop mode at home to get remote work done and that is I ever needed
It's python, runs everywhere!
Post automatically merged:

atmosphere=1 isn't needed.
You shouldn't be being usb3 enabled all the time. There are reasons why it's disabled by default.
Any update? Any source?
 
Last edited by impeeza,

LuigiGad

Well-Known Member
Member
Joined
May 7, 2023
Messages
247
Trophies
0
Age
56
XP
710
Country
Italy
because that version of SYS-Patch was built with another branch of the code which have some additional code, that code is not for everybody use, that is why I removed the binary, now we have very convenient ways to create forwarders which can work on any Atmosphère version there is no point to add extra patches to sys-patch.

you can create such forwarders using https://github.com/mrdude2478/NRO-Forwarder or https://nsp-forwarder.n8.io/.

about tinfoil and Super Mario 64 NSP they are more piracy than homebrew, so no too mucho support is provided. you can switch to alternatives, for tinfoil you can use TinWoo https://github.com/mrdude2478/TinWoo/releases and for super Mario 64 you can create a NRO in a legal way following the instructions on https://gbatemp.net/threads/building-sm64-for-nintendo-switch-from-sm64ex-alo-repository.652092
Post automatically merged:


Hello there, can you please elaborate on this or share with us sources of that information, I really love to learn.
I am pleased to have asked a question that has opened a technical discussion. We all agree on creating forwarders and personally using https://nsp-forwarder.n8.io/ is the best solution. As for the self-installing retroroms usually provided by remote servers through tinfoil I didn't want to talk about piracy, of course, but I was referring to the possibility of installing these retroroms, I'm talking for example about some games for nes that I'm fond of and that fortunately I own the original cartridge. It would be a shame not to implement the portion of code that allows this, so I wonder, in the future sys-patch compiled by you, will it allow this convenience?
 

svoc

Active Member
Newcomer
Joined
Oct 12, 2024
Messages
36
Trophies
0
Age
29
XP
25
Country
United States
It's python, runs everywhere!
Post automatically merged:


Any update? Any source?
Sadly the hacktool crashes every time it can't create the the file because it is missing the module submodule and the one the can be installed on android does not work with it so can't use it oh well android sucks for programming
 

bth

Member
Newcomer
Joined
Jan 10, 2024
Messages
13
Trophies
0
Age
28
XP
87
Country
Norway
Sadly the hacktool crashes every time it can't create the the file because it is missing the module submodule and the one the can be installed on android does not work with it so can't use it oh well android sucks for programming
hactoolnet (which mariko_keygen.py uses, not hactool) is indeed not available for android.
 

NotUsingAnAltAccount

Well-Known Member
Member
Joined
Dec 7, 2023
Messages
102
Trophies
0
Age
54
XP
334
Country
Iceland
You need a PC, Android is not an OS for something like this. Just get a cheap 10” Windows tablet from China. Even something with this old Atom CPU would be more than enough https://www.aliexpress.com/item/1005007252104950.html

Still, I would recommend something with for example N5100 or N100 CPU nowadays and minimum 6/8GB, but you can do simple stuff on the cheapest ones.
 

svoc

Active Member
Newcomer
Joined
Oct 12, 2024
Messages
36
Trophies
0
Age
29
XP
25
Country
United States
hactoolnet (which mariko_keygen.py uses, not hactool) is indeed not available for android.
My bad autocorrect on hactoolnet
Post automatically merged:

You need a PC, Android is not an OS for something like this. Just get a cheap 10” Windows tablet from China. Even something with this old Atom CPU would be more than enough https://www.aliexpress.com/item/1005007252104950.html

Still, I would recommend something with for example N5100 or N100 CPU noawadays and minimum 6/8GB, but you can do simple stuff on the cheapest ones.
One day I will format the hard drives of the stack of laptops I have and put windows or Linux on them but just don't care or have time for PCs with work and kids my phone and work vm is all I need for now
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: @realtimesave, I collect roms