A simple keylogger in python working in Linux. Is not difficult creating a keylogger for Windows OS.
- First, we need this library to emulate some of the PyHook library on linux.
- The library need python-xlib to work fine. You can install it using
sudo apt-get install python-xlib
This is a simple and dumb example of keylogger that logs every single key pressed in a log file and every character is followed by a /n. To make everything working, create a directory and put inside the keylogger.py file and the pyxhook.py file downloaded from github.
Inside keylogger.py there is a macro named PATH that identify the place where the log file is saved; feel free to change this location as you prefer. Feel free to change everything you want and have fun!