This project is a simple Python-based keylogger that records keystrokes and sends logs via email at regular intervals. It utilizes the pynput
library to capture keystrokes and smtplib
to send emails.
- Logs all keystrokes, including special keys.
- Sends logs to a specified email address at a set time interval.
- Runs in the background as a keylogger.
- Uses threading to periodically send logs without interrupting keystroke capturing.
- Python 3
- Required libraries:
pynput
smtplib
email
threading
You can install dependencies using:
pip install pynput
- Update the script with your email credentials:
my_keylogger = Keylogger(120, "YOUR_EMAIL", "YOUR_PASSWORD")
- Run the script:
python keylogger.py
- This script requires less secure app access enabled in Gmail. Alternatively, you can use an app-specific password or another SMTP service.
- Running a keylogger without user consent is illegal and unethical. Ensure you have proper authorization before deploying this tool.
This project is for educational purposes only. The author is not responsible for any misuse of this script.
- Implement encrypted log storage.
- Add a stealth mode feature.
- Support logging keystrokes into a local file instead of email.