Giter Club home page Giter Club logo

discord-c2's Introduction

Work in progress

Injecting the DLL in a PowerShell process:

Add-Type -path .\Discord-C2.dll
[DiscordC2.Server]::Start()

A .dc2 file containing your bot's token needs to be accessible in the folder where the application is going to run. This is a temporary solution during development, it will be obfuscated to a much higher degree later

Features

run cmd or powershell, and retrive results:

  • cmd ipconfig runs ipconfig in cmd and returns result
  • pwsh dotnet --version runs dotnet --version in powershell and returns result

image

With coming updates the bot will create a new channel when a new host is encountered. The channels name will reflect that of the infected computers hostname / IP. Commands entered here will run on that host only.

In addition a "Bulk/Batch Control" channel will get setup by the bot where, commands can be triggered for all infected hosts.


Planned features

  • Slash command that takes an argument and runs it as CMD/PowerShell commands on the host, and replies with its results in chat.
  • Slash command that takes the path to a DLL and attempts to inject it into some process on the host machine.
  • Support for several hosts, each getting their separate channel in the discord server.
    • The channels lets you run commands against that specific host
    • A "main" channel will let you run commands in bulk
  • Agent spawner that spawns agents using a specific bot token

Intended Use:

This code is intended for educational purposes only. It can be used to explore the research concepts presented and understand red team methodologies.

Not for Malicious Activity:

This code should not be used for any malicious activities or real-world attacks.

Disclaimer:

The authors are not responsible for any misuse of this code.

discord-c2's People

Contributors

joaf123 avatar

Watchers

 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.