Hacking Discussion Info on SHA-256 hashes on FS patches

dogcsty

Well-Known Member
Newcomer
Joined
Dec 2, 2021
Messages
47
Trophies
0
XP
227
Country
United States
I have done the nifm and fs patch (following the new algorithm from @mrdude (again, this is all thanks to them I'm merely a translator here).

It will create two folders, one being atmosphere and the other one being bootloader. The patches.ini generated takes into account the fact that a file already exists in the actual bootloader folder. It will copy the content of this file along with the lines created from the algorithm .

I haven't tested every firmware nor have I tested in an exfat partition (I would gladly appreciate it if someone can test that).

Don't mind the debug outputs I will clean everything up (and if I have time I will do a nice gui interface) when everything is done.

I will work on the atmosphere loader and the handling of some exceptions I will probably work this part tomorrow.
 
Last edited by dogcsty,

mrdude

Developer
Developer
Joined
Dec 11, 2015
Messages
3,071
Trophies
1
Age
56
XP
8,227
@dogty

Here You go, I modded hactool source code to make it very fast now as there's no output during extractions, and it only prints the required info needed, so makes things much faster. Here's the modded files if you want to see if it makes your homebrew faster. Next release from me will include the windows version inside the app - there's a noticable speed increase & this is about as fast as I can make this app work now.
 

Attachments

  • modded hactool files.zip
    33.5 KB · Views: 37

dogcsty

Well-Known Member
Newcomer
Joined
Dec 2, 2021
Messages
47
Trophies
0
XP
227
Country
United States
@dogty
Here You go, I modded hactool source code to make it very fast now as there's no output during extractions, and it only prints the required info needed, so makes things much faster. Here's the modded files if you want to see if it makes your homebrew faster. Next release from me will include the windows version inside the app - there's a noticable speed increase & this is about as fast as I can make this app work now.
Thank you but I have already done that. I even went further as I'm not parsing the output like you do (since I've integreted the hactool code to my application) I'm using their internal variables directly.
 

mrdude

Developer
Developer
Joined
Dec 11, 2015
Messages
3,071
Trophies
1
Age
56
XP
8,227
Here you go people, sqlite database implementation added. I've created a small database containing some web links, you can use the program to remove the ones you don't want, and add your own. Or you can use any sqlite editor that's available to edit that database. If you update the app in future - remember to back up your database file which is stored in the tools folder called "links.db". Also the About pages are updated so I gave some people credit that deserve it.
I've compiled a modded version of hactool - which is faster, I suggest you use the one bundled in this zip instead of the original hactool, if you want a speed increase while generating patches.
I've started on a config page so can alter the search parameters for file sizes, these are used to limit the amount of files that need searched through when patching, so the smaller the list - the quicker that patches are created! This page is disabled for now, that's why it's greyed out on the main menu. For Linux users under wine - I've no idea if sql dll files work under Linux as I didn't test that, if you have issues, you will still be able to use the program - apart from the weblinks database.
 

linuxares

The inadequate, autocratic beast!
Global Moderator
Joined
Aug 5, 2007
Messages
13,276
Trophies
2
XP
18,088
Country
Sweden
Here you go people, sqlite database implementation added. I've created a small database containing some web links, you can use the program to remove the ones you don't want, and add your own. Or you can use any sqlite editor that's available to edit that database. If you update the app in future - remember to back up your database file which is stored in the tools folder called "links.db". Also the About pages are updated so I gave some people credit that deserve it.
I've compiled a modded version of hactool - which is faster, I suggest you use the one bundled in this zip instead of the original hactool, if you want a speed increase while generating patches.
I've started on a config page so can alter the search parameters for file sizes, these are used to limit the amount of files that need searched through when patching, so the smaller the list - the quicker that patches are created! This page is disabled for now, that's why it's greyed out on the main menu. For Linux users under wine - I've no idea if sql dll files work under Linux as I didn't test that, if you have issues, you will still be able to use the program - apart from the weblinks database.
Linux test - All works great!

EDIT: Minor bug, everything is black, need to press CTRL+A to see the text.

1660668025339.png
 

mrdude

Developer
Developer
Joined
Dec 11, 2015
Messages
3,071
Trophies
1
Age
56
XP
8,227
Linux test - All works great!

EDIT: Minor bug, everything is black, need to press CTRL+A to see the text.

View attachment 322877
That could be down to how your liunx theme is displaying menu bars etc, I don't have those issues on windows. Can you try another theme? I didn't change anything in how the richtext box's are displayed in this version.
gJIoqAA.png
 
  • Like
Reactions: Mrblue

linuxares

The inadequate, autocratic beast!
Global Moderator
Joined
Aug 5, 2007
Messages
13,276
Trophies
2
XP
18,088
Country
Sweden
That could be down to how your liunx theme is displaying menu bars etc, I don't have those issues on windows. Can you try another theme? I didn't change anything in how the richtext box's are displayed in this version.
I actually tried to change to a light theme. But same. I'm checking Wine Tricks to see if I set it to Dark mode. I'll see if I can find why.

Can I ask for a "light"/"dark" checkbox? So it's dark with green text or white with black text? But I'll keep digging
 

mrdude

Developer
Developer
Joined
Dec 11, 2015
Messages
3,071
Trophies
1
Age
56
XP
8,227
I actually tried to change to a light theme. But same. I'm checking Wine Tricks to see if I set it to Dark mode. I'll see if I can find why.

Can I ask for a "light"/"dark" checkbox? So it's dark with green text or white with black text? But I'll keep digging
Yep, I'll add a checkbox if you continue getting issues.
 

linuxares

The inadequate, autocratic beast!
Global Moderator
Joined
Aug 5, 2007
Messages
13,276
Trophies
2
XP
18,088
Country
Sweden
It seems to hate the font you've got?

Code:
0024:fixme:seh:WerRegisterRuntimeExceptionModule (L"C:\\windows\\Microsoft.NET\\Framework\\v4.0.30319\\mscordacwks.dll", 01630000) stub
00cc:err:ole:CoGetContextToken apartment not initialised
0024:fixme:nls:get_dummy_preferred_ui_language (0x8 0064E3D8 00000000 0064E3DC) returning a dummy value (current locale)
0024:fixme:nls:get_dummy_preferred_ui_language (0x8 0064E3D8 007A8918 0064E3DC) returning a dummy value (current locale)
0024:fixme:ntdll:NtQuerySystemInformation (0x000000ce,0x64e134,0x00000008,(nil)) stub
0024:fixme:bcrypt:BCryptGetFipsAlgorithmMode 0064DF64 - semi-stub
0024:fixme:nls:LCMapStringEx unsupported lparam 7b8a58
0024:fixme:font:find_matching_face Untranslated charset 255
0024:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\usr\\share\\fonts\\TTF\\odokai-ExtB.ttf"
0024:fixme:font:find_matching_face Untranslated charset 255
0024:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\usr\\share\\fonts\\noto\\NotoKufiArabic-Regular.ttf"
0024:fixme:font:find_matching_face Untranslated charset 255
0024:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\usr\\share\\fonts\\noto\\NotoKufiArabic-Black.ttf"
0024:fixme:font:find_matching_face Untranslated charset 255
0024:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\usr\\share\\fonts\\noto\\NotoKufiArabic-Light.ttf"
0024:fixme:font:find_matching_face Untranslated charset 255
0024:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\usr\\share\\fonts\\noto\\NotoKufiArabic-Medium.ttf"
0024:fixme:font:find_matching_face Untranslated charset 255
0024:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\usr\\share\\fonts\\noto\\NotoKufiArabic-Thin.ttf"
0024:fixme:gdiplus:GdipGetFamilyName No support for handling of multiple languages!
0024:fixme:richedit:editor_handle_message EM_GETLANGOPTIONS: stub
0024:fixme:richedit:editor_handle_message EM_GETLANGOPTIONS: stub
0024:fixme:richedit:editor_handle_message EM_SETLANGOPTIONS: stub
0024:fixme:gdiplus:GdipCreateHalftonePalette stub
00d4:fixme:imm:ImeSetActiveContext (0000000000010026, 0): stub
00d4:fixme:imm:ImmReleaseContext (0000000000010020, 0000000000010026): stub
0024:fixme:imm:ImeSetActiveContext (0001004A, 1): stub
0024:fixme:imm:ImmReleaseContext (00010066, 0001004A): stub
0024:fixme:virtual:NtFlushProcessWriteBuffers stub
0024:fixme:exec:SHELL_execute flags ignored: 0x00000100
0114:fixme:nstc:NSTC2_fnSetControlStyle2 mask & style (0x00000004) contains unsupported style(s): 0x00000004
0114:fixme:shell:IShellBrowser_fnSendControlMsg stub, 007B4D50 (2, 1026, a003, 0, 0068F57C)
0114:fixme:shell:IShellBrowser_fnSendControlMsg stub, 007B4D50 (2, 1026, a004, 1, 0068F57C)
0114:fixme:shell:IShellBrowser_fnSendControlMsg stub, 007B4D50 (2, 1025, a003, 1, 0068F57C)
0114:fixme:shell:IShellBrowser_fnSendControlMsg stub, 007B4D50 (2, 1025, a004, 1, 0068F57C)
wine: Read access denied for device L"\\??\\Z:\\", FS volume label and serial are not available.
0114:fixme:imm:ImeSetActiveContext (0001008C, 1): stub
0114:fixme:imm:ImmReleaseContext (00010094, 0001008C): stub
0024:fixme:richedit:editor_handle_message EM_GETLANGOPTIONS: stub
0024:fixme:richedit:editor_handle_message EM_GETLANGOPTIONS: stub
0024:fixme:richedit:editor_handle_message EM_SETLANGOPTIONS: stub
0024:fixme:richedit:editor_handle_message EM_GETLANGOPTIONS: stub
0024:fixme:richedit:editor_handle_message EM_GETLANGOPTIONS: stub
0024:fixme:richedit:editor_handle_message EM_SETLANGOPTIONS: stub
0024:fixme:richedit:editor_handle_message EM_GETLANGOPTIONS: stub
0024:fixme:richedit:editor_handle_message EM_GETLANGOPTIONS: stub
0024:fixme:richedit:editor_handle_message EM_SETLANGOPTIONS: stub
 

mrdude

Developer
Developer
Joined
Dec 11, 2015
Messages
3,071
Trophies
1
Age
56
XP
8,227
It seems to hate the font you've got?

Code:
0024:fixme:seh:WerRegisterRuntimeExceptionModule (L"C:\\windows\\Microsoft.NET\\Framework\\v4.0.30319\\mscordacwks.dll", 01630000) stub
00cc:err:ole:CoGetContextToken apartment not initialised
0024:fixme:nls:get_dummy_preferred_ui_language (0x8 0064E3D8 00000000 0064E3DC) returning a dummy value (current locale)
0024:fixme:nls:get_dummy_preferred_ui_language (0x8 0064E3D8 007A8918 0064E3DC) returning a dummy value (current locale)
0024:fixme:ntdll:NtQuerySystemInformation (0x000000ce,0x64e134,0x00000008,(nil)) stub
0024:fixme:bcrypt:BCryptGetFipsAlgorithmMode 0064DF64 - semi-stub
0024:fixme:nls:LCMapStringEx unsupported lparam 7b8a58
0024:fixme:font:find_matching_face Untranslated charset 255
0024:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\usr\\share\\fonts\\TTF\\odokai-ExtB.ttf"
0024:fixme:font:find_matching_face Untranslated charset 255
0024:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\usr\\share\\fonts\\noto\\NotoKufiArabic-Regular.ttf"
0024:fixme:font:find_matching_face Untranslated charset 255
0024:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\usr\\share\\fonts\\noto\\NotoKufiArabic-Black.ttf"
0024:fixme:font:find_matching_face Untranslated charset 255
0024:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\usr\\share\\fonts\\noto\\NotoKufiArabic-Light.ttf"
0024:fixme:font:find_matching_face Untranslated charset 255
0024:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\usr\\share\\fonts\\noto\\NotoKufiArabic-Medium.ttf"
0024:fixme:font:find_matching_face Untranslated charset 255
0024:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\usr\\share\\fonts\\noto\\NotoKufiArabic-Thin.ttf"
0024:fixme:gdiplus:GdipGetFamilyName No support for handling of multiple languages!
0024:fixme:richedit:editor_handle_message EM_GETLANGOPTIONS: stub
0024:fixme:richedit:editor_handle_message EM_GETLANGOPTIONS: stub
0024:fixme:richedit:editor_handle_message EM_SETLANGOPTIONS: stub
0024:fixme:gdiplus:GdipCreateHalftonePalette stub
00d4:fixme:imm:ImeSetActiveContext (0000000000010026, 0): stub
00d4:fixme:imm:ImmReleaseContext (0000000000010020, 0000000000010026): stub
0024:fixme:imm:ImeSetActiveContext (0001004A, 1): stub
0024:fixme:imm:ImmReleaseContext (00010066, 0001004A): stub
0024:fixme:virtual:NtFlushProcessWriteBuffers stub
0024:fixme:exec:SHELL_execute flags ignored: 0x00000100
0114:fixme:nstc:NSTC2_fnSetControlStyle2 mask & style (0x00000004) contains unsupported style(s): 0x00000004
0114:fixme:shell:IShellBrowser_fnSendControlMsg stub, 007B4D50 (2, 1026, a003, 0, 0068F57C)
0114:fixme:shell:IShellBrowser_fnSendControlMsg stub, 007B4D50 (2, 1026, a004, 1, 0068F57C)
0114:fixme:shell:IShellBrowser_fnSendControlMsg stub, 007B4D50 (2, 1025, a003, 1, 0068F57C)
0114:fixme:shell:IShellBrowser_fnSendControlMsg stub, 007B4D50 (2, 1025, a004, 1, 0068F57C)
wine: Read access denied for device L"\\??\\Z:\\", FS volume label and serial are not available.
0114:fixme:imm:ImeSetActiveContext (0001008C, 1): stub
0114:fixme:imm:ImmReleaseContext (00010094, 0001008C): stub
0024:fixme:richedit:editor_handle_message EM_GETLANGOPTIONS: stub
0024:fixme:richedit:editor_handle_message EM_GETLANGOPTIONS: stub
0024:fixme:richedit:editor_handle_message EM_SETLANGOPTIONS: stub
0024:fixme:richedit:editor_handle_message EM_GETLANGOPTIONS: stub
0024:fixme:richedit:editor_handle_message EM_GETLANGOPTIONS: stub
0024:fixme:richedit:editor_handle_message EM_SETLANGOPTIONS: stub
0024:fixme:richedit:editor_handle_message EM_GETLANGOPTIONS: stub
0024:fixme:richedit:editor_handle_message EM_GETLANGOPTIONS: stub
0024:fixme:richedit:editor_handle_message EM_SETLANGOPTIONS: stub
Hang on and I'll change the font, and compile under .net 4.72.
 
  • Like
Reactions: linuxares

linuxares

The inadequate, autocratic beast!
Global Moderator
Joined
Aug 5, 2007
Messages
13,276
Trophies
2
XP
18,088
Country
Sweden
Nope, but the menu looks better after installing Arial tho

EDIT: Downloading all Microsoft Fonts to my TTF folder on machine.
 

dogcsty

Well-Known Member
Newcomer
Joined
Dec 2, 2021
Messages
47
Trophies
0
XP
227
Country
United States
I have added the loader patch. Feel free to test it with your device and give me any feedback you might have. I will start to clean the code and make a gui if I have the time. When everything seems to be correct I'll add the feature to put the files automatically were they should be. Thank you everyone for your support.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Psionic Roshambo @ Psionic Roshambo: https://www.youtube.com/@legolambs