Hacking Discussion Info on SHA-256 hashes on FS patches

linuxares

The inadequate, autocratic beast!
Global Moderator
Joined
Aug 5, 2007
Messages
13,285
Trophies
2
XP
18,106
Country
Sweden
Here you go, It seems that wine on ubuntu doesn't recognise the colours properly on richtext box, but does on other stuff. I just changed the colours and now it works. Anyway just replace your exe with this one.
Confirms, works. White background and blacktext.
 

linuxares

The inadequate, autocratic beast!
Global Moderator
Joined
Aug 5, 2007
Messages
13,285
Trophies
2
XP
18,106
Country
Sweden
Here you go, I've added a theme button so you can switch colours in the rich text box. Default is black/green. When I do the config stuff I'll add an ini file or something so it remembers your preference.
omfg xD Switching from White to Default again made it black and green. So maybe it's a fix if it's possible to save it
 

mrdude

Developer
Developer
Joined
Dec 11, 2015
Messages
3,071
Trophies
1
Age
56
XP
8,227
omfg xD Switching from White to Default again made it black and green. So maybe it's a fix if it's possible to save it
I doubt it, the linux dot net is buggy - switching between black and white, to green and black again works fine on windows. But on linux under wine - the text stays green because of the bug in the way it handles richtext box foreground colours. It seems to not refresh that for some reason, probably I should report the bug to microsoft, but as it's meant to be a windows only framework they will probably not be interested.

Also copy & paste isn't working under wine either.
 
Last edited by mrdude,

linuxares

The inadequate, autocratic beast!
Global Moderator
Joined
Aug 5, 2007
Messages
13,285
Trophies
2
XP
18,106
Country
Sweden
I doubt it, the linux dot net is buggy - switching between black and white, to green and black again works fine on windows. But on linux under wine - the text stays green because of the bug in the way it handles richtext box foreground colours. It seems to not refresh that for some reason, probably I should report the bug to microsoft, but as it's meant to be a windows only framework they will probably not be interested.

Also copy & paste isn't working under wine either.
Odd... Wine Notepad works fine to copy paste with for me.
Even in your software. From OS to Wine and from Wine to the OS.
 

mrdude

Developer
Developer
Joined
Dec 11, 2015
Messages
3,071
Trophies
1
Age
56
XP
8,227
Odd... Wine Notepad works fine to copy paste with for me.
Even in your software. From OS to Wine and from Wine to the OS.
That's probably not made with dot net though. I suppose it's similar to this situation in real life - picture the scene:
Imagine I am speaking directly to you and we both speak the same language - we can easily understand each other.
Now imagine I am talking to a French person, but they don't speak English - we need to use an interpretor and sometimes in French there's no equivalent English word - well the interpretor might use a different word and I might think he they meant something different from what the French person wanted to tell me. I suspect something like that is happening with a windows based program used in Linux under wine and being interpreted from windows into linux machine code instructions via dot net.
Not all wondows programs work under wine for this very reason.
 

linuxares

The inadequate, autocratic beast!
Global Moderator
Joined
Aug 5, 2007
Messages
13,285
Trophies
2
XP
18,106
Country
Sweden
That's probably not made with dot net though. I suppose it's similar to this situation in real life - picture the scene:
Imagine I am speaking directly to you and we both speak the same language - we can easily understand each other.
Now imagine I am talking to a French person, but they don't speak English - we need to use an interpretor and sometimes in French there's no equivalent English word - well the interpretor might use a different word and I might think he they meant something different from what the French person wanted to tell me. I suspect something like that is happening with a windows based program used in Linux under wine and being interpreted from windows into linux machine code instructions via dot net.
Not all wondows programs work under wine for this very reason.
Maybe, you did say you run it in a virtual machine? Maybe you might need to activate it to be able to allow to use the clipboard.
Wine after all is reverse engineering a lot of the Windows OS, so it's not surprising bugs exists. Saw the support for 4.8 is garbage at best for WIne.
 
  • Like
Reactions: Mrblue and mrdude

Mrblue

Member
Newcomer
Joined
Oct 4, 2018
Messages
14
Trophies
0
Age
43
XP
182
Country
Austria
Hey ! Playonlinux is very cool and USB Windows to go reserve ! Thanks for the good Job ! ;) I love Bodhi Ubuntu 64Bit ;) ! Slax is good better is Bodhi ! ;)
 

dogcsty

Well-Known Member
Newcomer
Joined
Dec 2, 2021
Messages
47
Trophies
0
XP
227
Country
United States
I have done a lot with the homebrew app. I have added a gui and now you have the ability to choose to directly copy the files to the right directories. It was a nice ride I had fun developing this app I learned tons of stuff in a week I come out as a new person.

Again thanks to @mrdude who has done the heavy work and everyone in this thread who has helped us get to this point.
You' ll also find the source code. It isn't super cleaned, not well commented but transparency is key so... the code in c (so not the interface) can easily be ported to any other platform. The only files that need to be changed according to the platform is the files in the utils folder (there's only one source file and its header).

I' ll rest for a bit and if I have the will and the time I' ll clean the code a little bit. Any feedback is welcome of course.

Edit: Corrected a small bug on the about button
 
Last edited by dogcsty,

mrdude

Developer
Developer
Joined
Dec 11, 2015
Messages
3,071
Trophies
1
Age
56
XP
8,227
I have done a lot with the homebrew app. I have added a gui and now you have the ability to choose to directly copy the files to the right directories. It was a nice ride I had fun developing this app I learned tons of stuff in a week I come out as a new person.

Again thanks to @mrdude who has done the heavy work and everyone in this thread who has helped us to get to this point.
You' ll also find the source code. It isn't super cleaned, not well commented but transparency is key so... the code in c (so not the interface) can easily be ported to any other platform. The only files that need to be changed according to the platform is the files in the utils folder (there's only one source file and its header).

I' ll rest for a bit and if I have the will and the time I' ll clean the code a little bit. Any feedback is welcome of course.

Edit: Corrected a small bug on the about button
I'll test tomorrow dude as I'm just about to go to my bed. I appreciate the time you have spent on this and look forward to testing it out.
 
  • Like
Reactions: ShadowOne333

mrdude

Developer
Developer
Joined
Dec 11, 2015
Messages
3,071
Trophies
1
Age
56
XP
8,227
Well here it is, I fixed the config stuff now so that's enabled, also your theme will be saved on exit if you are a linux wine user.

This is now out of test mode, so you can consider this the first release. I might add ftp stuff later, but for now I am having a break from this program as it does eveything you need.

Note on config options - just leave these at the default values unless there is a change in the firmware files and they altered the sizes, that info will be published here if you need to change any settings.

Anyway - python scripts are now dead as I won't be updating them now, so if you want to use them - you will need to mod them yourself as this app is the way ahead for windows users and noobs, or use the homebrew app from dogty :-).
 

Attachments

  • Sigpatch-IPS-Creator V1.0.zip
    1.9 MB · Views: 98

mrdude

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

I tested your patch generator and noticed a couple of bugs with patches.ini. (Tested on Firmware 14.1.2)

In your EXfat file you generate this: A0070036
In your fat file you generate this: A07036, and 4DBA294 - (look at the zeros)...

exfat is correct, Fat should be: (leading hex zeros are included)
.nosigchk=0:0x1281CC:0x4:A0070036,1F2003D5
.nosigchk=0:0x79C00:0x4:4DBA0294,E0031F2A

After fat is wriiten - add a newline so that the loader is written to a new line.

Also in the switch folder -
IPS patch ExFAT
Exfat Sha256: D488D1F29217355C22ABDA773FDEA582B13D475B74BCB02B998C66AB1B3E4309.ips - was not generated.

And hex value for fat patch was wrong: 887AC150806C75CCC40DA0AA98CC09B3E468E6C78F315F927FBEDD91B16DE27A.ips
50 41 54 43 48 12 82 CC 00 04 1F 20 03 D5 07 9D 00 00 04 E0 03 1F 2A 45 4F 46 - correct
50 41 54 43 48 07 9D 00 00 04 E0 03 1F 2A 12 82 CC 00 04 1F 20 03 D5 45 4F 46 - wrong

It seems easy enough to fix these bugs - probably the wrong values for the fat ips was because of the missing zeros, and the order patches were written was wrong.
 
Last edited by mrdude,

dogcsty

Well-Known Member
Newcomer
Joined
Dec 2, 2021
Messages
47
Trophies
0
XP
227
Country
United States
@dogty

I tested your patch generator and noticed a couple of bugs with patches.ini. (Tested on Firmware 14.1.2)

In your EXfat file you generate this: A0070036
In your fat file you generate this: A07036, and 4DBA294 - (look at the zeros)...

exfat is correct, Fat should be: (leading hex zeros are included)
.nosigchk=0:0x1281CC:0x4:A0070036,1F2003D5
.nosigchk=0:0x79C00:0x4:4DBA0294,E0031F2A

After fat is wriiten - add a newline so that the loader is written to a new line.

Also in the switch folder -
IPS patch ExFAT
Exfat Sha256: D488D1F29217355C22ABDA773FDEA582B13D475B74BCB02B998C66AB1B3E4309.ips - was not generated.

And hex value for fat patch was wrong: 887AC150806C75CCC40DA0AA98CC09B3E468E6C78F315F927FBEDD91B16DE27A.ips
50 41 54 43 48 12 82 CC 00 04 1F 20 03 D5 07 9D 00 00 04 E0 03 1F 2A 45 4F 46 - correct
50 41 54 43 48 07 9D 00 00 04 E0 03 1F 2A 12 82 CC 00 04 1F 20 03 D5 45 4F 46 - wrong

It seems easy enough to fix these bugs - probably the wrong values for the fat ips was because of the missing zeros, and the order patches were written was wrong.
Thank you for your feedback this new nro should fix it. I can't seem to recreate your bug with the newline though can you send me your patches.ini?

Edit: Sorry didn't read the last two lines, Im working on this bugs
 

dogcsty

Well-Known Member
Newcomer
Joined
Dec 2, 2021
Messages
47
Trophies
0
XP
227
Country
United States
@dogty
And hex value for fat patch was wrong: 887AC150806C75CCC40DA0AA98CC09B3E468E6C78F315F927FBEDD91B16DE27A.ips
50 41 54 43 48 12 82 CC 00 04 1F 20 03 D5 07 9D 00 00 04 E0 03 1F 2A 45 4F 46 - correct
50 41 54 43 48 07 9D 00 00 04 E0 03 1F 2A 12 82 CC 00 04 1F 20 03 D5 45 4F 46 - wrong

It seems easy enough to fix these bugs - probably the wrong values for the fat ips was because of the missing zeros, and the order patches were written was wrong.
Does the order count? As soon as the offset and the value are correctly written it shouldn't be a problem should it?

Edit: Can you check if everything has been corrected in this release?
 
Last edited by dogcsty,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: roms wont boot with wood r4menu