This is a simple keylogger script written in Python that logs key presses and sends them to a specified Telegram chat using the Telegram Bot API. The script utilizes the pynput library for keyboard monitoring and the python-telegram-bot library for interacting with the Telegram API.
Note: The use of keyloggers without explicit consent is unethical and potentially illegal. This script is intended for educational purposes only, and it is crucial to respect privacy and adhere to applicable laws and regulations.
- Monitors keyboard inputs in real-time.
- Sends logged key presses to a Telegram chat.
- Python 3.x
pynputlibrary (pip install pynput)python-telegram-botlibrary (pip install python-telegram-bot)
- Create a new bot on Telegram by talking to the BotFather.
- Obtain the API token for your bot.
- Get your chat ID.
- Replace
'YOUR_API_TOKEN'and'YOUR_CHAT_ID'in the script with your bot's API token and chat ID.
Run the script, and it will start monitoring keyboard inputs. The key presses, along with timestamps, will be sent to the specified Telegram chat in Markdown format.
python keylogger.pyThis script is intended for educational purposes only. The use of keyloggers without explicit consent is unethical and potentially illegal. The author is not responsible for any misuse of this script.