Giter Club home page Giter Club logo

keylog's Introduction

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.

keylog's People

Contributors

scotpaul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

keylog's Issues

error

/tmp/ccKxRCqX.o: In function main': main.c:(.text+0x10): undefined reference to get_keyboard_event_file'
main.c:(.text+0x189): undefined reference to get_socket_file_descriptor' main.c:(.text+0x1fe): undefined reference to keylogger'
collect2: error: ld returned 1 exit status

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.