Create your own Mirai botnet using Docker.
For use with Ubuntu 14.04 x64. For the source code, please refer to: mirai
- Docker Swarm
- Clone this repository.
- In each of the
docker-bot
anddocker-cnc
directories, build the corresponding image- e.g. for the cnc:
$ sudo docker build -t mirai-cnc .
- e.g. for the bot:
$ sudo docker build -t mirai-bot .
- e.g. for the cnc:
- Create the botnet network
$docker network create --subnet 172.20.0.0/16 --gateway 172.20.0.1 -d overlay -o com.docker.network.bridge.enable_icc:true botnet
- Start the cnc service
$ docker service create --name cnc --mode replicated --replicas=1 --network botnet -p 8080:23 mirai-cnc:latest
- Start the bot service
$ docker service create --name bots --mode replicated --replicas=2 --network botnet mirai-bot:latest
- Connect to the cnc