A simple Python keylogger using pynput that logs keystrokes to a text file.
- Logs all keystrokes in real-time
- Handles normal characters and special keys
- Saves output to a simple text file (
keylog.txt) - Minimal and beginner-friendly codebase
| File | Description |
|---|---|
Keylogger.py |
Main Python script |
keylog.txt |
Output file (auto-created) |
- Python 3.x
pynputlibrary
clone direcotory
git clone https://github.com/HarshitPal25/Keylogger-program.git
cd Keylogger-programInstall the required library using pip:
pip install pynputRun the Script
python3 Keylogger.py