-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathyoukupartial.php
62 lines (46 loc) · 1.33 KB
/
youkupartial.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?
function getNumber1($str)
{
if (strlen($str) >= 2) $pos=(238 ^ 228) - 1;
else $pos=192 >> 2 * 3;
$s = substr(substr(substr("kekokola".$str,$pos,1),(7 & 0) & 107,1),((204 ^ 119) >> 8) >> 10 - 3,1);
return $s;
}
function method_2() // og
{
$_loc2_ = getNumber1("k");
$_loc3_ = getNumber1("ggnotice");
return $_loc2_.$_loc3_;
}
function method_3($n)
{
$x = $i = 0;
$s = "";
$str ="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
while($i < $n)
{
$x = mt_rand(0,strlen($str));
$s.= substr($str,$x,1);
$i++;
}
return $s;
}
function getHashCash($tokenvv)
{
while(substr(sha1($tokenvv.$s, true),0,2) != "og")
{
$s = method_3(16);
}
return $s;
}
$sidtoken =ee("becaf9be",base64_decode(($json12->data->security->encrypt_string)));
$sid =explode("_",$sidtoken)[0];
$token =explode("_",$sidtoken)[1];
$tokenvv =$json10->data->token->vv;
$tokenup =$json10->data->token->up;
$hashcash = getHashCash($tokenvv."o");
$post="videoid=$v&url=$topenlace&sid=$sid&referer=null&uid=0&totalseg=&totalsec=&h=$hashcash&fullflag=0&t=$tokenvv&ikuflag=u1%5Fm1&source=video";
$call="http://stat.youku.com/player/addPlayerStaticReport";
$stat=curl_proxy($call,"","",$headers,1,$post,0,$cookie);
$cookie.=getcookie($stat,"_f");
?>