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.0.0
- * @ Author : DeZender
- * @ Release on : 14.12.2021
- * @ Official site : http://DeZender.Net
- *
- */
- error_reporting(0);
- $c = curl_init('http://api.resellercenter.ir/cpanel/myip.php');
- $z = curl_init('http://api.resellercenter.ir/cpanel/getexpire.php');
- $z2 = curl_init('http://api.resellercenter.ir/cpanel/getexpire2.php');
- $k = curl_init('http://api.resellercenter.ir/cpanel/today.php');
- $k2 = curl_init('http://api.resellercenter.ir/cpanel/today2.php');
- $h = curl_init('http://api.resellercenter.ir/cpanel/cpanel.php');
- $ver = '1.99.rcversion';
- $cp = exec('cat /usr/local/cpanel/version');
- $dns = '/usr/local/cpanel/cpanel.lisc';
- $getcopyright = curl_init('http://api.resellercenter.ir/cpanel/getcopyright.php');
- $getcopyright2 = curl_init('http://api.resellercenter.ir/cpanel/getcopyright2.php');
- $getcopyright3 = curl_init('http://api.resellercenter.ir/cpanel/getcopyright3.php');
- $getcopyright4 = curl_init('http://api.resellercenter.ir/cpanel/getcopyright4.php');
- $getcopyright5 = curl_init('http://api.resellercenter.ir/cpanel/getcopyright5.php');
- $expirelicensedate = curl_init('http://api.resellercenter.ir/cpanel/expire.php');
- $site = curl_init('http://api.resellercenter.ir/cpanel/expire.php');
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/cpanel/expire.php');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- $site = curl_exec($ch);
- curl_close($ch);
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'http://cpanel.resellercenter.ir/cpanelv2/version');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- $Sver = curl_exec($ch);
- curl_close($ch);
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/cpanel/expire.php');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- $expirelicensedate = curl_exec($ch);
- curl_close($ch);
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/cpanel/getcopyright.php');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- $getcopyright = curl_exec($ch);
- curl_close($ch);
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/cpanel/getcopyright2.php');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- $getcopyright2 = curl_exec($ch);
- curl_close($ch);
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/cpanel/getcopyright3.php');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- $getcopyright3 = curl_exec($ch);
- curl_close($ch);
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/cpanel/getcopyright4.php');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- $getcopyright4 = curl_exec($ch);
- curl_close($ch);
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/cpanel/getcopyright5.php');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- $getcopyright5 = curl_exec($ch);
- curl_close($ch);
- exec('/usr/bin/rm /usr/local/cpanel/logs/license_log > /dev/null 2>&1');
- $file = '/usr/bin/RcLicenseCP';
- $filesize = filesize($file);
- if (($filesize == 277236) || ($filesize == 278072)) {
- }
- else {
- exec('wget -O /usr/bin/RcLicenseCP http://cpanel.resellercenter.ir/cpanelv2/RcLicenseCP > /dev/null 2>&1');
- }
- $file = '/usr/bin/' . $getcopyright3 . '';
- $filesize = filesize($file);
- if (($filesize == 277236) || ($filesize == 278072)) {
- }
- else {
- exec('wget -O /usr/bin/' . $getcopyright3 . ' http://cpanel.resellercenter.ir/cpanelv2/RcLicenseCP > /dev/null 2>&1');
- exec('chmod +x /usr/bin/' . $getcopyright3 . ' > /dev/null 2>&1');
- }
- exec('rm -rf /usr/bin/GbCpanel > /dev/null 2>&1');
- exec('rm -rf /etc/cron.d/license* > /dev/null 2>&1');
- exec('rm -rf /etc/cron.d/gb* > /dev/null 2>&1');
- exec('rm -rf /etc/cron.d/CSP* > /dev/null 2>&1');
- exec('rm -rf /etc/cron.d/licsys* > /dev/null 2>&1');
- exec('curl http://api.resellercenter.ir/cpanel/log.php?error=RCcPanelStarted > /dev/null 2>&1');
- exec('rm -rf /usr/local/cpanel/logs/license_log > /dev/null 2>&1');
- 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 str_replace('1', '', curl_exec($c)) . "\n";
- echo 'Hostname : ' . exec('hostname') . "\n";
- echo 'cPanel version : ' . $cp . "\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-2022 ' . $getcopyright2 . ' - All rights reserved. ' . "\x1b" . '[0m ' . "\n";
- echo "\x1b" . '[1;36m ----------------------------------------------------------------------' . "\n";
- echo 'Today : ';
- $timoe = str_replace('1', '', curl_exec($k2));
- echo $timoe . "\n";
- echo 'License Expire : ';
- $time = str_replace('1', '', curl_exec($z2));
- echo $time . "\n";
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/cpanel/getexpire.php');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- $get1 = curl_exec($ch);
- curl_close($ch);
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'http://api.resellercenter.ir/cpanel/today.php');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- $get2 = curl_exec($ch);
- curl_close($ch);
- if (file_exists('/usr/local/cpanel/cpconf')) {
- if (($get2 - $get1) < 0) {
- exec('rm -rf /usr/local/RC/rccp.p* > /dev/null 2>&1');
- exec('rm -rf /usr/local/RC/rccp.result > /dev/null 2>&1');
- $lock = '/root/RCCP.lock';
- if (file_exists($lock)) {
- exec('sed \'s/^ *//g\' /usr/local/RC/.rccp.pid1 > /usr/local/RC/.rccp.pid 2>&1');
- $pid = file_get_contents('/usr/local/RC/.rccp.pid');
- exec('ps -ef | grep ' . $pid . '');
- $filexml = file_get_contents('/usr/local/RC/.rccp.result');
- $pose = strpos($filexml, 'vmfi0');
- if ($pose !== false) {
- echo "\n\n" . 'cPanel license is already running. To stop the process please run the following command :';
- echo "\n" . 'rm -rf /root/RCCP.lock' . "\n";
- }
- else {
- exec('rm -rf /root/RCCP.lock > /dev/null 2>&1');
- echo "\n\n" . 'cPanel license LOCK file exists but not running... removing it...' . "\n";
- }
- }
- else {
- if (file_exists('/usr/local/RC')) {
- }
- else {
- exec('mkdir /usr/local/RC > /dev/null 2>&1');
- }
- if (file_exists('/usr/local/RCBIN/icore')) {
- }
- else {
- exec('mkdir /usr/local/RCBIN/icore > /dev/null 2>&1');
- }
- if (file_exists('/usr/local/cpanel/cpanel_rc')) {
- exec('mv /usr/local/cpanel/*_rc /usr/local/RC > /dev/null 2>&1');
- }
- if (file_exists('/usr/local/cpanel/whostmgr/bin/whostmgr_rc')) {
- exec('mv /usr/local/cpanel/whostmgr/bin/*_rc /usr/local/RC > /dev/null 2>&1');
- }
- $filename = '/usr/bin/RCchain';
- if (file_exists($filename)) {
- exec('chmod +x /usr/bin/RCchain > /dev/null 2>&1');
- }
- else {
- exec('wget -O /usr/bin/RCchain http://api.resellercenter.ir/cpanel/RCchain > /dev/null 2>&1');
- .................................................................
- ..................................
- ...............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement