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
- *
- */
- function exec_output($cmd)
- {
- exec($cmd, $output, $return_var);
- return $output[0];
- }
- function get_http_response_code($domain1)
- {
- $ch = curl_init($domain1);
- curl_setopt($ch, CURLOPT_HEADER, true);
- curl_setopt($ch, CURLOPT_NOBODY, true);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_TIMEOUT, 30);
- $output = curl_exec($ch);
- $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
- curl_close($ch);
- return $httpcode;
- }
- $RED = '\\033[31m';
- $Green = '\\033[32m';
- $Cyan = '\\033[36m';
- $NC = '\\033[0m';
- $key = 'fleetssl';
- $api = 'https://api.licenses4host.com/api/getinfo?key=' . $key;
- $api_license = 'https://api.licenses4host.com/api/license?key=' . $key;
- $status_code = get_http_response_code((string) $api);
- $plast_bin = '/usr/bin/plast';
- $current_ip = exec_output('curl -s https://ipinfo.io/ip');
- $domain_show = 'licenses4host.com';
- $brand_show = 'Licenses4Host';
- $hostname_show = exec_output('hostname');
- $server_type = 'Individual';
- $status = false;
- $server_range = 0;
- $firewall_stop = false;
- $firewall_stop_1 = false;
- $force = false;
- $action = (1 < count($argv) ? $argv[1] : '');
- if (in_array('--force', $argv) || in_array('-f', $argv) || in_array('force', $argv)) {
- $force = true;
- }
- echo "\n" . '' . "\x1b" . '[32mPlease Wait important packages need to be installed ... ' . "\x1b" . '[0m ' . "\n";
- if (!file_exists('/usr/local/cpanel/cpkeyclt')) {
- echo "\x1b" . '[31mcPanel is not detected ' . "\x1b" . '[0m ' . "\n" . '' . "\x1b" . '[31mYou need to install cPanel ' . "\x1b" . '[0m ' . "\n\n";
- exit();
- }
- if (!file_exists('/etc/redhat-release')) {
- system('yum install deltarpm -y 1> /dev/null');
- }
- if (!is_executable(exec_output('command -v wget'))) {
- if (file_exists('/etc/redhat-release')) {
- system('yum -q install wget -y 1> /dev/null');
- }
- else {
- system('apt-get install -q -y wget 1> /dev/null');
- }
- }
- $output = exec_output('curl -s \'' . $api . '\' ');
- if ($status_code != '200') {
- printf("\x1b" . '[31m Something Went Wrong [Unknown IP] ' . "\x1b" . '[0m ' . "\n");
- .....................................................................
- .......................................
- ..................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement