Git Product home page Git Product logo

kmdf-keylogger's Introduction

KeyLogger

Description

Simple Key Logger KMDF Driver.

Author

Adrianna Piekarska Based on Microsoft's kbfiltr driver.

Installation

For installation guide, see instructions on the kbfiltr's page.

Description

Driver that hooks itself between the KbdClass driver and i8042prt driver and intercepts keystrokes.

Intercepted data is written to a log file, which default location is C:\log.txt. Writing to the file is being done by the separate system worker thread. The driver creates the worker and later uses it whenever there is enough data in the buffer. The trigger point for writing the data can be set by modifying the LOG_TRIGGER_POINT define directive.

Because the keystrokes are written to file in the blocks of fixed size, there is a possibility of the logger being unable to record last keystrokes in case of driver being unloaded when the buffer is not full. This problem can be overcome by setting LOG_TRIGGER_POINT to 1. However then disk access frequency increases.

The log file is protected from accessing by any user by configuring the proper Discretionary Access Control List. This however does not prevent system administrator to take ownership of the file. But even then, the file cannot be accessed by anyone during the lifetime of the driver as the driver keeps the handle to the file open and unaccessible to other processes (by specyfing the exclusive access to the created file).

Due to the fact that the driver unload routine in case of PnP drivers can be called at any time after the device is removed (and it seems that it is called only when the new driver is being loaded in the place of the previous one), the permissions of the log file must be reset manually so that the contents of the log can be examined.

kmdf-keylogger's People

Contributors

adapiekarska avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

kmdf-keylogger's Issues

The handle is invalid

Why can't your project run? It displays "The handle is invalid". Can you show me how to fix it?

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.