Keylog Save

A simple C keylogger for Linux

Project README

keylog

A simple keylogger for Linux written in C. The current version will attempt to detect your keyboard event file automatically.

Usage

Client

File

cd keylog/
sudo ./keylog -f file-to-write-to.txt

This will log all keystrokes to the specified file while the program is running.

Network

cd keylog/
sudo ./keylog -n hostname

This will send all keystrokes to the server running on hostname.

Server

stdout

cd keylog/
./server

This will write all keystrokes received from the client to stdout.

File

cd keylog/
./server -f file-to-write-to.txt

This will write all keystrokes received from the client to the specified file.

Output Format

Each key press will cause a string representing that key to be written to the chosen location, followed by a newline. When the program quits, an extra newline will be added.

Example

Typing hello world and then quitting the program with Ctrl-C will cause the chosen location to contain the following.

H
E
L
L
O
SPACE
W
O
R
L
D
LEFTCTRL
C

Building

cd keylog/
make

Disclaimer

This code was created entirely out of an interest in learning about linux keyboard events. It should never be used on any machine where you are not authorised to log keystrokes.

Open Source Agenda is not affiliated with "Keylog" Project. README Source: SCOTPAUL/keylog
Stars
56
Open Issues
1
Last Commit
3 years ago
Repository

Open Source Agenda Badge

Open Source Agenda Rating