A keylogger that -
- Captures your input in any window
- Save them to a file
- Quits automatically on an exit signal
- Saves load on CPU when special keys are pressed
Pyxhook ->
pip3 install pyxhook
Python-xlib ->
pip3 install python-xlib
Before running the program, set the END SIGNAL & LOG FILE path in line number 11 & 12 in keylogger.py
Then you can either run it with ->
python3 keylogger.py
Or if you want it in background ->
nohup python3 keylogger.py
The temporary buffer is reset everytime, if it doesn't matches the end signal
The script goes to sleep for 1 second when a special key is pressed (to reduce load on CPU)