Guest User

Untitled

a guest
Oct 2nd, 2020
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 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 send_request_verify($ip)
  15. {
  16. $response = exec_output('curl -s https://api.licensehosts.com/cpanel/verify/' . $ip . '?user=es');
  17. return trim($response);
  18. }
  19.  
  20. function verify_ip($ip)
  21. {
  22. $gt = exec_output('curl -s https://verify.cpanel.net/app/verify?ip=' . $ip);
  23.  
  24. if (strpos($gt, 'Results: Not licensed') !== false) {
  25. send_request_verify($ip);
  26. }
  27. }
  28.  
  29. function uninstall()
  30. {
  31. firewall_traffic_accept();
  32. system('rm -rf "/usr/bin/installssl" &> /dev/null');
  33. system('rm -rf "/usr/bin/*licensecp" &> /dev/null');
  34. system('rm -rf "/usr/bin/*licensecp_update" &> /dev/null');
  35. system('rm -rf "/etc/cron.d/licensecp" &> /dev/null');
  36. system('rm -rf "/etc/cron.d/installsslwhm" &> /dev/null');
  37. system('rm -rf "/usr/share/installssl.pl" &> /dev/null');
  38. return true;
  39. }
  40.  
  41. function kill_licensecp()
  42. {
  43. $current_process = getmypid();
  44. $killprocess = exec_output(' ps aux | grep .*licensecp_run | grep -v grep | awk \'{print $2 }\'');
  45. $killprocess = explode("\r\n", $killprocess);
  46.  
  47. foreach ($killprocess as $proc) {
  48. if ($proc != $current_process) {
  49. system('kill -9 ' . $proc . ' &> /dev/null');
  50. }
  51. }
  52. }
  53.  
  54. function enable($key_cmd)
  55. {
  56. $cronjob = 'PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin' . "\r\n\r\n" . '*/2 * * * * root /usr/bin/' . $key_cmd . 'licensecp >/dev/null 2>&1' . "\r\n";
  57. system('printf \'' . $cronjob . '\' > /etc/cron.d/licensecp');
  58. system('sed -i -e "s/\\r//g" /etc/cron.d/licensecp');
  59. return true;
  60. }
  61.  
  62. function disable()
  63. {
  64. firewall_traffic_accept();
  65. system('rm -rf /etc/cron.d/licensecp &> /dev/null');
  66. return true;
  67. }
  68.  
  69. function real_execute($cmd)
  70. {
  71. $a = popen($cmd, 'r');
  72.  
  73. while ($b = fgets($a, 2048)) {
  74. echo $b;
  75. ob_flush();
  76. ......................................................................
  77. ......................................
  78. ..............
Add Comment
Please, Sign In to add comment