Simple keylogger for Linux + X11
Project description
# kl
Simple keylogger for Linux + X11.
## Requirements
- python 2 or 3
- xlib
## Usage
Without custom callback (prints to STDOUT):
```python
import kl
kl.run()
```
With custom callback, logging to disk:
```python
import json
import kl
def log(keys):
with open('/tmp/kl.log', 'a') as f:
print(json.dumps(keys), file=f)
kl.run(cb=log)
```
Simple keylogger for Linux + X11.
## Requirements
- python 2 or 3
- xlib
## Usage
Without custom callback (prints to STDOUT):
```python
import kl
kl.run()
```
With custom callback, logging to disk:
```python
import json
import kl
def log(keys):
with open('/tmp/kl.log', 'a') as f:
print(json.dumps(keys), file=f)
kl.run(cb=log)
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kl-1.0.1.tar.gz
(2.8 kB
view hashes)