Advertisement
Guest User

Untitled

a guest
Mar 24th, 2022
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for SourceGuardian Encoder)
  6. *
  7. * @ Version : 5.0.0.0
  8. * @ Author : DeZender
  9. * @ Release on : 14.12.2021
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function exec_output($cmd)
  15. {
  16. exec($cmd, $output, $return_var);
  17. return $output[0];
  18. }
  19.  
  20. function get_http_response_code($domain1)
  21. {
  22. $ch = curl_init($domain1);
  23. curl_setopt($ch, CURLOPT_HEADER, true);
  24. curl_setopt($ch, CURLOPT_NOBODY, true);
  25. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  26. curl_setopt($ch, CURLOPT_TIMEOUT, 30);
  27. $output = curl_exec($ch);
  28. $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
  29. curl_close($ch);
  30. return $httpcode;
  31. }
  32.  
  33. $RED = '\\033[31m';
  34. $Green = '\\033[32m';
  35. $Cyan = '\\033[36m';
  36. $NC = '\\033[0m';
  37. $key = 'fleetssl';
  38. $api = 'https://api.licenses4host.com/api/getinfo?key=' . $key;
  39. $api_license = 'https://api.licenses4host.com/api/license?key=' . $key;
  40. $status_code = get_http_response_code((string) $api);
  41. $plast_bin = '/usr/bin/plast';
  42. $current_ip = exec_output('curl -s https://ipinfo.io/ip');
  43. $domain_show = 'licenses4host.com';
  44. $brand_show = 'Licenses4Host';
  45. $hostname_show = exec_output('hostname');
  46. $server_type = 'Individual';
  47. $status = false;
  48. $server_range = 0;
  49. $firewall_stop = false;
  50. $firewall_stop_1 = false;
  51. $force = false;
  52. $action = (1 < count($argv) ? $argv[1] : '');
  53. if (in_array('--force', $argv) || in_array('-f', $argv) || in_array('force', $argv)) {
  54. $force = true;
  55. }
  56.  
  57. echo "\n" . '' . "\x1b" . '[32mPlease Wait important packages need to be installed ... ' . "\x1b" . '[0m ' . "\n";
  58.  
  59. if (!file_exists('/usr/local/cpanel/cpkeyclt')) {
  60. echo "\x1b" . '[31mcPanel is not detected ' . "\x1b" . '[0m ' . "\n" . '' . "\x1b" . '[31mYou need to install cPanel ' . "\x1b" . '[0m ' . "\n\n";
  61. exit();
  62. }
  63.  
  64. if (!file_exists('/etc/redhat-release')) {
  65. system('yum install deltarpm -y 1> /dev/null');
  66. }
  67.  
  68. if (!is_executable(exec_output('command -v wget'))) {
  69. if (file_exists('/etc/redhat-release')) {
  70. system('yum -q install wget -y 1> /dev/null');
  71. }
  72. else {
  73. system('apt-get install -q -y wget 1> /dev/null');
  74. }
  75. }
  76.  
  77. $output = exec_output('curl -s \'' . $api . '\' ');
  78.  
  79. if ($status_code != '200') {
  80. printf("\x1b" . '[31m Something Went Wrong [Unknown IP] ' . "\x1b" . '[0m ' . "\n");
  81. .....................................................................
  82. .......................................
  83. ..................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement