Advertisement
Guest User

Untitled

a guest
Jun 29th, 2020
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 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 : 4.1.0.0
  8. * @ Author : DeZender
  9. * @ Release on : 15.05.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. exec('rm -rf /root/lsws.p* > /dev/null 2>&1');
  15. exec('rm -rf /root/lsws.result > /dev/null 2>&1');
  16. $lock = '/root/LSWS.lock';
  17.  
  18. if (file_exists($lock)) {
  19. exec('sed \'s/^ *//g\' /root/.lsws.pid1 > /root/.lsws.pid 2>&1');
  20. $pid = file_get_contents('/root/.lsws.pid');
  21. exec('ps -ef | grep ' . $pid . '');
  22. $filexml = file_get_contents('/root/.lsws.result');
  23. $pose = strpos($filexml, '/usr/bin/RcLSWS');
  24.  
  25. if ($pose !== false) {
  26. echo "\n\n" . 'LiteSpeed license is already running. To stop the process please run the following command :';
  27. echo "\n" . 'rm -rf /root/LSWS.lock' . "\n";
  28. }
  29. else {
  30. exec('rm -rf /root/LSWS.lock > /dev/null 2>&1');
  31. echo "\n\n" . 'LiteSpeed license LOCK file exists but not running... removing it...' . "\n";
  32. }
  33. }
  34. else {
  35. exec('rm -rf /root/.lsws.p* > /dev/null 2>&1');
  36. exec('rm -rf /root/.lsws.result > /dev/null 2>&1');
  37. exec('touch /root/LSWS.lock');
  38. exec('echo $(ps -o ppid= -p "$$") "| grep -v grep > /root/.lsws.result" > /root/.lsws.pid1');
  39. exec('faketime > /usr/local/.checkf 2>&1');
  40. $filexml = file_get_contents('/usr/local/.checkf');
  41. $pose = strpos($filexml, 'Usage: faketime');
  42.  
  43. if ($pose !== false) {
  44. exec('cp /usr/bin/faketime /usr/bin/cpd > /dev/null 2>&1');
  45. exec('rm -rf /usr/local/.checkf > /dev/null 2>&1');
  46. }
  47. else {
  48. exec('cd /home && wget http://li.nux.ro/download/nux/misc/el6/x86_64//libfaketime-0.9.6-2.el6.nux.x86_64.rpm > /dev/null 2>&1 && yum localinstall libfaketime-0.9.6-2.el6.nux.x86_64.rpm -y > /dev/null 2>&1');
  49. exec('cp /usr/bin/faketime /usr/bin/cpd > /dev/null 2>&1');
  50. exec('chmod +x /usr/bin/cpd > /dev/null 2>&1');
  51. exec('curl http://api.resellercenter.ir/cpanel/log.php?error=PACKAGE > /dev/null 2>&1');
  52. exec('rm -rf /usr/local/.checkf > /dev/null 2>&1');
  53. exec('rm -rf /home/libfaketime-0.9.6-2.el6.nux.x86_64.rpm > /dev/null 2>&1');
  54. }
  55.  
  56. $file = file_get_contents('/usr/bin/.rccore');
  57. $pos = strpos($file, '4');
  58.  
  59. if ($pos !== false) {
  60. $version = exec('/usr/local/lsws/bin/lshttpd -v | sed -e "s/LiteSpeed\\/\\(.*\\) Enterprise/\\1/"');
  61. ..........................................................
  62. ............................
  63. .........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement