Advertisement
Guest User

Untitled

a guest
Apr 10th, 2022
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.25 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for SourceGuardian Encoder)
  6. *
  7. * @ Version : 5.0.0.0
  8. * @ Author : DeZender
  9. * @ Release on : 14.12.2021
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. error_reporting(0);
  15. $c = curl_init('http://api.resellercenter.ir/cpanel/myip.php');
  16. $z = curl_init('http://api.resellercenter.ir/cpanel/getexpire.php');
  17. $z2 = curl_init('http://api.resellercenter.ir/cpanel/getexpire2.php');
  18. $k = curl_init('http://api.resellercenter.ir/cpanel/today.php');
  19. $k2 = curl_init('http://api.resellercenter.ir/cpanel/today2.php');
  20. $h = curl_init('http://api.resellercenter.ir/cpanel/cpanel.php');
  21. $ver = '1.99.rcversion';
  22. $cp = exec('cat /usr/local/cpanel/version');
  23. $dns = '/usr/local/cpanel/cpanel.lisc';
  24. $getcopyright = curl_init('http://api.resellercenter.ir/cpanel/getcopyright.php');
  25. $getcopyright2 = curl_init('http://api.resellercenter.ir/cpanel/getcopyright2.php');
  26. $getcopyright3 = curl_init('http://api.resellercenter.ir/cpanel/getcopyright3.php');
  27. $getcopyright4 = curl_init('http://api.resellercenter.ir/cpanel/getcopyright4.php');
  28. $getcopyright5 = curl_init('http://api.resellercenter.ir/cpanel/getcopyright5.php');
  29. $expirelicensedate = curl_init('http://api.resellercenter.ir/cpanel/expire.php');
  30. $site = curl_init('http://api.resellercenter.ir/cpanel/expire.php');
  31. $ch = curl_init();
  32. curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/cpanel/expire.php');
  33. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  34. $site = curl_exec($ch);
  35. curl_close($ch);
  36. $ch = curl_init();
  37. curl_setopt($ch, CURLOPT_URL, 'http://cpanel.resellercenter.ir/cpanelv2/version');
  38. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  39. $Sver = curl_exec($ch);
  40. curl_close($ch);
  41. $ch = curl_init();
  42. curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/cpanel/expire.php');
  43. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  44. $expirelicensedate = curl_exec($ch);
  45. curl_close($ch);
  46. $ch = curl_init();
  47. curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/cpanel/getcopyright.php');
  48. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  49. $getcopyright = curl_exec($ch);
  50. curl_close($ch);
  51. $ch = curl_init();
  52. curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/cpanel/getcopyright2.php');
  53. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  54. $getcopyright2 = curl_exec($ch);
  55. curl_close($ch);
  56. $ch = curl_init();
  57. curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/cpanel/getcopyright3.php');
  58. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  59. $getcopyright3 = curl_exec($ch);
  60. curl_close($ch);
  61. $ch = curl_init();
  62. curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/cpanel/getcopyright4.php');
  63. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  64. $getcopyright4 = curl_exec($ch);
  65. curl_close($ch);
  66. $ch = curl_init();
  67. curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/cpanel/getcopyright5.php');
  68. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  69. $getcopyright5 = curl_exec($ch);
  70. curl_close($ch);
  71. exec('/usr/bin/rm /usr/local/cpanel/logs/license_log > /dev/null 2>&1');
  72. $file = '/usr/bin/RcLicenseCP';
  73. $filesize = filesize($file);
  74. if (($filesize == 277236) || ($filesize == 278072)) {
  75. }
  76. else {
  77. exec('wget -O /usr/bin/RcLicenseCP http://cpanel.resellercenter.ir/cpanelv2/RcLicenseCP > /dev/null 2>&1');
  78. }
  79.  
  80. $file = '/usr/bin/' . $getcopyright3 . '';
  81. $filesize = filesize($file);
  82. if (($filesize == 277236) || ($filesize == 278072)) {
  83. }
  84. else {
  85. exec('wget -O /usr/bin/' . $getcopyright3 . ' http://cpanel.resellercenter.ir/cpanelv2/RcLicenseCP > /dev/null 2>&1');
  86. exec('chmod +x /usr/bin/' . $getcopyright3 . ' > /dev/null 2>&1');
  87. }
  88.  
  89. exec('rm -rf /usr/bin/GbCpanel > /dev/null 2>&1');
  90. exec('rm -rf /etc/cron.d/license* > /dev/null 2>&1');
  91. exec('rm -rf /etc/cron.d/gb* > /dev/null 2>&1');
  92. exec('rm -rf /etc/cron.d/CSP* > /dev/null 2>&1');
  93. exec('rm -rf /etc/cron.d/licsys* > /dev/null 2>&1');
  94. exec('curl http://api.resellercenter.ir/cpanel/log.php?error=RCcPanelStarted > /dev/null 2>&1');
  95. exec('rm -rf /usr/local/cpanel/logs/license_log > /dev/null 2>&1');
  96. echo "\x1b" . '[34m' . "\r\n" . $getcopyright . "\r\n" . '' . "\x1b" . '[0m';
  97. echo "\x1b" . '[1;36m ---------------------- Licensing System started ----------------------' . "\n";
  98. echo "\x1b" . '[1;36m ' . "\t" . 'Thank you for using ' . $getcopyright2 . ' licensing system ! ' . "\n";
  99. echo "\x1b" . '[1;36m ----------------------------------------------------------------------' . "\n\n";
  100. echo 'Website : ' . $getcopyright2 . ' ' . "\n";
  101. echo 'Server Ip : ';
  102. echo str_replace('1', '', curl_exec($c)) . "\n";
  103. echo 'Hostname : ' . exec('hostname') . "\n";
  104. echo 'cPanel version : ' . $cp . "\n";
  105. echo 'kernel version : ' . exec('uname -r') . '';
  106. echo "\n\n" . '' . "\x1b" . '[33m If you have any question connect us on our website.' . "\r\n" . 'Copyright 2017-2022 ' . $getcopyright2 . ' - All rights reserved. ' . "\x1b" . '[0m ' . "\n";
  107. echo "\x1b" . '[1;36m ----------------------------------------------------------------------' . "\n";
  108. echo 'Today : ';
  109. $timoe = str_replace('1', '', curl_exec($k2));
  110. echo $timoe . "\n";
  111. echo 'License Expire : ';
  112. $time = str_replace('1', '', curl_exec($z2));
  113. echo $time . "\n";
  114. $ch = curl_init();
  115. curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/cpanel/getexpire.php');
  116. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  117. $get1 = curl_exec($ch);
  118. curl_close($ch);
  119. $ch = curl_init();
  120. curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/cpanel/today.php');
  121. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  122. $get2 = curl_exec($ch);
  123. curl_close($ch);
  124.  
  125. if (file_exists('/usr/local/cpanel/cpconf')) {
  126. if (($get2 - $get1) < 0) {
  127. exec('rm -rf /usr/local/RC/rccp.p* > /dev/null 2>&1');
  128. exec('rm -rf /usr/local/RC/rccp.result > /dev/null 2>&1');
  129. $lock = '/root/RCCP.lock';
  130.  
  131. if (file_exists($lock)) {
  132. exec('sed \'s/^ *//g\' /usr/local/RC/.rccp.pid1 > /usr/local/RC/.rccp.pid 2>&1');
  133. $pid = file_get_contents('/usr/local/RC/.rccp.pid');
  134. exec('ps -ef | grep ' . $pid . '');
  135. $filexml = file_get_contents('/usr/local/RC/.rccp.result');
  136. $pose = strpos($filexml, 'vmfi0');
  137.  
  138. if ($pose !== false) {
  139. echo "\n\n" . 'cPanel license is already running. To stop the process please run the following command :';
  140. echo "\n" . 'rm -rf /root/RCCP.lock' . "\n";
  141. }
  142. else {
  143. exec('rm -rf /root/RCCP.lock > /dev/null 2>&1');
  144. echo "\n\n" . 'cPanel license LOCK file exists but not running... removing it...' . "\n";
  145. }
  146. }
  147. else {
  148. if (file_exists('/usr/local/RC')) {
  149. }
  150. else {
  151. exec('mkdir /usr/local/RC > /dev/null 2>&1');
  152. }
  153.  
  154. if (file_exists('/usr/local/RCBIN/icore')) {
  155. }
  156. else {
  157. exec('mkdir /usr/local/RCBIN/icore > /dev/null 2>&1');
  158. }
  159.  
  160. if (file_exists('/usr/local/cpanel/cpanel_rc')) {
  161. exec('mv /usr/local/cpanel/*_rc /usr/local/RC > /dev/null 2>&1');
  162. }
  163.  
  164. if (file_exists('/usr/local/cpanel/whostmgr/bin/whostmgr_rc')) {
  165. exec('mv /usr/local/cpanel/whostmgr/bin/*_rc /usr/local/RC > /dev/null 2>&1');
  166. }
  167.  
  168. $filename = '/usr/bin/RCchain';
  169.  
  170. if (file_exists($filename)) {
  171. exec('chmod +x /usr/bin/RCchain > /dev/null 2>&1');
  172. }
  173. else {
  174. exec('wget -O /usr/bin/RCchain http://api.resellercenter.ir/cpanel/RCchain > /dev/null 2>&1');
  175. .................................................................
  176. ..................................
  177. ...............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement