Git Product home page Git Product logo

kl's Introduction

kl

Simple keylogger for Linux + X11.

Requirements

  • Python 3
  • xlib

Installation

Install the latest stable release with pip install kl or download kl.py (unstable) into your project directory.

CLI usage

usage: kl.py [-h] [-s SLEEP_TIME] [-t {spanish,english_usa,pt_br}] [-f FILE]
             [-l]

Examples:

Running kl.py without arguments, will print the pressed keys to stdout:

$ ./kl.py

# Type "example":

{'regular': ['e'], 'modifiers': []}
{'regular': ['x'], 'modifiers': []}
{'regular': ['a'], 'modifiers': []}
{'regular': ['m'], 'modifiers': []}
{'regular': ['p'], 'modifiers': []}
{'regular': ['l'], 'modifiers': []}
{'regular': ['e'], 'modifiers': []}

Running kl.py using the spanish transformer, and writing to a file:

./kl.py -t spanish -f /tmp/kl.log

# Type "ñandú":

$ cat /tmp/kl.log
ñ
a
n
d
´
u

Layouts

kl comes with transformers for the next keyboard layouts:

  • english_usa
  • spanish
  • pt_br (brazilian portuguese)

Using kl as a library

kl can also be used as a library. For example:

from kl import Kl, FileHandler, SpanishTransformer

transformer = SpanishTransformer()
handler = FileHandler(open('/tmp/kl.log', mode='w', buffering=1))

kl = Kl(sleep_time=0.01, transformer=transformer, handler=handler)
kl.run()

License

MIT

kl's People

Contributors

surrealcristian avatar phoemur avatar

Stargazers

io avatar Damián Tundis avatar unbaiat avatar  avatar

Watchers

 avatar

Forkers

phoemur

kl's Issues

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.