Code Monkey home page Code Monkey logo

discord-rat-arch's Introduction

Discord-RAT has been rewritten! Check it out and give it a star! ⭐

logo

Discord-RAT: Remote Administration Tool

Discord-RAT is a cross-platform RAT that uses Discord as an interactive C2 Server.
Report Bug · Request Feature · Features · Screenshots

About Discord-RAT

Discord-RAT can handle many clients concurrently, along with archiving, Windows and Linux compatibility (cross-platform), upload/downloading, reverse shell functionality, and much, much more! (The built agent is small in size, approx. 2mb)

This tool has been recently rewritten in GoLang, please star ⭐ it to show your support!

How-To

  • Install Discord-RAT and GoLang on your machine.
  • Configure the Discord-RAT installation.
  • Compile Discord-RAT agents on your system.
  • Use the running Discord-RAT Bot appropriately.

Installation

Discord Bot and Server

As a prerequisite, you will need to have created a Discord Bot and a Discord Server that you have invited the bot to.

If you're not sure how to do the above, have a look at these resources:

⚠️ Make sure that you give the Discord Bot the following permissions on the "Bot Permissions" screen:

  • Send Messages
  • Read Messages
  • Attach Files
  • Manage Server

Or, you can just give it Administrator permissions.

And make sure that you copy the token of the bot you have created, as this will be used later in the configuration process.

GoLang

As this project was creating using GoLang, you will need to have it installed.

After you've installed GoLang (and checked that it is working!), continue with these steps:

  • Download/Clone this GitHub repository to a local folder on your Windows/Linux machine.
    • git clone https://github.com/dedhedzed/discord-rat-arch
    • Or simply press the Code > Download ZIP button and extract the files somewhere.
  • Change your directory to / go into the folder containing the repositories files.
  • Follow the steps in Usage

Usage

Configuration

To use Discord-RAT, you will need to configure it to host your Discord Bot in your Discord Server.

You can do this by editing the configuration file (pkg/util/config.go) as follows:

  • Replace BotToken with your Discord Bot's Token (you should have it copied from earlier).
  • Replace ServerID with the ID of the Discord Server that your Discord Bot is in (read below for guide)
  • Optionally, turn DeleteOnExit to true if you want each channel to be deleted when the agent exits, otherwise they will saved.
How can I obtain my Discord Server's ID? ⚙️
In order to obtain a server ID on Discord you need to enable Developer Mode:
  • Go to "User Settings"

  • Under "App Settings" to go the "Advanced" tab

  • Press "Enable Developer Mode"

  • You may or may not need to restart your Discord client, but usually it’s applied automatically

  • Now that you have Developer Mode enabled, right click on the desired server icon you wish to obtain the ID of

  • Select Copy ID in the menu shown to copy it to your clipboard

context_menu

You can now paste the Server ID in the pkg/util/config.go file!

Compiling Discord-RAT Agents

To compile Discord-RAT binaries (executables/stubs) on both Windows and Linux, use this guide:

  • Simply navigate to the folder you have installed Discord-RAT in.

  • If on Windows, launch the compile.bat script in the Discord-RAT directory. win_compiler

  • If on Linux, run the command make Makefile all in the Discord-RAT directory. lin_compiler

  • Allow the script to run and let the builds compile and compress.

  • All agent builds will be stored in the /bin directory (along with UPX, which is what they are compressed with). win_buildslin_builds

Interacting with the Bot

Now that you have successfully configured and compiled a Discord-RAT agent, you can wait for the file to be opened (by you or a third-party) and start interacting with the bot through the built-in commands.

Once opened, the Bot will create a channel with a channel name derived from the host (the machine running the Discord-RAT program) computer's external IP address (ex. 1851371261278) and will send a New Agent Connected embed along with the Command Menu embed, which lists all default commands you can use.

  • Always make sure to use the correct commands based on the operating system the agent is using (dir for displaying Windows files, and ls for Linux, etc.).
  • Make sure to read the commands section before executing anything so you know what you're doing.

When the agent exits or shuts down, the channel will be archived (#channel -> #archive-channel) if DeleteOnExit is set to false.

Showcase

Note The showcase video hasn't been created yet... It will be here soon!

Screenshots

New Connection WinNew Connection Linux

Command Menu

Commands

When all commands have been fully developed, I'll leave full documentation and guides for each command that Discord-RAT allows you to use; but at the moment, only the commands listed in the Command Menu have been developed, and are still to be improved in future updates.

Disclaimer

Discord-RAT is intended for legal and ethical use only. The developers and contributors of Discord-RAT are not responsible for any illegal or unethical activities performed using this tool. Users of Discord-RAT are solely responsible for their actions and are advised to use the tool for legitimate security testing purposes only. Reselling this program as a closed-source binary could have legal consequences, please do not steal the source.

License

Discord-RAT is licensed under the GNU General Public License v3.0. See the LICENSE file for more information.

discord-rat-arch's People

Contributors

dedhedzed avatar dependabot[bot] avatar yumyummity avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.