Hacking Discussion Info on SHA-256 hashes on FS patches

mrdude

Well-Known Member
Member
Joined
Dec 11, 2015
Messages
1,600
Trophies
1
Age
54
XP
4,463
Country
Here's a script to give you information on NCA files, it will tell you the build id of all nca program files, tell you which ones are data files, and what each program file is for, example output from older firmware:

Code:
TitleName: miiEdit
ContentType: Program
NCA: 19307f5f66d14d5fde3e8f4b7ed48c5f.nca
Build ID: 85467BA42D60A236BB4B8EE6EA7B4CAA00000000

TitleName: photoViewer
ContentType: Program
NCA: 1ac8abb9893b55c77973b32e140374c5.nca
Build ID: 13DA3B17B1576B7B4EE3CEEE0A06CA75BD62BFEC

TitleName: hid
ContentType: Program
NCA: 1d6c9391cf779a1513349b3ebe6a976a.nca
Build ID: BBEE6C2C132C849BC313B0E38732D91B9C45FBFD

TitleName: erpt
ContentType: Program
NCA: 1dcdf15f7e3573a40638b51cbc1a891a.nca
Build ID: 9A8EE720F1F5C8BA16E1CEE98065184DBC27FB50

ContentType: Data
NCA: 1e3e4a0eb1f1509ba01ebcac59208b27.nca

Obviously you can mod this script for your own needs but it's handy for finding stuff for making patches.
 

Attachments

  • NCA-Info.zip
    1.8 KB · Views: 76

DarkenSX

Well-Known Member
Member
Joined
Mar 28, 2009
Messages
109
Trophies
0
Age
36
Location
Earth
XP
425
Country
United States
hi sorry to ask but how do i go about populating the template i have a modded switch that i have dumped the keys via lockpick but which keys do i use dev or prod? some keys have different values between the two
 

binkinator

Garfield’s Fitness Coach
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
3,158
Trophies
2
XP
2,250
Country
United States
¿any changes? for me are the same scripts than the ones published on 2021 november 04
check out the scripts directory.

Several files updated. New keys for instance…

key_area_key_application_0d =
package2_key_0d =

8C3D0635-042C-4652-B13A-AEB99B747A6C.jpeg
 
  • Like
Reactions: peteruk

jaysea

Well-Known Member
Member
Joined
Aug 17, 2009
Messages
264
Trophies
0
Age
45
XP
1,119
Country
Netherlands
When I try to make es and fs patches I get the following errors. What am I doing wrong?:
Traceback (most recent call last):
File "FS-AutoIPS.py", line 235, in <module>
run()
File "FS-AutoIPS.py", line 73, in run
extract()
File "FS-AutoIPS.py", line 224, in extract
run()
File "FS-AutoIPS.py", line 73, in run
extract()
File "FS-AutoIPS.py", line 195, in extract
subprocess.run(['hactool.exe', '--keyset=' + keyset, '-t', 'nca', '--header=temp/hdr.bin', '--romfsdir=temp/', FIRMWARE_DIR + '/' + file], stdout=subprocess.DEVNULL)
AttributeError: 'module' object has no attribute 'run'
Checking files in D:\firmware folder.
Found NCA: 97b4de164997b6713f93e6adde8071df.nca
Using hactool to extract exefsdir
Traceback (most recent call last):
File "ES-AutoIPS.py", line 397, in <module>
extract() # Extract main and then decrypt it
File "ES-AutoIPS.py", line 116, in extract
subprocess.run(['hactool','--keyset=' + keyset,'--intype=nca','--exefsdir=.','--disablekeywarns', FIRMWARE_DIR + '/' + filename], stdout=subprocess.DEVNULL)
AttributeError: 'module' object has no attribute 'run'
 

jaysea

Well-Known Member
Member
Joined
Aug 17, 2009
Messages
264
Trophies
0
Age
45
XP
1,119
Country
Netherlands
I have bitstring though:
E:\patches>py -3.10 -m pip install --upgrade pip
Requirement already satisfied: pip in d:\gebruikers\jayse\appdata\local\programs\python\python310\lib\site-packages (22.2.1)

E:\patches>py -3.10 -m pip install bitstring
Requirement already satisfied: bitstring in d:\gebruikers\jayse\appdata\local\programs\python\python310\lib\site-packages (3.1.9)
 
  • Like
Reactions: impeeza

linuxares

I'm not a generous god!
Global Moderator
Joined
Aug 5, 2007
Messages
9,688
Trophies
1
XP
11,654
Country
Sweden
I have bitstring though:
E:\patches>py -3.10 -m pip install --upgrade pip
Requirement already satisfied: pip in d:\gebruikers\jayse\appdata\local\programs\python\python310\lib\site-packages (22.2.1)

