Skip to content

The goal of the tool is to monitor requests received by selected device objects or kernel drivers. The tool is quite similar to IrpTracker but has several enhancements. It supports 64-bit versions of Windows (no inline hooks are used, only moodifications to driver object structures are performed) and monitors IRP, FastIo, AddDevice, DriverUnload…

Notifications You must be signed in to change notification settings

manurautela/IRPMon

 
 

Repository files navigation

IRPMon

The goal of the tool is to monitor requests received by selected device objects or kernel drivers. The tool is quite similar to IrpTracker but has several enhancements. It supports 64-bit versions of Windows (no inline hooks are used, only moodifications to driver object structures are performed) and monitors IRP, FastIo, AddDevice, DriverUnload and StartIo requests.

The tool should compile fine in Microsoft Visual Studio 2013. MSVS 2015 seems to cause problems due to tons of warnings. I will have a look at the problem soon.

How to Test It

To test the program, you may compile it and than use the irpmonconsole applicaton. If you cannot or do not want to compile the project yourself, use the binaries in the binaries

  1. Install the driver by irpmonconsole --install
  2. Hook the driver you wish by irpmonconsole --hook-driver <DriverObjectName>
  3. Specify devices you wish to monitor by a sequence of these commands:
    irpmonconsole --hook-device-name <DeviceObjectName>
    irpmonconsole --hook-device-address <DeviceObjectAddress>
  4. Use irpmonconsole --monitor to log the requests (to the standard output).

If you wish to monitor only new devices created by a certain driver (the term "new" refers to devices created after the driver had been hooked) use irpmonconsole --hook-driver-nd <DriverObjectName> instead of the --hook-driver command.

To get information about driver and device objects present in the system, you may either use the irpmonconsole --enumerate command, or take advantage of my VrtuleTree utility.

To enumerate hooked objects and their IDs (handles), use the irpmonconsole --enumerate-hooks command. You can use the handles returned to unhook certain drivers or devices (--unhook-driver, --unhook -device).

Also, a new version with some improvements, especially related to filtering new devices and devices belonging to certain device setup classes, is comming soon (I hope at least).

Donations

If you wish to support development of this tool, you may donate some stuff (BTC) to the following address:

17tEADhePvhHPj2X5GWn8vfiYhZCRH1f7V

About

The goal of the tool is to monitor requests received by selected device objects or kernel drivers. The tool is quite similar to IrpTracker but has several enhancements. It supports 64-bit versions of Windows (no inline hooks are used, only moodifications to driver object structures are performed) and monitors IRP, FastIo, AddDevice, DriverUnload…

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 55.4%
  • Pascal 40.3%
  • C++ 2.2%
  • HTML 2.1%