Skip to content

Latest commit

 

History

History
65 lines (39 loc) · 1.5 KB

README.md

File metadata and controls

65 lines (39 loc) · 1.5 KB

Kernel-Based Keylogger

A basic kernel-level keylogger module made using C. The module captures and logs keyboard events in the kernel log.

Prerequisites

  • A Linux system.
  • Kernel development headers installed.
  • Root access.

Building the Module

  1. Clone the repository to your local system.

  2. Open a terminal and navigate to the project directory.

  3. Build the module by running the following command:

make

On success, This will generate a kernel module file called keylogger.ko

Loading the module

sudo insmod keylogger.ko

This will load the keylogger module into the kernel.

dmesg

You can see a log message that says module is loaded.

Now you can try typing anything and just run dmesg to see the keylogs.

Unloading the module

sudo rmmod keylogger

This will remove the module from the kernel

Important notes

  • The use of keyloggers for unauthorized or malicious purposes is illegal and unethical. This project is intended for educational and debugging purposes only.
  • Always be careful when you are in kernel level, small mistakes can brick the kernel.
  • Developer of this code is not responsible for any damage/actions caused by anyone.

Contributing

You're welcome to contribute to this project

  • If you find any bugs, please open an issue.
  • Want to contribute to the project? Feel free to open a pull request.

LICENSE

This project is licensed under the MIT license.