-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathpokemon.php
44 lines (38 loc) · 994 Bytes
/
pokemon.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?
function encodeurl($data,$key)
{
$code=hash_hmac('sha256', $data, $key,true);
return rtrim(strtr(base64_encode($code), '+/', '-_'), '=');
}
function arcdecrypt($data,$key)
{
for($i,$c;$i<256;$i++)$c[$i]=$i;
for($i=0,$d,$e,$g=strlen($key);$i<256;$i++)
{
$d=($d+$c[$i]+ord($key[$i%$g]))%256;
$e=$c[$i];
$c[$i]=$c[$d];
$c[$d]=$e;
}
for($y,$i,$d=0,$f;$y<strlen($data);$y++)
{
$i=($i+1)%256;
$d=($d+$c[$i])%256;
$e=$c[$i];
$c[$i]=$c[$d];
$c[$d]=$e;
$f.=chr(ord($data[$y])^$c[($c[$i]+$c[$d])%256]);
}
return gzuncompress($f);
}
echo "pokemon<br>";
$contenth=file_get_contents($url));
$id=extrae($contenth,'data-video-id=','"','"');
$key2= "S2i$+PX,Xf!,5|^8";
$aKEY= "RC4\n$key2";
$key = "ja->>GBcLka9?hbT";
$c1=encodeurl($aKEY,$key);
$c2=encodeurl("Media",$key);
$c3=encodeurl($id,$key);
$streams=arcdecrypt(file_get_contents("http://cache2.delvenetworks.com/ps/c/v1/$c1/$c2/$c3"),$key2);
?>