This is a C2 client allowing to download files and execute bash commands on a distant machine, using a discord bot.
- Go to Discord Developer Portal,
create a new application, and a bot. Copy the token and paste it in the
.envfile. - Go to the
OAuth2tab, select thebotscope, and copy the generated URL to invite the bot to your server. - Make sure your bot has the
Send MessagesandRead Message Historypermissions. - Make sure all "Privileged Gateway Intents" are enabled in the bot settings (in developer portal).
cargo build --releasecargo run --releaseThe bot will listen to messages in the server, and execute the commands.
!download <path>: Download a file from the given path.!run <command>: Execute a bash command on the machine.
CY Tech - Louis Travaux, Yan Arresseguet, Léo Portet, Baptiste Hennuy.