This project is a basic keylogger built in Python, designed for educational and ethical purposes. It logs keystrokes with timestamps and saves them to a log file. The program emphasizes user consent and provides an option to specify the duration for which keystrokes are logged.
- User Consent: A disclaimer is displayed, and the user must accept the terms before running the keylogger.
- Time-Limited Logging: Users can specify how long the keylogger should run.
- Timestamped Keystrokes: Each keystroke is logged with a timestamp for clarity.
- Simple and Lightweight: Focused on simplicity, making it easy to understand and use for educational purposes.
-
Clone the repository:
git clone https://github.com/Maharkk/PRODIGY_CS_04.git cd ethical-keylogger
-
Install the required Python library:
pip install pynput
-
Run the Python script:
python keylogger.py
-
You will be prompted to agree to the disclaimer and set a time limit for logging keystrokes.
-
Once the time limit is reached, the keystrokes will be saved to
keystrokes_log.txt
.
This keylogger is intended for ethical and educational purposes only. You must have explicit permission to use this software on any device or system. Unauthorized use can violate laws and privacy regulations. The author is not responsible for any misuse of this software. .