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 details)
File details
Details for the file kl-1.0.1.tar.gz
.
File metadata
- Download URL: kl-1.0.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d41b8e386e4d759a35770b5989c6a7ea88b349505b99fb5c81d0479d2a2385c6 |
|
MD5 | e845bd365edfa0cb24a194b3ecc87364 |
|
BLAKE2b-256 | 2c260994bb14c5106a08662c2ee07adc03589e30dfa06153c5fee852f3e221a5 |