Exetools  

Go Back   Exetools > General > General Discussion

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-22-2018, 18:04
Kerlingen Kerlingen is offline
VIP
 
Join Date: Feb 2011
Posts: 338
Rept. Given: 0
Rept. Rcvd 278 Times in 100 Posts
Thanks Given: 0
Thanks Rcvd at 358 Times in 110 Posts
Kerlingen Reputation: 200-299 Kerlingen Reputation: 200-299 Kerlingen Reputation: 200-299
Is editing a driver's *.inf possible?

Lets assume the following (unspecified so it's easier to understand):
I have two hardware devices with DeviceIDs PCI\001 and PCI\002 and I'm running Windows 10 x64.

Windows has a driver for PCI\001 included, but for PCI\002 it needs a vendor specific driver.

The vendor specific driver comes as a driver package:
driver.sys (signed by vendor and "Microsoft Windows Hardware Compatibility Publisher")
driver.inf (not signed)
driver.cat (signed by "Microsoft Windows Hardware Compatibility Publisher")

driver.inf says that the driver supports PCI\001 and PCI\002, but the vendor driver.sys does not support the PCI\001 device.

The fact that the driver.inf claims it would support PCI\001 makes Windows unload its own driver for PCI\001.

At this point I could either use the Windows default driver for PCI\001 and have a not working PCI\002 or I could use the vendor driver for PCI\002 and have a not working PCI\001.

So the easiest way would be to edit driver.inf and remove the line saying it supports PCI\001. However, driver.cat contains the hash for driver.inf, so if I edit driver.inf Windows will not load the driver because it has no valid signature. If I remove the driver.cat entry from driver.inf or the file driver.cat Windows will not load the driver either.

Is there any way to force Windows to ignore specific sections of *.inf files or to force it to load only its own driver? Or some way to edit *.inf files without invalidating the signature? Since driver.sys is signed and unmodified this could be possible somehow.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
making patch hex editing in .net js78955 General Discussion 4 01-21-2015 04:26
editing Debug Information Directory in a PE file jonwil General Discussion 6 01-15-2005 06:18
Editing a .key file? peedizzle General Discussion 1 09-09-2004 00:49


All times are GMT +8. The time now is 06:52.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )