{"id":21880457,"url":"https://github.com/definetlynotai/c2_discord_bot","last_synced_at":"2025-10-08T19:31:23.244Z","repository":{"id":254987365,"uuid":"848179550","full_name":"DefinetlyNotAI/C2_Discord_Bot","owner":"DefinetlyNotAI","description":"A special bot that can be used in C2 attacks, All you need to do is run it on a exploited device","archived":false,"fork":false,"pushed_at":"2024-09-05T16:39:09.000Z","size":56,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-28T09:13:43.366Z","etag":null,"topics":["attack","bot","c2","cybersec","discord","interface","server"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DefinetlyNotAI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-27T09:30:16.000Z","updated_at":"2024-09-30T21:49:20.000Z","dependencies_parsed_at":"2024-08-27T11:00:38.979Z","dependency_job_id":"e2cd08cd-36fe-496f-a3ee-d5acc3c70217","html_url":"https://github.com/DefinetlyNotAI/C2_Discord_Bot","commit_stats":null,"previous_names":["definetlynotai/c2_discord_bot"],"tags_count":0,"template":false,"template_full_name":"DefinetlyNotAI/Repo_Template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DefinetlyNotAI%2FC2_Discord_Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DefinetlyNotAI%2FC2_Discord_Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DefinetlyNotAI%2FC2_Discord_Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DefinetlyNotAI%2FC2_Discord_Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DefinetlyNotAI","download_url":"https://codeload.github.com/DefinetlyNotAI/C2_Discord_Bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235749079,"owners_count":19039343,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["attack","bot","c2","cybersec","discord","interface","server"],"created_at":"2024-11-28T09:13:50.059Z","updated_at":"2025-10-08T19:31:17.898Z","avatar_url":"https://github.com/DefinetlyNotAI.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C2 Discord Bot 📎\n\n\nWelcome to C2 Bot 🌐,\na cutting-edge tool\ndesigned to allow you to control device using a discord bot and a vulnerable target.\nCrafted with python,\nit's an actively developed project that is\naimed at testing and learning.\nThis comprehensive guide is here to equip you with everything you need to use the bot effectively.\n\n\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://github.com/DefinetlyNotAI/C2_Discord_Bot/issues\"\u003e\u003cimg src=\"https://img.shields.io/github/issues/DefinetlyNotAI/C2_Discord_Bot\" alt=\"GitHub Issues\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/DefinetlyNotAI/C2_Discord_Bot/graphs/commit-activity\"\u003e\u003cimg src=\"https://img.shields.io/github/commit-activity/t/DefinetlyNotAI/C2_Discord_Bot\" alt=\"GitHub Commit Activity\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/DefinetlyNotAI/C2_Discord_Bot/languages\"\u003e\u003cimg src=\"https://img.shields.io/github/languages/count/DefinetlyNotAI/C2_Discord_Bot\" alt=\"GitHub Language Count\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/DefinetlyNotAI/C2_Discord_Bot/actions\"\u003e\u003cimg src=\"https://img.shields.io/github/check-runs/DefinetlyNotAI/C2_Discord_Bot/main\" alt=\"GitHub Branch Check Runs\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/DefinetlyNotAI/C2_Discord_Bot\"\u003e\u003cimg src=\"https://img.shields.io/github/repo-size/DefinetlyNotAI/C2_Discord_Bot\" alt=\"GitHub Repo Size\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://codeclimate.com/github/DefinetlyNotAI/C2_Discord_Bot/maintainability\"\u003e\u003cimg src=\"https://api.codeclimate.com/v1/badges/cca8650d94930ae7382f/maintainability\" /\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n## 📜 Introduction\n\n### 🪟 Overview\n\nA bot that is the structure for C2 attacks, Its considered a backdoor where after implementing it\nand giving it privileges you can control it via discord reactions\n\n### 📖 Purpose\n\nThe primary aim of this project is to simplify\nthe process of implementing and creating backdoors\nfor educational and cybersecurity purposes.\nBy automating these tasks, users can focus more on analysis rather than manual processing.\n\n## 📦 Installation\n\n### 📄 Prerequisites\n\n- Python 3.x installed.\n- Access to the Discord Developer Portal.\n- Basic knowledge of Discord bot development.\n- Ability to actually seed in the backdoor\n\n### 🪜 Steps to Install\n\nIn the victim side\n1. Clone the repository or download the Discord bot script.\n2. Place the `c2.py` script in a suitable location on their Windows computer.\n3. Modify the `api.json` with your details\n4. Configure the script to start automatically on boot with admin permissions.\n\n## 🛠️ Configuration\n\nDiscord Bot Creation\n1. Visit the [Discord Developer Portal](https://discord.com/developers/applications).\n2. Create a new application and add a bot to it.\n3. Make sure the bot has these permissions when creating it:\n   - Administrator\n4. Make sure all the intents in the `intents` section are enabled, these are found in the `oauth2` section.\n5. Make sure the bot is added to the server you want to interact with.\n6. Navigate to the bot page and copy the bot token. This token will be used later.\n\nAccount Activation\n1. Activate your Discord account for developer mode to access channel IDs.\n2. Go to your account's settings and navigate to the \"Advanced\" tab.\n3. Enable \"Developer Mode\" and click \"Save Changes\".\n4. Go to your 2 channels in your server and copy the channel IDs of a channel where commands should be sent (for security reasons make it a public restricted channel where only mods can talk in it) and a channel where logs should be sent (For privacy reasons, this should be a private channel).\n\nConfiguration\n1. Update the `api.json` file with your bot's token, channel IDs, and other necessary configurations as per the instructions below.\n2. Replace placeholders in the code with actual usernames and passwords as needed. Ensure to follow the format specified in the comments.\n3. The bot's behavior and settings are configurable through the `api.json` file located in the project directory. Here's what you need to know:\n   - **Token**: Your bot's token obtained from the Discord Developer Portal.\n   - **Channel IDs**: Two channel IDs are required:\n      - `channel_id_(for_pcaps)`: The ID of the channel where pcap files should be sent.\n      - `channel_id_(for_logs)`: The ID of the channel where logs should be sent.\n   - **Webhooks Username**: A list of usernames that the bot should respond to. Include `#0000` for webhook usernames.\n   - **Log Using Debug**: A boolean value indicating whether to log using debug level, for production purposes set this to `false`.\n\n\nRunning the Bot\n1. Ensure you have Python installed on their system.\n2. Install required Python packages from the `requirements.txt` file using pip.\n\n## 🚦 Usage\n\nEnsure the bot is running in a Windows environment with admin privileges.\nAttacker can interact with the bot by sending messages (try `/c2` first) in the configured channels\nas well as reacting to the bots messages,\ntriggering responses based on message content and settings.\n\n### 🤖 Discord Bot Side Troubleshooting\nIf you encounter any issues, check the following:\n- Ensure your `api.json` file is correctly formatted and contains valid channel IDs.\n- Verify that the bot is properly configured.\n- Check the bot logs for any error messages.\n- Ensure the bot is running in a Windows environment with admin privileges.\n- Make sure the bot has proper admin permissions in the server.\n\n### 💬 Common Issues\nHere are some common issues and solutions to help you get back on track:-\n\n#### ⏱️ Discord Log Upload Fails\n- Check your internet connection to ensure it's stable (Maybe it's also the victim side).\n- Ensure the Discord channel associated with the webhook allows file uploads (The log).\n- Check if the log file grows too large, consider reducing the `max_size` parameter or implementing a log rotation mechanism.\n\n## 📈 Contributing\n\nContributions are encouraged! Fork the repository, make changes, and submit pull requests.\nContributions to improve functionality, security, and usability are welcomed.\n\nWe would appreciate any contributions to additional c2 features.\n\n## 📢 Support and Community\n\nJoin the Discord communities for support, discussions, and feature requests. \nActive forums and Discord channels offer assistance.\n\n## 🌟 Giving Back\n\nConsider contributing to the project, sharing experiences, or supporting the developers through donations.\n\n## 📜 License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## 📚 Additional Resources\n\n- Discord Developer Portal: [https://discord.com/developers/docs](https://discord.com/developers/docs)\n\n## 📧 Contact\n\nFor inquiries, feedback, or contributions,\nplease contact Shahm Najeeb using my [email](mailto:Nirt_12023@outlook.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefinetlynotai%2Fc2_discord_bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefinetlynotai%2Fc2_discord_bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefinetlynotai%2Fc2_discord_bot/lists"}