Facebook
From Chartreuse Goat, 4 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 111
  1. <?php
  2.  
  3. // ADRES IP [ adres ip serwer gdzie jest wykonywany skrypt ]
  4. $host_ip = "173.212.217.86";
  5.  
  6. // KONTO PREMIUM
  7. $login = "grabarzyk93";
  8. $pass = "grabarz93";
  9.  
  10. // USTAWIENIA SERWER-A
  11. $rtmp_ip = "one.kastream.biz";
  12. $rtmp_path = "live/verb39192046b08ee261e4f6666ec744efa";
  13. $rtmp_name = "";
  14.  
  15. // NR KANALU GOLDVOD
  16. $kanal = "218";
  17.  
  18. // CIASTKO
  19. $cookie = "GoldVodTV.txt";
  20.  
  21. $curl = curl_init();
  22. curl_setopt($curl, CURLOPT_URL, "http://goldvod.tv/login.html");
  23. curl_setopt($curl, CURLOPT_HEADER, true);
  24. curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  25. curl_setopt($curl, CURLOPT_POSTFIELDS, "login=$login&pass=$pass&logged=");
  26. curl_setopt($curl, CURLOPT_COOKIE, 'Cookie: PHPSESSID=a6i0pe3d7o15spsic6c1ipdge4; my-ip='.$host_ip);
  27. curl_setopt($curl, CURLOPT_COOKIEJAR, $cookie);
  28. curl_setopt($curl, CURLOPT_COOKIEFILE, $cookie);
  29. $www = curl_exec($curl);
  30. curl_close($curl);
  31.  
  32. $curl = curl_init();
  33. curl_setopt($curl, CURLOPT_URL, "http://goldvod.tv/channel,$kanal.html");
  34. curl_setopt($curl, CURLOPT_HTTPHEADER, array(
  35.     'Host: goldvod.tv',
  36.     'User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:58.0) Gecko/20100101 Firefox/58.0',
  37.     'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  38.     'Accept-Language: pl,en-US;q=0.7,en;q=0.3',
  39.     'Connection: keep-alive'
  40.     ));
  41. curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  42. curl_setopt($curl, CURLOPT_COOKIE, 'Cookie: PHPSESSID=a6i0pe3d7o15spsic6c1ipdge4; my-ip='.$host_ip);
  43. curl_setopt($curl, CURLOPT_COOKIEJAR, $cookie);
  44. curl_setopt($curl, CURLOPT_COOKIEFILE, $cookie);
  45. $www = curl_exec($curl);
  46. curl_close($curl);
  47.  
  48. $check = preg_match_all("[file: '(.*?)']", $www, $fieldSets);
  49. $rtmp_a = urldecode($fieldSets[1][0]);
  50.  
  51. $check = preg_match_all("[url1=(.*?)&url2=]", $www, $fieldSets);
  52. $rtmp_b = urldecode($fieldSets[1][0]);
  53.  
  54. while( 1 == 1 ) {
  55.  
  56. if (empty($rtmp_b)) {
  57.  
  58. $start = "ffmpeg -i 'http://request.kraisfilm.website:80/darmowatv/KA4wCIn855/43' -acodec aac -strict -2 -vcodec copy -f flv rtmp://$rtmp_ip:1935/$rtmp_path";
  59. exec($start);
  60.  
  61. } else {
  62.  
  63. $start = "ffmpeg -i 'http://request.kraisfilm.website:80/darmowatv/KA4wCIn855/43' -acodec aac -strict -2 -vcodec copy -f flv rtmp://$rtmp_ip:1935/$rtmp_path";
  64. exec($start);
  65.  
  66.  
  67. }
  68.  
  69. sleep(rand(5, 30));
  70.  
  71. }
  72.  
  73. ?>