This is a simple Python-based keylogger that logs keystrokes to a text file. The keylogger is lightweight and logs all keys pressed on the keyboard.
- Logs all keystrokes to a file.
- Handles special characters like Enter, Space, Shift, and Control.
To set up and run the keylogger, follow these steps:
-
Clone the repository:
git clone https://github.com/PehanIn/key-logger.git
-
Install the required dependencies:
pip install pynput
-
Run the keylogger:
python main.py
-
The logs will be saved in
log.txtin the same directory as the script.
- Email logs: Add functionality to send logs via email at regular intervals.
- Screenshot capture: Optionally capture screenshots to monitor visual context.
Note: This project is for educational and ethical use only. Do not use it for any malicious or unauthorized activity.
This project is licensed under the MIT License - see the LICENSE.md file for details.