This is a simple keylogger written in C++ that records keystrokes and saves them to a file (keys.txt). It runs in the background and logs user input, including special keys like Enter, Backspace, Shift, and more.
- Logs all key presses
- Hides the console window for stealth mode
- Records special keys with descriptive labels
- Saves logs to
keys.txt
- Windows OS
- A C++ compiler (e.g., MinGW, MSVC)
g++ keylogger.cpp -o keylogger ./keyloggerThe program will start logging keystrokes and store them in keys.txt.
This project is for educational and ethical research purposes only. Unauthorized use of keyloggers is illegal and punishable by law. Use this responsibly and only on systems you own or have explicit permission to test.