Create your own Mirai botnet using Docker.
For use with Ubuntu 14.04 x64. For the source code, please refer to: mirai
- Docker Swarm
- Portainer (used for managing the swarm, you can of course use the command line if you prefer but you'll have to translate the commands yoruself)
- Clone this repository.
- In each of the
docker-botanddocker-cncdirectories, build the corresponding image- e.g. for the cnc:
$ sudo docker build -t cnc . - e.g. for the bot:
$ sudo docker build -t bot .
- e.g. for the cnc:
- Create the botnet network in Portainer
- Name:
botnet - Subnet:
172.20.0.0/16 - Gateway:
172.20.0.1 - Driver:
overlay - Driver options:
com.docker.network.bridge.enable_icc:true
- Name:
- Start the cnc service in Portainer
- Name:
cnc - Image:
cnc:latest - Mode:
Replicated - Replicas:
1 - Port Mapping:
Host:8080,Container:23,TCP - Network: botnet
- Name:
- Start the bot service in Portainer
- Name:
bot - Image:
bot:latest - Mode:
Replicated - Replicas:
<up to you, a safe estimate is 1 bot per CPU core> - Network:
botnet
- Name:
- Connect to the cnc