DragonetC2 is a sophisticated Discord-based Command and Control (C2) backdoor written in Go. This project demonstrates advanced remote access capabilities through a Discord bot interface, allowing for covert system control and information gathering.
- Discord-based command and control
- Remote command execution
- File upload and download capabilities
- Screenshot capture
- System information gathering
- Persistence mechanisms
- Location tracking
- Process listing
- Directory navigation
- Wallpaper changing
The bot responds to both text commands and slash commands:
🏃♂️ <command>: Runs a system command📸: Takes a screenshot of all displays👇 <file>: Uploads a specified file from the target system☝️ <path>: Downloads the attached file to the specified path on the target system💀: Shuts down the bot!help: Displays the help menu
/cmd <command>: Runs a system command/powershell <command>: Runs a PowerShell command/screenshot: Takes a screenshot of all displays/download <file>: Downloads a specified file from the target system/upload <url> <path>: Uploads a file from a URL to a specified path on the target system/location: Retrieves the current IP location/cd <path>: Changes the working directory/ls [path]: Lists directory contents/process: Lists all running processes/persistent: Makes the agent persistent on the target machine/creds: Retrieve Chrome credentials on the target machine/wallpaper <url>: Changes the desktop wallpaper/keylogger start: Start a keylogger on the target machine/keylogger stop: Stop the keylogger on the target machine/terminate: Shuts down the bot/shutdown: Shuts down the bot/help: Displays the help menu
- Clone the repository
- Install the required Go dependencies:
go get github.com/bwmarrin/discordgo go get github.com/kbinani/screenshot go get github.com/shirou/gopsutil/cpu go get modernc.org/sqlite go get golang.org/x/sys/windows go get github.com/shirou/gopsutil/process go get github.com/reujab/wallpaper go get github.com/TheTitanrain/w32 go get github.com/ShellCode33/VM-Detection/vmdetect - Create a Discord bot and obtain the bot token
- Replace
BOT_TOKENandCHANNEL_IDinmain.gowith your Discord bot token and channel ID - Build the project:
go build -ldflags="-s -w -H=windowsgui" . - Use the builder.py Python script to automate the above.
python3 builder.py [+] > use discord [+] > set guild-id <Your Discord Channel-ID> [+] > set bot-token <Your Discord Bot Token> [+] > show [+] > build
- Run the compiled executable on the target system
- The bot will connect to the specified Discord channel
- Use the Discord interface to send commands and interact with the target system
- This tool can be detected by antivirus software and should not be used for malicious purposes
- Always ensure you have proper authorization before using this tool on any system
- The bot token and channel ID are hardcoded in the binary, which poses a security risk if the binary is obtained by unauthorized parties
Contributions to improve the project are welcome. Please adhere to ethical guidelines and use this project responsibly.
This project is for educational purposes only. Use at your own risk.
This project uses the following open-source libraries:
Created by V31l_0x1 | Twitter: @v31l_0x1
