This is a basic keylogger program written in Python, designed to capture and log keystrokes to a file. It is part of my Cybersecurity Internship at SkillCraft Technology.
- Logs all keystrokes pressed on the keyboard.
- Logs special keys such as Shift, Space, Enter, Ctrl, Alt, and others.
- Logs keystrokes with timestamps.
- Saves keystrokes to a file named keylog.txt.
- Stops logging when the Escape (Esc) key is pressed.
- Can log both character keys and special keys.
- Automatically creates a log file if it doesn’t exist.
- Designed to run in the background and continuously log keystrokes until manually stopped.
- Python 3.x
- pynput library
- Use only in controlled environments with explicit permission or for ethical hacking scenarios.
- Never use keyloggers for malicious or unauthorized purposes.
- Respect the privacy and consent of individuals and organizations. By using this script, you acknowledge the ethical guidelines and agree to use it responsibly.