芒果TV视频2019.3.23
本帖最后由 huxinyou6688 于 2019-8-3 13:14 编辑失效
TK2算法
<?php
$data = array(
"did"=> 'e0f53854-e2cc-46e4-9853-8c0c4a3bda00',
"ver"=> "0.3.0001",
"pno"=> 1000,
"clit" => time()
//"clit" => "1528181207"
);
function charAt($str, $index = 0){
return substr($str, $index, 1);
}
function getTK2($param1){
$_loc1_ = 0;
$_loc2_ = 0;
foreach( $param1 as $_loc3_ => $_loc4_ ){
$_loc5_[] = $_loc3_ . "=" . $_loc4_;
}
$_loc6_ = join("|",$_loc5_);
$_loc7_ = base64_encode($_loc6_);
$_loc8_ = str_replace(array("+","/","="),array("_","~","-"),$_loc7_);
$_loc11 = "";
foreach( str_split($_loc8_) as $_loc9_ => $_loc10_ ){
$_loc11 .= charAt($_loc8_,strlen($_loc8_)-$_loc9_-1);
}
return $_loc11;
}
print_r(getTK2($data));
?>
关于报错:
https://www.52pojie.cn/forum.php ... 643214&pid=17228511
====================================================
<?php
/*
失效
*/
error_reporting(0);
header('Content-Type: application/json;charset=UTF-8');
extract($_GET);
$url_ = 'url_';$json_ = 'json_';$sk_ = 'sk_';$vb_ = 'vb_';$fmt_ = '&fmt=4';"${$url_()}";
function sk_($url){
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 30);
curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B137 Safari/601.1');
curl_setopt($curl, CURLOPT_HTTPHEADER, array('X-FORWARDED-FOR:'.$_SERVER["REMOTE_ADDR"], 'CLIENT-IP:'.$_SERVER["REMOTE_ADDR"]));
curl_setopt($curl, CURLOPT_REFERER, '');
$Appfu_ = curl_exec($curl);
curl_close($curl);
$vb_ = &$GLOBALS['vb_'];
return "${$vb_($Appfu_)}";
}
function url_(){
$url = &$GLOBALS['url'];
$url ? $url : exit('URL缺失');
preg_match('|/(+)/(+)|i', $url, $did);
$api = 'http://mdata.api.mgtv.com/remaster/uc/getSource?t='.time().'&abroad=0&partId='.$did.'&clipId='.$did.'';
$json_ = &$GLOBALS['json_'];
return "${$json_($api)}";
}
function vb_($zfc){
$fmt_ = &$GLOBALS['fmt_'];
$type_ = &$GLOBALS['type'];
$hxy = 'http://disp.titan.mgtv.com';
$jk = json_decode($zfc)->data->stream;
if ($type_=='m3u8'){
$Uappfu = $hxy.$jk->m3u8Url;
}else{
$Uappfu = $hxy.$jk->mp4Url;
}
$appfu = $Uappfu.$fmt_;
header('location:'.$appfu);
exit();
}
function json_($api_){
$sk_ = &$GLOBALS['sk_'];
return "${$sk_($api_)}";
}
?>
1.文中这里 :
获取pm2参数值。
https://web.da.mgtv.com/pc/player【POST方式】
没看懂,需要向这个url 提交哪些参数呢?
2.我在抓包过程中没有发现这个POST url 并且抓包显示这里的pm2是拼接上一步返回的pm2值,但是我尝试在PHP中运行却提示:
{"code":30003,"hint":1,"msg":"加密串校验参数错误","oper":1,"seqid":"d9faf856d0ef4f82b00b39b036d5655e"}
蛋疼。 新手学习52破解 发表于 2018-8-9 18:01
老哥,还是不行啊。今天研究了一天。请求https://pstream.api.mgtv.com/player/getSource的时候就会出现【 ...
去芒果tv官方抓包,对照帖子 看不懂啊怎么没有讲解呢? 好用吗?谢谢! 楼主直接发TV版的app就好了:loveliness: 谢谢分享呵呵 芒果的节目我就喜欢我想陪你唱 别的都不爱看 但是不知道这个节目还有没有了
请勿使用此功能复制代码,会报错! 先收藏再说 你这 写的解析 怎么去 区分 标清 高清 超清 蓝光 呢? 你这就一个 默认的 标清 那画质怎么看呢? 2018.7.26,更新芒果TV视频,免费看会员视频方法,自己抓包组合播放地址,播放地址组合方法看主题内容里的"例",
大家也可以自己写个小程序去自动获取。