This is a simple keylogger I wrote to practise with C and understand how Linux device input work.
It finds the keyboard device under /dev/input, reads key events using input_event struct, and prints key names.
It does require root (sudo) to access the input devices.
- Linux (tested on Arch VM)
 - GCC
 - Root permissions (
sudo) 
makesudo ./keylogger- I use 
input_eventsturct to parse raw keyboard events; - Keys are mapped with a custom 
KEY_CODEStable that I found on the internet. - This program is not stealthy or optimized.
 - The program is educational. Be ethical.