Please note that this script is for educational purposes only, and should not be used for any malicious activities. It is your responsibility to use this script in a legal and ethical manner, and the author of this script assumes no liability for any damages caused by its use.
This Python3 script uses the pynput library to log all the key presses and releases made on the keyboard. The script writes the output to a file named keylog.txt in the same directory as the script.
To run this script, you need to have Python 3 installed on your system. You can install the required pynput library using pip by running the following command:
pip3 install pynput
To start logging the keys, run the script by executing the following command in your terminal:
python3 pylogger.py
The script will start recording the key presses and releases in the background. To stop the script, press the esc key on your keyboard. The output of the script will be saved to a file named keylog.txt in the same directory as the script. The output will contain the characters that were typed, as well as any special keys that were pressed or released.