Skip to content

Latest commit

 

History

History
75 lines (47 loc) · 3.5 KB

README.md

File metadata and controls

75 lines (47 loc) · 3.5 KB

TeleTracker

This repository contains Python scripts, TeleTexter.py, TeleGatherer.py and TeleViewer.py, designed to assist analysts in tracking and disrupting active malware campaigns that use Telegram for command and control (C2) communications.

TeleGatherer.py

TeleGatherer.py is the main script for gathering intelligence on the activities of threat actors and the data they collect from compromised hosts. It has been updated with new features and improvements:

  • View all channel messages and download all uploaded content such as documents, photos, videos, and other media. Content is saved in a directory called 'downloads'.
  • Select the number of messages to download, starting from the newest to the oldest.
  • Save all text in two formats: pretty text with basic info and full JSON dumps of every message.
  • Retrieve basic information about a bot and its owner along with other channel-related information.
  • Existing features have undergone many improvements, including bug fixes and enhancements.
  • Optionally, provides a menu to choose from:
    • Reading all new messages from a different user or bot. (MONITOR)
    • Deleting all messages from the malicious channel. (DISRUPT)
    • Spamming the malicious channel with a specific message of your choice using multiprocessing to send hundreds of messages per second. (DISRUPT)

Note

This script is intended for threat intelligence analysts or researchers who want to monitor, collect, and track adversaries using Telegram for C2 communication.

Installation

To use these scripts, Python must be installed on your system, along with the requests library.

  1. Clone the repository:
    git clone https://github.com/tsale/TeleTracker.git

  2. Install the required Python package:
    pip install -r requirements

Usage

TeleTexter.py

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

Introducing Televiewer.py

Televiewer.py is the latest tool, allowing you to view and download all messages and media from the threat actor-controlled telegram channel. You can use this feature by selecting the number 6 from the initial menu after running TeleGathere.py. With Televiewer.py features, you can:

  • View all channel messages and download all uploaded content, including documents, photos, videos, and other media. All downloaded content is saved in a downloads directory.
  • Specify the number of messages to download, from the newest to the oldest.
  • Save all text in two formats: clean, readable text with basic info saved in a Txt file and a comprehensive list of every message saved in a JSON file.

To use Televiewer.py, create a Telegram API and add your API_hash and API_id to the .env file. in the below format:

API_ID="XXX"
API_HASH="XXX"

TeleGatherer.py

To gather intelligence from a Telegram channel:

python TeleGatherer.py -t YOUR_BOT_TOKEN -c YOUR_CHAT_ID

Recent Updates

  • Ability to view and download all types of media from channels.
  • Option to select the number of messages for downloading.
  • Dual format text saving: pretty text and full JSON dumps.
  • Numerous improvements and bug fixes to enhance existing features.

Disclaimer

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.