E:\patches>py -3.10 -m pip install bitstring
Requirement already satisfied: bitstring in d:\gebruikers\jayse\appdata\local\programs\python\python310\lib\site-packages (3.1.9)
try pip3 and see if makes any difference
 

impeeza

¡Kabito!
Member
Joined
Apr 5, 2011
Messages
1,874
Trophies
1
Age
44
XP
3,208
Country
Colombia
Double check the paths you give, be sure do not put empty spaces at end of them. and for atmosphère you should give the FULL path to package3 file.
 

jaysea

Well-Known Member
Member
Joined
Aug 17, 2009
Messages
264
Trophies
0
Age
45
XP
1,119
Country
Netherlands
When using pip3 I get the exact same: 'Requirements already satisfied'

What do you mean with the package3 file? I dragged the folder so it had the exact path in it. I was trying to get patches for a firmware and I do not see a package3 file in the folder.

It is saying that 'run' doesn't work. Though I noticed a windows exe file aswell and that made patches, but they do not match totaljustice his patch since the file is thice the size.
 

jaysea

Well-Known Member
Member
Joined
Aug 17, 2009
Messages
264
Trophies
0
Age
45
XP
1,119
Country
Netherlands
That is a nice page and I see that I have tried the wrong option. I should have used option 1, but now it asks for fusee-secundary.bin. I don't know where to find that in atmosphere.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Dark_Phoras @ Dark_Phoras:
    Which movie?
    Gift
  • Psionic Roshambo @ Psionic Roshambo:
    Boobs in iMax
    Gift
  • Psionic Roshambo @ Psionic Roshambo:
    I would watch that....
    Gift
  • FAST6191 @ FAST6191:
    You say that but isn't imax just high rest?
    Gift
  • FAST6191 @ FAST6191:
    Tits in high res, along with many the actresses having them, do not look so great
    +1
    Gift
  • FAST6191 @ FAST6191:
    It was a noted problem even in the shift to HD according to various purveyors of such films
    Gift
  • Dark_Phoras @ Dark_Phoras:
    The more resolution, the better
    Gift
  • Dark_Phoras @ Dark_Phoras:
    And framerate. I know people are against a framerate above 24fps in movies, because it betrays that it's fictional, but I prefer high framerate
    Gift
  • Dark_Phoras @ Dark_Phoras:
    Of course, higher resolution only betrays the false boobs - which could lead to a revolution in the acceptance of the unadulterated bodies
    Gift
  • Dark_Phoras @ Dark_Phoras:
    I know this falls somewhat into the realm of porn - but I'm encompassing the overarching scope of all movies
    Gift
  • KenniesNewName @ KenniesNewName:
    Got free food cause they messed up the order
    +1
    Gift
  • FAST6191 @ FAST6191:
    Always found that bizarre in the US
    Gift
  • FAST6191 @ FAST6191:
    One time was there and they had forgotten to get it out of the freezer. Manager came over, said that and gave it to us for free still frozen to take home and eat later
    Gift
  • FAST6191 @ FAST6191:
    In the UK they would be all nah mate we don't have it, do you want something else?
    Gift
  • KenniesNewName @ KenniesNewName:
    Well in some places we aren't total dicks to each other
    Gift
  • KenniesNewName @ KenniesNewName:
    Order gets messed up they make up for it without fuss
    Gift
  • Dark_Phoras @ Dark_Phoras:
    I found a great subreddit for memes yesterday... and I forgot the name
    Gift
  • FAST6191 @ FAST6191:
    great subreddit? Is that not a contradiction in terms? Bit like pleasant twitter conversation.
    Gift
  • FAST6191 @ FAST6191:
    Anyway shilling my own threads. Lord of the Rings (and various related properties) bought by Embracer group
    Gift
  • Dark_Phoras @ Dark_Phoras:
    I don't look for intellectual plenitude on the internet...
    Gift
  • FAST6191 @ FAST6191:
    Pity. There is plenty of it.
    Gift
  • Psionic Roshambo @ Psionic Roshambo:
    Mostly it seems literate people on the internet....
    Gift
  • Psionic Roshambo @ Psionic Roshambo:
    The pain on the planes, comes mostly from the stains?
    Gift
  • Dark_Phoras @ Dark_Phoras:
    The rain in Spain stays mainly in the plain
    Gift
  • Dark_Phoras @ Dark_Phoras:
    Moses supposes all toeses are roses, Moses supposes erroneously
    +1
    Gift
    Dark_Phoras @ Dark_Phoras: Moses supposes all toeses are roses, Moses supposes erroneously +1