This Discord bot, intended for educational purposes, demonstrates a potential security vulnerability associated with arbitrary code execution or system access from user input. The bot includes a command for users to execute arbitrary shell commands using the "!shell" command. This should only be used in a controlled and secure environment.
The bot's feature includes: 1. Executing arbitrary shell commands using the "!shell" command. Tested and working on Windows and Linux.
Please use this bot responsibly and understand the associated security risks of its functionality.
- Clone the repository to your local machine:
git clone https://github.com/RocketGod-git/shell-access-discord-bot.git
- Navigate into the project's directory:
cd shell-access-discord-bot
- Install the necessary Python packages. This bot requires Python 3.7 or newer, and the discord.py library:
pip install discord
- Update the
config.json
file with your bot's token. Theconfig.json
file should look something like this:{ "DISCORD_BOT_TOKEN": "your-token-here", "CHANNEL_ID": "123456789012345678replaceme" }
- Run the bot with the following command:
python shell-bot.py