Skip to content

A discord bot written in rust to execute commands and download files on a distant machine.

Notifications You must be signed in to change notification settings

loouis-t/c2-discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C2 Client

This is a C2 client allowing to download files and execute bash commands on a distant machine, using a discord bot.

Installation

Configuration

  • Go to Discord Developer Portal, create a new application, and a bot. Copy the token and paste it in the .env file.
  • Go to the OAuth2 tab, select the bot scope, and copy the generated URL to invite the bot to your server.
  • Make sure your bot has the Send Messages and Read Message History permissions.
  • Make sure all "Privileged Gateway Intents" are enabled in the bot settings (in developer portal).

Build

cargo build --release

Execution

cargo run --release

Usage

The bot will listen to messages in the server, and execute the commands.

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.

About

A discord bot written in rust to execute commands and download files on a distant machine.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages