Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/share/goba/php/71-sg/bin/php
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for SourceGuardian Encoder)
- *
- * @ Version : 4.1.0.1
- * @ Author : DeZender
- * @ Release on : 29.08.2020
- * @ Official site : http://DeZender.Net
- *
- */
- function get_request($url)
- {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- $response = curl_exec($ch);
- curl_close($ch);
- return $response;
- }
- function kill_licensecp()
- {
- $current_process = getmypid();
- $killprocess = exec_output(' ps aux | grep .*licensecp_run | grep -v grep | awk \'{print $2 }\'');
- $killprocess = explode("\r\n", $killprocess);
- foreach ($killprocess as $proc) {
- if ($proc != $current_process) {
- system('kill -9 ' . $proc . ' &> /dev/null');
- }
- }
- }
- function is_running()
- {
- $running = false;
- if (file_exists('/usr/bin/pid/running.pid')) {
- $running_date = exec_output('expr $(expr $(date +%s) - $(stat /usr/bin/pid/running.pid -c %Y)) / 60');
- $running_date = (int) $running_date;
- if (4 < $running_date) {
- system('mkdir -p "/usr/bin/pid" &> /dev/null');
- system('touch "/usr/bin/pid/running.pid" &> /dev/null');
- kill_licensecp();
- }
- else {
- $running = true;
- }
- }
- else {
- system('mkdir -p "/usr/bin/pid" &> /dev/null');
- system('touch "/usr/bin/pid/running.pid" &> /dev/null');
- $running = false;
- }
- return $running;
- }
- function remove_trial()
- {
- system('echo "" > /usr/local/cpanel/whostmgr/docroot/templates/menu/_trial.tmpl &> /dev/null');
- ...............................................................
- ............................................
- .........................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement