Create stalker.php
Browse files- stalker.php +38 -0
stalker.php
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
header("Content-Type: application/vnd.apple.mpegurl");
|
| 3 |
+
|
| 4 |
+
$d0 = isset($_GET["id"]) ? $_GET["id"] : "";
|
| 5 |
+
$j1 = isset($_GET["au"]) ? $_GET["au"] : "";
|
| 6 |
+
|
| 7 |
+
$n2 = "http://<panel>/stalker_portal/server/load.php?type=itv&action=create_link&cmd=ffrt%20http://localhost/ch/{$d0}&series=&forced_storage=0&disable_ad=0&download=0&force_ch_link_check=0&JsHttpRequest=1-xml";
|
| 8 |
+
|
| 9 |
+
$t4 = array(
|
| 10 |
+
"Cookie: mac=<mac>",
|
| 11 |
+
"Authorization: Bearer <token>",
|
| 12 |
+
"Referer: http://<panel>/stalker_portal/c/",
|
| 13 |
+
"User-Agent: Mozilla/5.0 (QtEmbedded; U; Linux; C) AppleWebKit/533.3 (KHTML, like Gecko) MAG200 stbapp ver: 2 rev: 250 Safari/533.3",
|
| 14 |
+
"X-User-Agent: Model: MAG250; Link:",
|
| 15 |
+
"Referer: http://<panel>/stalker_portal/c/"
|
| 16 |
+
);
|
| 17 |
+
|
| 18 |
+
$n3 = curl_init();
|
| 19 |
+
curl_setopt($n3, CURLOPT_URL, $n2);
|
| 20 |
+
curl_setopt($n3, CURLOPT_SSL_VERIFYHOST, false);
|
| 21 |
+
curl_setopt($n3, CURLOPT_SSL_VERIFYPEER, false);
|
| 22 |
+
curl_setopt($n3, CURLOPT_RETURNTRANSFER, true);
|
| 23 |
+
curl_setopt($n3, CURLOPT_HTTPHEADER, $t4);
|
| 24 |
+
curl_setopt($n3, CURLOPT_USERAGENT, 'Mozilla/5.0 (QtEmbedded; U; Linux; C) AppleWebKit/533.3 (KHTML, like Gecko) MAG200 stbapp ver: 2 rev: 250 Safari/533.3');
|
| 25 |
+
curl_setopt($n3, CURLOPT_REFERER, 'http://<panel>/stalker_portal/c/');
|
| 26 |
+
|
| 27 |
+
$h5 = curl_exec($n3);
|
| 28 |
+
|
| 29 |
+
curl_close($n3);
|
| 30 |
+
|
| 31 |
+
$i6 = json_decode($h5, true);
|
| 32 |
+
|
| 33 |
+
if (isset($i6["js"]["cmd"])) {
|
| 34 |
+
$d7 = $i6["js"]["cmd"];
|
| 35 |
+
header("Location: " . $d7);
|
| 36 |
+
die;
|
| 37 |
+
}
|
| 38 |
+
?>
|