Giter Club home page Giter Club logo

keylogger's Introduction

Keylogger

A minimal keylogger for linux written in python, it has no dependency aside from standard lib. It currently supports sending the keylogs by email.

How it works

It simply reads from your /dev/input/event* (where the keyboard events are stored in linux and then formats the stream in a human readable way (currently only supports qwerty). If you wonder which event* is chosen, it looks at /proc/bus/input/devices to know which of the event* files is the one for the keyboard. I'm not using pyxhook as it might not always be available depending on what you do.

Why did I write this ?

I wanted to learn a bit more about linux keyboard events and it's always cool to link things with infosec. This was stricly made for learning purposes. TBH I'm pretty scared now that I realised how easy this kind of spyware is to code

Disclaimer

I wrote this program for learning purposes only. Only use it on your own machines to capture your own keystrokes. I can't be held responsible for your illegal activities

Ideas of further improvements

It works well as it is, but I guess it would be cool to add features such as keymap detection (currently it considers anything as qwerty), screenshots and a machine learning model that would detect when a password has been typed and send an email notification

How to run ?

You need root privileges to run this. Simply go with : sudo python keylogger.py [your email] [your password] [smtp server] [tls/notls] [buffer_size]

Buffer size is the number of characters saved in memory before sending an email.

keylogger's People

Contributors

melkael avatar

Watchers

 avatar

Forkers

h4cktrooper

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.