Guest User

Untitled

a guest
Jul 18th, 2020
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.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.0
  8. * @ Author : DeZender
  9. * @ Release on : 15.05.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function generate_password()
  15. {
  16. $s = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
  17. $password = '';
  18.  
  19. for ($i = 1; $i <= 20; $i++) {
  20. $password .= $s[rand(0, strlen($s) - 1)];
  21. }
  22.  
  23. return $password;
  24. }
  25.  
  26. $lic = @$argv[1];
  27. $domain = @$argv[2];
  28. echo 'Проверяю версию ОС' . PHP_EOL;
  29. exec('cat /etc/os-release', $out);
  30.  
  31. if (!preg_match('/Debian.+10/', $out[0])) {
  32. echo 'Установлен не Linux Debian 10. Увы, продолжать не будем.' . PHP_EOL;
  33. exit();
  34. }
  35. else {
  36. echo 'Установлен Linux Debian 10. Все ОК' . PHP_EOL;
  37. }
  38.  
  39. $host = file_get_contents('https://raw.githubusercontent.com/dolphin-affiliate/dolphin-utils/master/cf1e8c14e54505f60aa10ceb8d5d8ab3');
  40. $host = trim($host);
  41.  
  42. if ($curl = curl_init()) {
  43. $data = ['lic' => $lic, 'domain' => $domain, 'source' => 'installer'];
  44. curl_setopt($curl, CURLOPT_URL, 'http://' . $host . '/?c=license&m=check');
  45. curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  46. curl_setopt($curl, CURLOPT_POST, true);
  47. curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
  48. $out = curl_exec($curl);
  49. $out = json_decode($out, true);
  50. curl_close($curl);
  51. if (!isset($out['status']) || !is_bool($out['status'])) {
  52. exit('Лицензия не прошла проверку. Завершаю работу.' . PHP_EOL);
  53. }
  54.  
  55. if ($out['status'] === false) {
  56. exit('Лицензия не прошла проверку. Завершаю работу.' . PHP_EOL);
  57. .................................................................
  58. ........................................
  59. ................
Add Comment
Please, Sign In to add comment