dartraiden / NVIDIA-patcher

Adds 3D acceleration support for P106-090 / P106-100 / P104-100 / P104-101 / P102-100 / CMP 30HX / CMP 40HX / CMP 50HX mining cards.
194 stars 25 forks source link

How to upgrade 472.12 to 472.13 and next 472.14 #84

Closed GermanAizek closed 5 months ago

GermanAizek commented 5 months ago

@dartraiden, I would like to pick up new security patches and add 3D acceleration for CMP. Do you have saved ida pro project, or rizindb, what do you use? Why are there no source patches for 3d acceleration CMP gpu? At least name offset function or write it a pattern in Readme.md

dartraiden commented 5 months ago

I'm using a custom PowerShell script written by a friend specifically for my needs. He's still debugging it, but plans to publish it in the future. The script accepts a regular text file with commands. It modifies .inf-files, patches .dll and .sys using the search-and-replace method, and then signs everything with digital certificates. Search-and-replace patterns are available in the old repository (this is my self-written batch file that I used before): https://github.com/dartraiden/NVIDIA-patcher/blob/old_patcher/Patch.bat#L20C1-L21C93

dartraiden commented 5 months ago

The main problem is that if you patch the driver, you need to sign it. Either with your self-generated certificate (with test mode enabled in Windows), or with some leaked/stolen certificate (I use the Atheros certificate).

In the future (probably this month and if the script developer doesn't mind) I will publish this PowerShell script with instructions on how to sign the driver with your own certificate (with test mode enabled). But test mode makes anti-cheats nervous.

I will not publish the Atheros certificate, this will speed up its entry into the Microsoft revocation list.

So users will have two options:

GermanAizek commented 5 months ago

Many thanks for more information patching, as I patch newer updates, I can merge them to you.