/keylogger

keylogger kernel module

Primary LanguageC

Keylogger

Keylogger for a test task

The task is to write a linux kernel module for keylogging. Next step is to get around the SElinux policy

Installation and usage

Install the dependencies

sudo apt update
sudo apt install build-essential

Build

make

Insert the kernel module

sudo insmod keylogger.ko

Key pressed are stored in /sys/kernel/debug/evidence

See if the module is loaded

lsmod | grep keylogger

Info about the module

modinfo keylogger

Remove the module

sudo rmmod keylogger
make clean

References