This repository contains Python scripts, TeleTexter.py
and TeleGatherer.py
, designed to assist analysts in tracking and disrupting active malware campaigns that use Telegram for command and control (C2) communications.
TeleGatherer.py
is the main script for gathering information regarding the channels of which the bots operate. It provides functionalities to:
- Retrieve basic information about a bot.
- Gather details about a specific chat, including chat administrators and member count.
- Information about the user behind the telegram channel, including Username and provided first and last name.
- Optionally, provides with a menu to choose from:
- Reading all channel messages from a different user or bot. (MONITOR)
- Deleting all messages from the malicious channel. (DISRUPT)
- Spam the malicious channel with a specific message of your choise (DISRUPT)
Note
This script could be useful for threat intelligence analysts or reserachers who want to monitor, collect and track adversaries that use Telegram for C2 communication.
To use these scripts, Python must be installed on your system, along with the requests
library.
-
Clone the repository:
git clone https://github.com/yourusername/TeleTracker.git
-
Install the required Python package:
pip install requests
To send a message to a Telegram channel:
python TeleTexter.py -t YOUR_BOT_TOKEN -c YOUR_CHAT_ID -m "Your message here"
To send messages continuously:
python TeleTexter.py -t YOUR_BOT_TOKEN -c YOUR_CHAT_ID -m "Your message here" --spam
To gather intelligence from a Telegram channel:\
python TeleGatherer.py -t YOUR_BOT_TOKEN -c YOUR_CHAT_ID
Use these tools responsibly. They are intended for analysis and research purposes only. Ensure compliance with all applicable laws and Telegram's terms of service.