A simple keylogger written in Python that works on Linux (using evdev) and Windows (using pynput). It logs all keystrokes in plain text to a file and can auto-run on boot in Linux.
keylogger/
├── .gitignore
├── keylogger.py # Cross-platform logger script
├── keylogger.service # systemd service for Linux
├── install.sh # Linux installer
├── uninstall.sh # Linux uninstaller
├── install.bat # Windows installer
├── uninstall.bat # Windows uninstaller
├── requirements.txt # Required Python packages
└── README.md # This file
keylog.txt)keylogger.py if needed (/dev/input/event3)sudo ./install.sh
~/keylog.txt
✅ Automatically runs on system boot via
systemd.
install.bat
C:\Users\<YourName>\keylog.txt
sudo ./uninstall.sh
uninstall.bat
~/keylog.txt (Linux) or %USERPROFILE%\keylog.txt (Windows)DEVICE = '/dev/input/event3' in keylogger.py if needed (Linux only)This software is for educational and ethical research on devices you own.
Unauthorized use may violate privacy laws and is strictly not recommended.