This is a Python-based keylogger that captures and logs keystrokes in real-time and saves them into a text file. Built using the pynput library, this project is a beginner-friendly introduction to monitoring keyboard activity.
- π₯ Logs every key press (letters, numbers, symbols, special keys)
- πΎ Automatically saves logs to
key_log.txt - βΉοΈ Press
ESCto stop logging - π§βπ» Lightweight and runs in the background
A keylogger is a program that records the keys struck on a keyboard. This one logs input locally for educational purposes only.
- Python 3.x installed
- Required library:
pip install pynput- Clone this repository:
git clone https://github.com/pys07/PRODIGY_CS_04.git
cd PRODIGY_CS_04- Run the script:
python keylogger.py- Type something in the terminal or another window
- Press
ESCto stop the logger - Open
key_log.txtto view the logged keystrokes
PRODIGY_CS_02/
βββ keylogger.py
βββ README.md
A keylogger is a program that records every keystroke made on a keyboard. It captures typed information secretly or for monitoring purposes.
This project is intended strictly for educational use only. Unauthorized use of keyloggers is unethical and may be illegal. Use responsibly, and only on machines where you have permission.
Made with β₯ by Payal Samant