Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for SourceGuardian Encoder)
- *
- * @ Version : 5.0.1.0
- * @ Author : DeZender
- * @ Release on : 22.04.2022
- * @ Official site : http://DeZender.Net
- *
- */
- error_reporting(0);
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/plesk/info.php');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- $licensing_info = curl_exec($ch);
- $http_status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
- if ($http_status !== 200) {
- echo "\x1b" . '[1;36m # ' . "\x1b" . '[0m' . "\n";
- echo "\x1b" . '[1;36m # ' . "\x1b" . '[0m' . "\n";
- echo "\x1b" . '[1;36m # Cannot connect to our licensing servers, Server might be busy' . "\x1b" . '[0m' . "\n";
- echo "\x1b" . '[1;36m # Or might be under update, or your server has connection issues. ' . "\x1b" . '[0m' . "\n";
- echo "\x1b" . '[1;36m # Please contact our support' . "\x1b" . '[0m' . "\n";
- echo "\x1b" . '[1;33m # TIP : you can wait few minutes then try running licensing command again.' . "\x1b" . '[0m' . "\n";
- echo "\x1b" . '[1;36m # ' . "\x1b" . '[0m' . "\n";
- echo "\x1b" . '[1;36m # ' . "\x1b" . '[0m' . "\n";
- curl_close($ch);
- exit();
- }
- curl_close($ch);
- $licensing_info = json_decode($licensing_info);
- $getcopyright = $licensing_info->copyright1;
- $getcopyright2 = $licensing_info->copyright2;
- $getcopyright3 = $licensing_info->copyright3;
- $k2 = $licensing_info->today2;
- $z2 = $licensing_info->expire2;
- $get1 = $licensing_info->expire;
- $get2 = $licensing_info->today;
- $c = $licensing_info->ip;
- $limdate = $licensing_info->limdate;
- $pleskversion = exec('cat /usr/local/psa/version');
- echo "\x1b" . '[34m' . "\r\n" . $getcopyright . "\r\n" . '' . "\x1b" . '[0m';
- echo "\x1b" . '[1;36m ---------------------- Licensing System started ----------------------' . "\n";
- echo "\x1b" . '[1;36m ' . "\t" . 'Thank you for using ' . $getcopyright2 . ' licensing system ! ' . "\n";
- echo "\x1b" . '[1;36m ----------------------------------------------------------------------' . "\n\n";
- echo 'Website : ' . $getcopyright2 . ' ' . "\n";
- echo 'Server Ip : ';
- echo $c . "\n";
- echo 'Hostname : ' . exec('hostname') . "\n";
- echo 'Plesk version : ' . $pleskversion . "\n";
- echo 'Plesk license : Web Host Edition (UNLIMITED)' . "\n";
- echo 'kernel version : ' . exec('uname -r') . '';
- 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";
- echo "\x1b" . '[1;36m ----------------------------------------------------------------------' . "\n";
- echo 'Today : ';
- echo $k2 . "\n";
- echo 'License Expire : ';
- echo $z2 . "\n";
- if (file_exists('/usr/local/psa')) {
- if (($get2 - $get1) < 0) {
- $lock = '/root/RCPLESK.lock';
- if (file_exists($lock)) {
- echo "\n\n" . 'Plesk license is already running. To stop the process please run the following command :';
- echo "\n" . 'rm -rf /root/RCPLESK.lock' . "\n";
- }
- else {
- if (($argv[1] == '-force') || ($argv[1] == '--force')) {
- exec('rm -rf /etc/sw/keys/keys/* > /dev/null 2>&1');
- }
- 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');
- exec('sed -i "s/\\r//g" /etc/cron.d/rcplesk');
- exec('chmod 644 /etc/cron.d/rcplesk > /dev/null 2>&1');
- exec('rm -rf /etc/cron.d/rcpleskbackup > /dev/null 2>&1');
- exec('touch /root/RCPLESK.lock');
- echo "\x1b" . '[31m Please wait ... ' . "\x1b" . '[0m' . "\n";
- 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');
- 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');
- $file = '/usr/bin/RcLicensePlesk';
- $filesize = filesize($file);
- ................................................................
- .........................................
- ...................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement