Hacking Discussion Info on SHA-256 hashes on FS patches

mrdude

Developer
Developer
Joined
Dec 11, 2015
Messages
3,071
Trophies
1
Age
56
XP
8,227
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: 270

DarkenSX

Well-Known Member
Member
Joined
Mar 28, 2009
Messages
109
Trophies
0
Age
38
Location
Earth
XP
445
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
6,511
Trophies
2
XP
6,155
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

binkinator

Garfield’s Fitness Coach
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
6,511
Trophies
2
XP
6,155
Country
United States
you have time traveler files? the will come tomorrow :rofl2: (I know is the Time zone, but is hilarious)
I was thinking maybe that’s why you didn‘t see them…too early for your tz! go to sleep…they will be there in the morning for you!
 
  • Haha
Reactions: peteruk and impeeza

jaysea

Well-Known Member
Member
Joined
Aug 17, 2009
Messages
279
Trophies
1
Age
46
XP
1,188
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
279
Trophies
1
Age
46
XP
1,188
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

The inadequate, autocratic beast!
Global Moderator
Joined
Aug 5, 2007
Messages
13,277
Trophies
2
XP
18,090
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
 

jaysea

Well-Known Member
Member
Joined
Aug 17, 2009
Messages
279
Trophies
1
Age
46
XP
1,188
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
279
Trophies
1
Age
46
XP
1,188
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.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Maximumbeans @ Maximumbeans:
    I can't believe you got me with that
    +1
  • SylverReZ @ SylverReZ:
    I haven't been gaming for such a long time. Been mostly busy with sleep, hardware tinkering and checking GBAtemp frequently.
  • SylverReZ @ SylverReZ:
    Hope you've had a good morning.
  • Maximumbeans @ Maximumbeans:
    It's going alright thanks :) I know what you mean with gaming time. It's precious where I can get it these days.
    +1
  • Maximumbeans @ Maximumbeans:
    I think that's why I focus on just enjoying single player experiences that aren't too competitive
  • Maximumbeans @ Maximumbeans:
    How are you doing?
  • SylverReZ @ SylverReZ:
    There's also this thing where I'm hyperfocused at night and cannot get to sleep.
  • SylverReZ @ SylverReZ:
    @Maximumbeans, I'm doing alright, thanks.
    +1
  • Maximumbeans @ Maximumbeans:
    That must be rough. Productive I'm sure but hard to balance with daily life
    +1
  • SylverReZ @ SylverReZ:
    @Maximumbeans, Indeed. I've been working on getting this Infecutus chip to work on my PS2. But after soldering, I realised that a plastic piece was missing from the power ribbon cable to the power and eject buttons.
  • SylverReZ @ SylverReZ:
    Now I could go with soldering the contacts from the cable to the connector on the mobo, but doesn't sound like a good permanent solution.
  • Maximumbeans @ Maximumbeans:
    Man, that's beyond my brain :rofl: I'm no good with hardware for now. I'd like to get into hardmods in future though
  • SylverReZ @ SylverReZ:
    @Maximumbeans, Maybe start practice soldering. Get a cheap-ass soldering iron and follow some good YouTube tutorials.
    +1
  • SylverReZ @ SylverReZ:
    Least my experience has gotten better than over a decade ago. My iron would constantly bump into components and break them.
  • Maximumbeans @ Maximumbeans:
    Sounds good. I actually did soldering but like 16 years ago for school so uuuuh probably rusty haha
  • SylverReZ @ SylverReZ:
    @Maximumbeans, Same here. I did soldering at school from a teacher who I honestly liked since he had plenty of good electronics experience.
    +1
  • Maximumbeans @ Maximumbeans:
    I wish I could play chess well
    +1
  • Maximumbeans @ Maximumbeans:
    Useless but a true art
    +1
  • SylverReZ @ SylverReZ:
    @Maximumbeans, I had a friend who had a glass chess set for their birthday.
  • SylverReZ @ SylverReZ:
    It was like all clear and fancy. Tbf I'm not too experienced with chess, but would like to learn someday.
  • Maximumbeans @ Maximumbeans:
    That sounds really cool
  • Maximumbeans @ Maximumbeans:
    I know the basics but no strategy at all :rofl:
    Maximumbeans @ Maximumbeans: I know the basics but no strategy at all :rofl: