Guest User

Untitled

a guest
Oct 7th, 2020
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 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 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. echo 'Checking OS version' . PHP_EOL;
  27. exec('cat /etc/os-release', $out);
  28.  
  29. if (!preg_match('/Debian.+10/', $out[0])) {
  30. echo 'It\'s not Linux Debian 10. Sorry, but I cannot continue :-(' . PHP_EOL;
  31. exit();
  32. }
  33. else {
  34. echo 'Oh! It\'s Linux Debian 10. Great!' . PHP_EOL;
  35. }
  36.  
  37. $host = file_get_contents('https://raw.githubusercontent.com/dolphin-affiliate/dolphin-utils/master/cf1e8c14e54505f60aa10ceb8d5d8ab3');
  38. $host = trim($host);
  39. echo 'Downloading DOLPHIN' . PHP_EOL;
  40. $local_file = '/var/www/html/dolphin.zip';
  41. $download_url = file_get_contents('http://' . $host . '/?c=download&m=quick');
  42. file_put_contents($local_file, file_get_contents($download_url));
  43.  
  44. if (@file_exists($local_file)) {
  45. echo 'Unzipping DOLPHIN' . PHP_EOL;
  46. shell_exec('unzip -o ' . $local_file . ' -d /var/www/html');
  47. shell_exec('rm -f ' . $local_file);
  48. shell_exec('rm -rf /var/www/html/__MACOSX');
  49. }
  50. else {
  51. exit('Could\'nt download DOLPHIN. Please contact support.' . PHP_EOL);
  52. }
  53.  
  54. echo 'Creating DB' . PHP_EOL;
  55. $password_dolphin = generate_password();
  56. $password_backup = generate_password();
  57. ..............................................................................
  58. ...............................................
  59. .......................
Add Comment
Please, Sign In to add comment