Keylogger is a Python-based project designed to capture and log keystrokes. It demonstrates how key-logging can be used for various purposes, such as monitoring typing activity for research, troubleshooting keyboard issues, or learning how keyloggers work for cybersecurity education.
- Capture Keystrokes: Records every keystroke made on the keyboard.
- Logs to File: Saves keystrokes into a log file for later analysis.
- Hidden Execution: Runs in the background without user interference.
- Modular Design: Built with functions that can be easily customized or extended.
The project contains the following main files:
keylogger.py
- The main script that initiates the keylogger.requirements.txt
- Lists all the Python libraries needed for this project.
Follow these steps to get the project up and running on your local machine.
- Python 3.x: Make sure you have Python installed. You can download it from python.org.
- Git: (Optional) To clone the repository from GitHub.
git clone https://github.com/ramprasathmk/keylogger.git
cd keylogger
Run this command to create and activate a virtual environment (recommended):
python -m venv env
- Windows:
env\Scripts\activate
- MacOS/Linux:
source env/bin/activate
Install the required dependencies:
pip install -r requirements.txt
Once you've set up the environment, you're ready to run the keylogger.
- To start logging keystrokes, run:
python keylogger.py
- Keystrokes are saved in a file (specified within the script). Open this file to view the logged keystrokes.
- Refer Code.md
- This keylogger is intended for educational and research purposes only. Unauthorized keylogging is illegal and unethical. Only run this on systems you have permission to monitor.
- Logging Format: You can adjust how keystrokes are logged (timestamps, formatting, etc.) within the script.
- Additional Features: Try adding email reporting, screenshots, or encryption to further enhance functionality.
- Contributions are welcome! Feel free to open issues or submit pull requests to improve the project. Always ensure compliance with ethical guidelines and project goals.
- This project is licensed under the MIT License - see the LICENSE file for details.
-
If you have any questions or need clarification, feel free to reach out via the GitHub Issues section.
-
This README provides a friendly, clear, and ethical overview, and ensures users understand both setup and legal considerations.
Give a ⭐ if you like this repository!
Happy Logging! 🔍