β οΈ This project is intended only for ethical hacking education and cybersecurity awareness. It does not send data over the internet and is safe to run locally.
This Python-based Keylogger Simulator demonstrates how basic keylogging tools work by capturing keyboard input locally. It helps cybersecurity students and ethical hackers understand the mechanics behind keyloggers in a legal and controlled environment.
- β Captures all keystrokes with timestamps
- β
Automatically writes logs to
logs/key_logs.txt
- β
Terminates safely when the
ESC
key is pressed - β Uses threading to flush logs every 60 seconds
- β 100% offline β does not send data anywhere
- β Beginner-friendly and well-documented code
- Clone the repo or download the ZIP
git clone https://github.com/YOUR_USERNAME/Keylogger-Simulator.git
cd Keylogger-Simulator
- Install dependencies
pip install -r requirements.txt
- Run the simulator
python keylogger.py
Press ESC key anytime to stop the logger.
View the sample log file here:
π logs/key_logs.txt
Keyloggers are common in both offensive and defensive security:
π‘οΈ Blue teams learn how to detect them
π΅οΈ Red teams learn how theyβre made (ethically)
π§βπ Students understand keyboard event listeners
This simulator helps bridge the knowledge gap safely.
This tool is intended only for personal learning, ethical hacking labs, and red team simulations with full consent. Do not use this on anyoneβs device without explicit permission.
If you found this useful, consider β starring the repo or connecting with me on LinkedIn.