Skip to content

ilyxabatko/linux-keylogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Simple Linux Keylogger (for learning purposes)

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.

Requirements

  • Linux (tested on Arch VM)
  • GCC
  • Root permissions (sudo)

Build

make

Run

sudo ./keylogger

Notes

  • I use input_event sturct to parse raw keyboard events;
  • Keys are mapped with a custom KEY_CODES table that I found on the internet.
  • This program is not stealthy or optimized.
  • The program is educational. Be ethical.

About

Simple C Linux Keylogger (for education purposes)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published