Skip to content

hellboy-zero/Keylogger_in_c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Keylogger Using C

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

Usage

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

About

Keylogger written in c , it uses the system call like read and open to read and open linux eventX file and log all keys from A-Z and 0-9 .

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages