Code Monkey home page Code Monkey logo

ntoskrnlwin / irpmon Goto Github PK

View Code? Open in Web Editor NEW

This project forked from martindrab/irpmon

1.0 1.0 0.0 36.48 MB

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.

Pascal 40.34% HTML 2.14% C 27.99% C++ 2.24% Objective-C 27.27% Batchfile 0.02%

irpmon's Introduction

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

irpmon's People

Contributors

martindrab avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.