# Botnet Control Script

**Category:** mIRC_Bot
**Original Author:** cmouse@fiiu.org

## Description
This script is designed to control a botnet from a central master server, allowing for operations such as adding and removing bots, managing user permissions, and executing channel commands. The script uses a client-server architecture where the master server sends commands to slave bots.

## Key Features
- **Bot Management:** Add, remove, and manage bot entries.
- **User Management:** Add, remove, and change user permissions.
- **Channel Operations:** Join, part, and set channel modes.
- **Mode Changes:** Change user and bot modes globally or per-channel.
- **Password Management:** Change passwords for users.
- **Restart and Die Commands:** Restart the bot or kill it permanently.

## File Analysis
- **bnusers_master.tcl** — Contains the main logic for handling commands from slave bots, including adding/deleting users/bots, changing permissions, and executing channel operations. It also handles command encryption/decryption.
- **bnusers_slave.tcl** — The counterpart script running on slave bots, responsible for receiving commands from the master server and performing actions based on those commands.