- This program records and logs every key you press on your keyboard.
- It saves all keystrokes to a file named
keylog.txtin the same folder. - The program runs in the background and safely exits when you press the ESC key.
- Uses the
pynputlibrary to listen to keyboard events. - Normal characters (letters, numbers) are written directly.
- Special keys (like
Enter,Space) are written inside[brackets]. - Pressing ESC stops the keylogger and closes the program.
1️⃣ Install Python 3.x if not already installed.
2️⃣ Install the required library:
3️⃣ Save the script as keylogger.py.
4️⃣ Run the program:
5️⃣ Start typing! All your keystrokes will be saved in keylog.txt.
6️⃣ To stop logging, press the ESC key.
This project is for educational use only. Using a keylogger on someone else’s computer without clear permission is illegal and unethical. Use responsibly on your own system.
- Built by: Gowsik Raja.S
- Cybersecurity Enthusiast