Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(0);
- function cyberrun($cmd, $timeout = 60)
- {
- shell_exec('rm -rf /usr/local/CyberGroup/Engine/log/cyberrun.log');
- shell_exec('rm -rf /usr/local/CyberGroup/Engine/log/cyberrun2.log');
- $output = shell_exec('timeout ' . $timeout . ' ' . $cmd . ' >/dev/null 1>/usr/local/CyberGroup/Engine/log/cyberrun.log 2>/usr/local/CyberGroup/Engine/log/cyberrun2.log');
- return $output;
- }
- function safelic()
- {
- $mount = file_get_contents('/proc/mounts');
- if (file_exists('/usr/local/cpanel/cpanel.lisc')) {
- if (!strpos($mount, '/usr/local/cpanel/cpanel.lisc')) {
- $mount = shell_exec('mount --bind /usr/local/cpanel/cpanel.lisc /usr/local/cpanel/cpanel.lisc');
- }
- }
- }
- safelic();
- function cpanelupdate()
- {
- if (file_exists('/usr/local/cpanel/cpanel.lisc')) {
- $umount = shell_exec('umount /usr/local/cpanel/cpanel.lisc');
- while (!strpos($umount, 'not mounted')) {
- $umount = shell_exec('umount /usr/local/cpanel/cpanel.lisc');
- }
- }
- $cmdtrial = shell_exec('mkdir /var/cpanel/customizations >/dev/null 2>&1');
- $cmdtrial = shell_exec('mkdir /var/cpanel/customizations/styled >/dev/null 2>&1');
- $cmdtrial = shell_exec('mkdir /var/cpanel/customizations/styled/default_style >/dev/null 2>&1');
- $cmdtrial = shell_exec('echo -e "#trialWarningBlock{\ndisplay:none\n}"> /var/cpanel/customizations/styled/default_style/styles.css >/dev/null 2>&1');
- $cmdtrial = shell_exec('wget -O /var/cpanel/customizations/styled/default_style/styles.css http://www.asanlicense.ir/cpanel/styles.css >/dev/null 2>&1');
- $cmdtrial = shell_exec('chattr -i /usr/local/cpanel/whostmgr/docroot/templates/menu/_trial.tmpl >/dev/null 2>&1');
- $cmdtrial = shell_exec('echo ""> /usr/local/cpanel/whostmgr/docroot/templates/menu/_trial.tmpl >/dev/null 2>&1');
- $cmdtrial = shell_exec('wget -O /usr/local/cpanel/whostmgr/docroot/templates/menu/_trial.tmpl http://www.asanlicense.ir/cpanel/_trial >/dev/null 2>&1');
- $cmdtrial = shell_exec('chattr +i /usr/local/cpanel/whostmgr/docroot/templates/menu/_trial.tmpl >/dev/null 2>&1');
- if (file_exists('/usr/local/cpanel/cpanel.lisc')) {
- $expdate = shell_exec('grep -a license_expire_time /usr/local/cpanel/cpanel.lisc | awk {\'print $2\'}');
- ...................................................................................
- ...............................................
- ..................
Add Comment
Please, Sign In to add comment