This is a simple keylogger program implemented in Python using the pynput library. The program features a graphical user interface (GUI) that allows you to start and stop the keylogger. It logs pressed keys, including special keys, to a file named log.txt.
1. Start and stop the keylogger using the provided GUI buttons.
2. Records both regular character keys and special keys.
3. Logs keystrokes to a text file (log.txt) in the same directory.
1. Python: Make sure you have Python installed on your system. If not, you can download it from the official Python website.
2. "pynput" Library: The keylogger relies on the pynput library. You can install it using the following command:
pip install pynput
2. Install the necessary dependencies as mentioned above.
3. Run the keylogger script by executing the following command in your terminal or command prompt:
python keylogger.py
4. The GUI window will open with "Start Keylogger" and "Stop Keylogger" buttons. Click the "Start Keylogger" button to begin recording keystrokes, and click the "Stop Keylogger" button to stop recording.
5. The logged keystrokes will be stored in a file named log.txt in the same directory as the script.