I have the module address of a loaded driver. I want to get the driverobject from the module address or name using windbg in kernel mode debugging. Is there a command to find it?
find driverObject from module address using windbg kernel mode debugging
115 Views Asked by user846940 At
3

I don't recall if there's a list of driver objects accessible from a kernel global variable, so this is rather involved.
In Windbg you can query a list of all object (known to the object manager) with
!object. This command, with thepathoption, allows you to query the\driverfolder in the object manager to list all_DRIVER_OBJECT, for ex.:Problem is that it's not scriptable at all since you'll want to traverse the whole list (edit: the module base of a driver is given in
_DRIVER_OBJECT.DriverStart)The object manager root lies at the global
nt!ObpRootDirectoryObjectbut it's a pain in the back to parse...Hugsy made a really nice JS script to parse it, and fortunately it supports the
\driverentry..scriptload "C:\test\ObjectExplorer.js"Note : if you want to see how the scripts encapsulates the objects, you can just do:
0xfffff8073a2d0000address with your own)You can then click on the entries, it outputs the full
_DRIVER_OBJECT(or you can justdtthe address):