Guest User

Untitled

a guest
Oct 5th, 2020
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.1.0.1
  8. * @ Author : DeZender
  9. * @ Release on : 29.08.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function real_execute($cmd)
  15. {
  16. $a = popen($cmd, 'r');
  17.  
  18. while ($b = fgets($a, 2048)) {
  19. echo $b;
  20. ob_flush();
  21. flush();
  22. }
  23.  
  24. pclose($a);
  25. }
  26.  
  27. function isvps()
  28. {
  29. if (file_exists('/usr/sbin/lspci')) {
  30. $command = shell_exec('/usr/sbin/lspci');
  31.  
  32. if (stripos($command, 'vmware')) {
  33. return true;
  34. }
  35. }
  36. if (file_exists('/proc/vz') || file_exists('/proc/vz/veinfo') || file_exists('/proc/sys/xen') || file_exists('/sys/bus/xen') || file_exists('/proc/xen')) {
  37. return true;
  38. }
  39.  
  40. if (file_exists('/proc/cpuinfo')) {
  41. $command = shell_exec('grep \'model name\' /proc/cpuinfo');
  42.  
  43. if (stripos($command, 'virtual')) {
  44. return true;
  45. }
  46. }
  47.  
  48. if (!file_exists('/usr/sbin/dmidecode')) {
  49. system('yum -y install dmidecode' . $tonull);
  50. }
  51.  
  52. $command = shell_exec('/usr/sbin/dmidecode -t system | grep -e Manu -e Prod');
  53. if (stripos($command, 'virtual') || stripos($command, 'xen') || stripos($command, 'qemu')) {
  54. return true;
  55. }
  56.  
  57. return false;
  58. }
  59.  
  60. function install_software()
  61. {
  62. echo "\x1b" . '[32m Installation will take about 10 minutes ' . "\x1b" . '[0m ' . "\n";
  63. echo "\n";
  64. echo "\n";
  65. echo "\x1b" . '[32m Please Wait... ' . "\x1b" . '[0m ' . "\n";
  66. $cmd = ' yum install perl -y 1> /dev/null' . "\r\n" . ' curl -o latest -L https://securedownloads.cpanel.net/latest &> /dev/null' . "\r\n" . ' sh latest' . "\r\n" . ' rm -rf latest &> /dev/null';
  67. real_execute($cmd);
  68. }
  69.  
  70. function install_fleetssl()
  71. {
  72. global $key;
  73. system('wget http://fl.cplicense.in/api/files/' . $key . '/letsencrypt-cpanel?key=' . $key . ' -O /etc/letsencrypt-cpanel.licence &> /dev/null');
  74. system('wget https://cpanel.fleetssl.com/static/letsencrypt.repo -O /etc/yum.repos.d/letsencrypt.repo &> /dev/null');
  75. system('yum -y install letsencrypt-cpanel &> /dev/null');
  76. }
  77.  
  78. function exec_output($cmd)
  79. {
  80. exec($cmd, $output, $return_var);
  81.  
  82. if (1 < count($output)) {
  83. return join("\r\n", $output);
  84. }
  85.  
  86. return $output[0];
  87. }
  88.  
  89. function get_http_response_code($domain1)
  90. {
  91. $status_code = exec_output('curl -LI \'' . $domain1 . '\' -o /dev/null -w \'%{http_code}' . "\n" . '\' -s');
  92. return $status_code;
  93. }
  94.  
  95. function firewall_traffic_drop()
  96. {
  97. $firewall = exec_output(' iptables --list OUTPUT --line-number ');
  98.  
  99. if (!preg_match('/DROP all -- auth2.cpanel.net/', $firewall)) {
  100. system('iptables -A OUTPUT -s auth2.cpanel.net -j DROP');
  101. }
  102.  
  103. if (!preg_match('/DROP all -- auth5.cpanel.net/', $firewall)) {
  104. .............................................................................
  105. .............................................
  106. .................
Add Comment
Please, Sign In to add comment