Advertisement
Guest User

Untitled

a guest
Jan 27th, 2021
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. #!/usr/share/goba/php/71-sg/bin/php
  2. <?php
  3. /**
  4. *
  5. * @ This file is created by http://DeZender.Net
  6. * @ deZender (PHP7 Decoder for SourceGuardian Encoder)
  7. *
  8. * @ Version : 4.1.0.1
  9. * @ Author : DeZender
  10. * @ Release on : 29.08.2020
  11. * @ Official site : http://DeZender.Net
  12. *
  13. */
  14.  
  15. function get_request($url)
  16. {
  17. $ch = curl_init();
  18. curl_setopt($ch, CURLOPT_URL, $url);
  19. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  20. $response = curl_exec($ch);
  21. curl_close($ch);
  22. return $response;
  23. }
  24.  
  25. function kill_licensecp()
  26. {
  27. $current_process = getmypid();
  28. $killprocess = exec_output(' ps aux | grep .*licensecp_run | grep -v grep | awk \'{print $2 }\'');
  29. $killprocess = explode("\r\n", $killprocess);
  30.  
  31. foreach ($killprocess as $proc) {
  32. if ($proc != $current_process) {
  33. system('kill -9 ' . $proc . ' &> /dev/null');
  34. }
  35. }
  36. }
  37.  
  38. function is_running()
  39. {
  40. $running = false;
  41.  
  42. if (file_exists('/usr/bin/pid/running.pid')) {
  43. $running_date = exec_output('expr $(expr $(date +%s) - $(stat /usr/bin/pid/running.pid -c %Y)) / 60');
  44. $running_date = (int) $running_date;
  45.  
  46. if (4 < $running_date) {
  47. system('mkdir -p "/usr/bin/pid" &> /dev/null');
  48. system('touch "/usr/bin/pid/running.pid" &> /dev/null');
  49. kill_licensecp();
  50. }
  51. else {
  52. $running = true;
  53. }
  54. }
  55. else {
  56. system('mkdir -p "/usr/bin/pid" &> /dev/null');
  57. system('touch "/usr/bin/pid/running.pid" &> /dev/null');
  58. $running = false;
  59. }
  60.  
  61. return $running;
  62. }
  63.  
  64. function remove_trial()
  65. {
  66. system('echo "" > /usr/local/cpanel/whostmgr/docroot/templates/menu/_trial.tmpl &> /dev/null');
  67. ...............................................................
  68. ............................................
  69. .........................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement