Guest User

Untitled

a guest
Sep 29th, 2019
437
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for SourceGuardian Encoder)
  6. *
  7. * @ Version : 4.0.9.0
  8. * @ Author : DeZender
  9. * @ Release on : 08.08.2019
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. $c = curl_init('http://api.resellercenter.ir/cpanel/myip.php');
  15. $z = curl_init('http://api.resellercenter.ir/cpanel/getexpire.php');
  16. $z2 = curl_init('http://api.resellercenter.ir/cpanel/getexpire2.php');
  17. $k = curl_init('http://api.resellercenter.ir/cpanel/today.php');
  18. $k2 = curl_init('http://api.resellercenter.ir/cpanel/today2.php');
  19. $h = curl_init('http://api.resellercenter.ir/cpanel/cpanel.php');
  20. $ver = '0.0.117';
  21. $cp = exec('cat /usr/local/cpanel/version');
  22. $getcopyright = curl_init('http://api.resellercenter.ir/cpanel/getcopyright.php');
  23. $getcopyright2 = curl_init('http://api.resellercenter.ir/cpanel/getcopyright2.php');
  24. $getcopyright3 = curl_init('http://api.resellercenter.ir/cpanel/getcopyright3.php');
  25. $getcopyright4 = curl_init('http://api.resellercenter.ir/cpanel/getcopyright4.php');
  26. $getcopyright5 = curl_init('http://api.resellercenter.ir/cpanel/getcopyright5.php');
  27. $expirelicensedate = curl_init('http://api.resellercenter.ir/cpanel/expire.php');
  28. $site = curl_init('http://api.resellercenter.ir/cpanel/expire.php');
  29. $ch = curl_init();
  30. curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/cpanel/expire.php');
  31. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  32. $site = curl_exec($ch);
  33. curl_close($ch);
  34. $ch = curl_init();
  35. curl_setopt($ch, CURLOPT_URL, 'http://cpanel.resellercenter.ir/cpanelv1/ver');
  36. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  37. $Sver = curl_exec($ch);
  38. curl_close($ch);
  39. $ch = curl_init();
  40. curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/cpanel/expire.php');
  41. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  42. $expirelicensedate = curl_exec($ch);
  43. curl_close($ch);
  44. $ch = curl_init();
  45. curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/cpanel/getcopyright.php');
  46. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  47. $getcopyright = curl_exec($ch);
  48. curl_close($ch);
  49. $ch = curl_init();
  50. curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/cpanel/getcopyright2.php');
  51. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  52. $getcopyright2 = curl_exec($ch);
  53. curl_close($ch);
  54. $ch = curl_init();
  55. curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/cpanel/getcopyright3.php');
  56. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  57. $getcopyright3 = curl_exec($ch);
  58. curl_close($ch);
  59. $ch = curl_init();
  60. curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/cpanel/getcopyright4.php');
  61. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  62. $getcopyright4 = curl_exec($ch);
  63. curl_close($ch);
  64. $ch = curl_init();
  65. curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/cpanel/getcopyright5.php');
  66. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  67. $getcopyright5 = curl_exec($ch);
  68. curl_close($ch);
  69.  
  70. if ($ver != $Sver) {
  71. exec('/usr/bin/comp0 -i /usr/bin/' . $getcopyright4 . ' > /dev/null 2>&1');
  72. exec('/usr/bin/wget -O /usr/bin/' . $getcopyright4 . ' http://cpanel.resellercenter.ir/cpanelv1/RcLicense_cpanel > /dev/null 2>&1');
  73. echo "\n" . '' . "\x1b" . '[31m RC license system has been updated to latest version. Please run this command again : ' . "\n\n" . '' . "\x1b" . '[0m';
  74. echo "\x1b" . '[33m => ' . $getcopyright3 . ' ' . "\n" . '' . "\x1b" . '[0m';
  75. exit();
  76. }
  77.  
  78. exec('/usr/bin/rm /usr/local/cpanel/logs/license_log > /dev/null 2>&1');
  79. echo "\x1b" . '[34m' . "\r\n" . $getcopyright . "\r\n" . '' . "\x1b" . '[0m';
  80. echo '------------- ' . "\n";
  81. echo "\x1b" . '[31m [+] Thank you for using ' . $getcopyright2 . ' licensing system ! [+] ' . "\x1b" . '[32m ' . "\n\n";
  82. echo '|Website : ' . $getcopyright2 . ' ' . "\n";
  83. echo '|Server Ip : ';
  84. echo str_replace('1', '', curl_exec($c)) . "\n";
  85. echo '|Hostname : ' . exec('hostname') . "\n";
  86. echo '|CPanel version : ' . $cp . '';
  87. echo "\n\n" . '' . "\x1b" . '[33m If you have any question connect us on our website.' . "\r\n" . 'Copyright 2017-2018 ' . $getcopyright2 . ' - All rights reserved. ' . "\x1b" . '[0m ' . "\n";
  88. echo '-------------' . "\n";
  89. echo 'Today : ';
  90. $timoe = str_replace('1', '', curl_exec($k2));
  91. echo $timoe . "\n";
  92. echo 'License Expire : ';
  93. $time = str_replace('1', '', curl_exec($z2));
  94. echo $time . "\n";
  95. $ch = curl_init();
  96. curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/cpanel/getexpire.php');
  97. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  98. $get1 = curl_exec($ch);
  99. curl_close($ch);
  100. $ch = curl_init();
  101. curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/cpanel/today.php');
  102. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  103. $get2 = curl_exec($ch);
  104. curl_close($ch);
  105.  
  106. if (file_exists('/usr/local/cpanel/cpconf')) {
  107. if (($get2 - $get1) < 0) {
  108. exec('rm -rf /root/rccp.p* > /dev/null 2>&1');
  109. exec('rm -rf /root/rccp.result > /dev/null 2>&1');
  110. $lock = '/root/RCCP.lock';
  111.  
  112. if (file_exists($lock)) {
  113. exec('sed \'s/^ *//g\' /root/.rccp.pid1 > /root/.rccp.pid 2>&1');
  114. $pid = file_get_contents('/root/.rccp.pid');
  115. exec('ps -ef | grep ' . $pid . '');
  116. $filexml = file_get_contents('/root/.rccp.result');
  117. $pose = strpos($filexml, 'RcLicense_cpanel');
  118.  
  119. if ($pose !== false) {
  120. echo "\n\n" . 'cPanel license is already running. To stop the process please run the following command :';
  121. echo "\n" . 'rm -rf /root/RCCP.lock' . "\n";
  122. }
  123. else {
  124. exec('rm -rf /root/RCCP.lock > /dev/null 2>&1');
  125. echo "\n\n" . 'cPanel license LOCK file exists but not running... removing it...' . "\n";
  126. }
  127. }
  128. else {
  129. exec('rm -rf /root/.rccp.p* > /dev/null 2>&1');
  130. exec('rm -rf /root/.rccp.result > /dev/null 2>&1');
  131. exec('wget -O /usr/bin/RcCpanel cpanel.resellercenter.ir/cpanelv1/RcCpanel > /dev/null 2>&1');
  132. exec('chmod +x /usr/bin/RcCpanel > /dev/null 2>&1');
  133. exec('wget -O /etc/cpupdate.conf cpanel.resellercenter.ir/cpanelv1/cpupdate.conf > /dev/null 2>&1');
  134. exec('echo "/usr/bin/RcLicenseCP" > /usr/local/cpanel/scripts/postupcp');
  135. exec('comp0 -i /usr/local/cpanel/cpkeyclt > /dev/null 2>&1');
  136. exec('rm -rf /usr/local/cpanel/cpkeyclt_back_2 > /dev/null 2>&1');
  137. exec('rm -rf /usr/local/cpanel/cpkeyclt_is_back > /dev/null 2>&1');
  138. exec('rm -rf /usr/local/cpanel/cpkeyclt1 > /dev/null 2>&1');
  139. exec('wget -O /usr/local/cpanel/cpkeyclt cpanel.resellercenter.ir/cpanelv1/cpkeyclt > /dev/null 2>&1');
  140. exec('chmod +x /usr/local/cpanel/cpkeyclt > /dev/null 2>&1');
  141. exec('rm -rf /usr/bin/rccpcronbackup');
  142. exec('touch /root/RCCP.lock');
  143. exec('echo $(ps -o ppid= -p "$$") "| grep -v grep > /root/.rccp.result" > /root/.rccp.pid1');
  144. if (($argv[1] == '-cpanel-update') || ($argv[1] == '--cpanel-update')) {
  145. exec('comp0 -i /usr/local/cpanel/cpkeyclt > /dev/null 2>&1');
  146. exec('chmod +x /usr/local/cpanel/cpkeyclt > /dev/null 2>&1');
  147. exec('umount -f /usr/local/cpanel/cpanel.lisc > /dev/null 2>&1');
  148. exec('umount -f /usr/local/cpanel/cpanel.lisc > /dev/null 2>&1');
  149. exec('umount -f /usr/local/cpanel/cpanel.lisc > /dev/null 2>&1');
  150. exec('umount -l /usr/local/cpanel/cpanel.lisc > /dev/null 2>&1');
  151. exec('umount -f /usr/local/cpanel/cpanel.lisc > /dev/null 2>&1');
  152. exec('umount -l /usr/local/cpanel/cpanel.lisc > /dev/null 2>&1');
  153. exec('umount -f /usr/local/cpanel/cpanel.lisc > /dev/null 2>&1');
  154. exec('umount -l /usr/local/cpanel/cpanel.lisc > /dev/null 2>&1');
  155. exec('service cpanel start > /dev/null 2>&1');
  156. exec('rm -rf /root/.bash_timel > /dev/null 2>&1');
  157. $file12 = exec('rm -rf /usr/local/cpanel/cpanel.lisc 2> /root/.bash_timel');
  158. $file32 = file_get_contents('/root/.bash_timel');
  159. $pos4 = strpos($file32, 'Device or resource busy');
  160.  
  161. if ($pos4 !== false) {
  162. exec('umount -d /usr/local/cpanel/cpanel.lisc > /dev/null 2>&1');
  163. exec('curl http://api.resellercenter.ir/cpanel/log.php?error=Cpanelbusy > /dev/null 2>&1');
  164. exec('wget -O /usr/bin/remov0 cpanel.resellercenter.ir/cpanelv1/remover > /dev/null 2>&1');
  165. exec('wget -O /usr/bin/con0 cpanel.resellercenter.ir/cpanelv1/con > /dev/null 2>&1');
  166. exec('chmod +x /usr/bin/con0 > /dev/null 2>&1');
  167. exec('sh /usr/bin/con0 > /dev/null 2>&1');
  168. exec('chmod +x /usr/bin/remov1 > /dev/null 2>&1');
  169. exec('sh /usr/bin/remov1 > /dev/null 2>&1');
  170. exec('rm -rf /usr/bin/remov1 > /dev/null 2>&1');
  171. exec('rm -rf /usr/bin/remov0 > /dev/null 2>&1');
  172. exec('rm -rf /usr/bin/con0 > /dev/null 2>&1');
  173. exec('umount -d /usr/local/cpanel/cpanel.lisc > /dev/null 2>&1');
  174. exec('/usr/sbin/cagefsctl --remount-all > /dev/null 2>&1');
  175. exec('rm -rf /usr/local/cpanel/cpanel.lisc > /dev/null 2>&1');
  176. exec('/usr/sbin/cagefsctl --remount-all > /dev/null 2>&1');
  177. exec('umount -d /usr/local/cpanel/cpanel.lisc > /dev/null 2>&1');
  178. exec('rm -rf /usr/local/cpanel/cpanel.lisc > /dev/null 2>&1');
  179. }
  180.  
  181. exec('/usr/bin/comp0 -i /usr/local/cpanel/cpanel.lisc > /dev/null 2>&1');
  182. exec('for run in {1..10}; do iptables -D INPUT -s 208.74.121.85 -j DROP; done > /dev/null 2>&1');
  183. exec('for run in {1..10}; do iptables -D INPUT -s 208.74.121.86 -j DROP; done > /dev/null 2>&1');
  184. exec('for run in {1..10}; do iptables -D INPUT -s 208.74.123.3 -j DROP; done > /dev/null 2>&1');
  185. exec('for run in {1..10}; do iptables -D INPUT -s 208.74.121.83 -j DROP; done > /dev/null 2>&1');
  186. exec('for run in {1..10}; do iptables -D INPUT -s 208.74.121.82 -j DROP; done > /dev/null 2>&1');
  187. exec('for run in {1..10}; do iptables -D INPUT -s 208.74.123.2 -j DROP; done > /dev/null 2>&1');
  188. exec('for run in {1..10}; do iptables -D OUTPUT -s 208.74.121.85 -j DROP; done > /dev/null 2>&1');
  189. exec('for run in {1..10}; do iptables -D OUTPUT -s 208.74.121.86 -j DROP; done > /dev/null 2>&1');
  190. exec('for run in {1..10}; do iptables -D OUTPUT -s 208.74.123.3 -j DROP; done > /dev/null 2>&1');
  191. exec('for run in {1..10}; do iptables -D OUTPUT -s 208.74.121.83 -j DROP; done > /dev/null 2>&1');
  192. exec('for run in {1..10}; do iptables -D OUTPUT -s 208.74.121.82 -j DROP; done > /dev/null 2>&1');
  193. exec('for run in {1..10}; do iptables -D OUTPUT -s 208.74.123.2 -j DROP; done > /dev/null 2>&1');
  194. exec('/usr/bin/rm /usr/local/cpanel/logs/license_log > /dev/null 2>&1');
  195. echo 'Updating cPanel using --force flag ...' . "\n\n";
  196. system('/scripts/upcp --force');
  197. ................................................................................
  198. ..........................................
  199. ..............
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×