TRAT is a powerful cross-platform RAT based on Telegram-bot protocol.
- Cross-platform
- Modularity allowing endless functionality expansion
- Based on Telegram-bot protocol
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.
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:
Send /help
to obtain to get help:
By default, you don't have any modules, but you can install one by sending zipped module to bot:
You can check it by /modules
command:
Now all new commands appear in the /help
menu:
Ensure you have pyinstaller installed.
To build, just run the script:
sh ./scripts/build.sh
or (for Windows):
"scripts/build.bat"
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:
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)
TRAT is released under the MIT License. See the bundled LICENSE file for details.