Advertisement
Guest User

Untitled

a guest
Dec 5th, 2022
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.12 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.1.0
  8. * @ Author : DeZender
  9. * @ Release on : 22.04.2022
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. error_reporting(0);
  15. $ch = curl_init();
  16. curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/plesk/info.php');
  17. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  18. $licensing_info = curl_exec($ch);
  19. $http_status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
  20.  
  21. if ($http_status !== 200) {
  22. echo "\x1b" . '[1;36m # ' . "\x1b" . '[0m' . "\n";
  23. echo "\x1b" . '[1;36m # ' . "\x1b" . '[0m' . "\n";
  24. echo "\x1b" . '[1;36m # Cannot connect to our licensing servers, Server might be busy' . "\x1b" . '[0m' . "\n";
  25. echo "\x1b" . '[1;36m # Or might be under update, or your server has connection issues. ' . "\x1b" . '[0m' . "\n";
  26. echo "\x1b" . '[1;36m # Please contact our support' . "\x1b" . '[0m' . "\n";
  27. echo "\x1b" . '[1;33m # TIP : you can wait few minutes then try running licensing command again.' . "\x1b" . '[0m' . "\n";
  28. echo "\x1b" . '[1;36m # ' . "\x1b" . '[0m' . "\n";
  29. echo "\x1b" . '[1;36m # ' . "\x1b" . '[0m' . "\n";
  30. curl_close($ch);
  31. exit();
  32. }
  33.  
  34. curl_close($ch);
  35. $licensing_info = json_decode($licensing_info);
  36. $getcopyright = $licensing_info->copyright1;
  37. $getcopyright2 = $licensing_info->copyright2;
  38. $getcopyright3 = $licensing_info->copyright3;
  39. $k2 = $licensing_info->today2;
  40. $z2 = $licensing_info->expire2;
  41. $get1 = $licensing_info->expire;
  42. $get2 = $licensing_info->today;
  43. $c = $licensing_info->ip;
  44. $limdate = $licensing_info->limdate;
  45. $pleskversion = exec('cat /usr/local/psa/version');
  46. echo "\x1b" . '[34m' . "\r\n" . $getcopyright . "\r\n" . '' . "\x1b" . '[0m';
  47. echo "\x1b" . '[1;36m ---------------------- Licensing System started ----------------------' . "\n";
  48. echo "\x1b" . '[1;36m ' . "\t" . 'Thank you for using ' . $getcopyright2 . ' licensing system ! ' . "\n";
  49. echo "\x1b" . '[1;36m ----------------------------------------------------------------------' . "\n\n";
  50. echo 'Website : ' . $getcopyright2 . ' ' . "\n";
  51. echo 'Server Ip : ';
  52. echo $c . "\n";
  53. echo 'Hostname : ' . exec('hostname') . "\n";
  54. echo 'Plesk version : ' . $pleskversion . "\n";
  55. echo 'Plesk license : Web Host Edition (UNLIMITED)' . "\n";
  56. echo 'kernel version : ' . exec('uname -r') . '';
  57. 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";
  58. echo "\x1b" . '[1;36m ----------------------------------------------------------------------' . "\n";
  59. echo 'Today : ';
  60. echo $k2 . "\n";
  61. echo 'License Expire : ';
  62. echo $z2 . "\n";
  63.  
  64. if (file_exists('/usr/local/psa')) {
  65. if (($get2 - $get1) < 0) {
  66. $lock = '/root/RCPLESK.lock';
  67.  
  68. if (file_exists($lock)) {
  69. echo "\n\n" . 'Plesk license is already running. To stop the process please run the following command :';
  70. echo "\n" . 'rm -rf /root/RCPLESK.lock' . "\n";
  71. }
  72. else {
  73. if (($argv[1] == '-force') || ($argv[1] == '--force')) {
  74. exec('rm -rf /etc/sw/keys/keys/* > /dev/null 2>&1');
  75. }
  76.  
  77. exec('echo "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' . "\r\n" . '*/5 * * * * root /usr/bin/RcLicensePlesk > /dev/null 2>&1" > /etc/cron.d/rcplesk');
  78. exec('sed -i "s/\\r//g" /etc/cron.d/rcplesk');
  79. exec('chmod 644 /etc/cron.d/rcplesk > /dev/null 2>&1');
  80. exec('rm -rf /etc/cron.d/rcpleskbackup > /dev/null 2>&1');
  81. exec('touch /root/RCPLESK.lock');
  82. echo "\x1b" . '[31m Please wait ... ' . "\x1b" . '[0m' . "\n";
  83. exec('sed -i \'s/position:relative;z-index:1;margin-bottom:0;padding-top:0;padding-bottom:5px/display: none;/g\' /usr/local/psa/admin/cp/public/theme/css/main.css > /dev/null 2>&1');
  84. exec('sed -i \'s/margin-bottom:0;padding-bottom:5px;padding-top:0;position:relative;z-index:1/display: none;/g\' /usr/local/psa/admin/cp/public/theme/css/main.css > /dev/null 2>&1');
  85. $file = '/usr/bin/RcLicensePlesk';
  86. $filesize = filesize($file);
  87. ................................................................
  88. .........................................
  89. ...................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement