tt_2008 发表于 2024-5-6 12:20:15

积分严重不够怎么办

pbnlw123 发表于 2024-5-6 13:23:34

积分66,门槛能不能降低下呀

sqsee 发表于 2024-5-6 17:59:08

可用YSP代理源码

tvbox007 发表于 2024-5-7 07:55:42

学习学习

tvzbiptv 发表于 2024-5-11 08:10:14

<?php
$id = isset($_GET['id'])?$_GET['id']:'cctv1';
$n = [
'cctv4k' => ,//cccv-4k
'cctv8k' => ,//cccv-8k
'cctv1' => ,//cccv1
'cctv2' => ,//cccv2
'cctv3' => ,//cccv3(vip)
'cctv4' => ,//cccv4
'cctv5' => ,//cccv5
'cctv5p' => ,//cccv5+
//'cctv6' => ,//cccv6(vip)
'cctv6' => ,//cccv6高清(vip)
'cctv7' => ,//cccv7
'cctv8' => ,//cccv8(vip)
'cctv9' => ,//cccv9
'cctv10' => ,//CCTV10
'cctv11' => ,//CCTV11
'cctv12' => ,//CCTV12
'cctv13' => ,//CCTV13
'cctv14' => ,//CCTV14
'cctv15' => ,//CCTV15
'cctv16' => ,//CCTV16
'cctv16-4k' => ,//CCTV16-4k(vip)
'cctv17' => ,//CCTV17
'bqkj' => ,//CCTV兵器科技(vip)
'dyjc' => ,//CCTV第一剧场(vip)
'hjjc' => ,//CCTV怀旧剧场(vip)
'fyjc' => ,//CCTV风云剧场(vip)
'fyyy' => ,//CCTV风云音乐(vip)
'fyzq' => ,//CCTV风云足球(vip)
'dszn' => ,//CCTV电视指南(vip)
'nxss' => ,//CCTV女性时尚(vip)
'whjp' => ,//CCTV央视文化精品(vip)
'sjdl' => ,//CCTV世界地理(vip)
'gefwq' => ,//CCTV高尔夫网球(vip)
'ystq' => ,//CCTV央视台球(vip)
'wsjk' => ,//CCTV卫生健康(vip)
'cgtn' => ,//CGTN
'cgtnjl' => ,//CGTN纪录
'cgtne' => ,//CGTN西语
'cgtnf' => ,//CGTN法语
'cgtna' => ,//CGTN阿语
'cgtnr' => ,//CGTN俄语
'cetv1' => ,//CETV1
'bjws' => ,//北京卫视
'dfws' => ,//东方卫视
'tjws' => ,//天津卫视
'cqws' => ,//重庆卫视
'hljws' => ,//黑龙江卫视
'lnws' => ,//辽宁卫视
'hbws' => ,//河北卫视
'sdws' => ,//山东卫视
'ahws' => ,//安徽卫视
'hnws' => ,//河南卫视
'hubws' => ,//湖北卫视
'hunws' => ,//湖南卫视
'jxws' => ,//江西卫视
'jsws' => ,//江苏卫视
'zjws' => ,//浙江卫视
'dnws' => ,//东南卫视
'gdws' => ,//广东卫视
'szws' => ,//深圳卫视
'gxws' => ,//广西卫视
'gzws' => ,//贵州卫视
'scws' => ,//四川卫视
'xjws' => ,//新疆卫视
'btws' => ,//兵团卫视
'hinws' => ,//海南卫视
];

$cnlid = $n[$id];
$livepid = $n[$id];
//$livepid = '600001859';
$guid = "lsdbop7p_".nu(11);
$salt = '0f$IVHi9Qno?G';
$platform = "5910204";
$key = hex2bin("48e5918a74ae21c972b90cce8af6c8be");
$iv = hex2bin("9a7e7d23610266b1d9fbf98581384d92");
$ts = time();
$el = "|{$cnlid}|{$ts}|mg3c3b04ba|V1.0.0|{$guid}|{$platform}|https://www.yangshipin.c|mozilla/5.0 (windows nt ||Mozilla|Netscape|Win32|";
$len = strlen($el);
$xl = 0;
for($i=0;$i<$len;$i++){
$xl = ($xl << 5) - $xl + ord($el[$i]);
$xl &= $xl & 0xFFFFFFFF;
}
$xl = ($xl > 2147483648) ? $xl - 4294967296 : $xl;
$el = '|'.$xl.$el;
$ckey = "--01".strtoupper(bin2hex(openssl_encrypt($el,"AES-128-CBC",$key,1,$iv)));
function Kc($t) {//对参数数组排序并签名
$e = "";
$r = [];
$Rc = '0f$IVHi9Qno?G';
foreach ($t as $key => $value) {
$r[] = $key;
}
sort($r);
foreach ($r as $index => $key) {
if ($index != 0) {
$e .= "&";
}
if (is_array($t[$key])) {
$t[$key] = implode(",", $t[$key]);
}
$e .= $key . "=" . rawurlencode($t[$key]);
}
$e .= $Rc;
return md5($e);
}
function nu($t = 10) {
$e = "ABCDEFGHIJKlMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
$r = strlen($e);
$n = "";
for ($i = 0; $i < $t; $i++) {
$n .= $e;
}
return $n;
}
$randomString = nu(10);
//获取当前毫秒级别时间
$currentTimeMillis = round(microtime(true) * 1000);
$request_id = "999999".$randomString.$currentTimeMillis;
function sign($param) {//对数据进行签名操作
$e = "";
$r = array_keys($param);
sort($r); // 排序属性名数组
foreach ($r as $n => $key) {
if ($n != 0) {
$e .= "&";
}
if (is_array($param[$key])) {
$t[$key] = implode(',', $param[$key]); // 如果属性值是数组,则转换为字符串
}
$e .= $key . "=" . rawurlencode($param[$key]); // 使用 rawurlencode 进行 URL 编码
}
$e .= "Q0uVOpuUpXTOUwRn"; // 在签名字符串末尾添加固定字符串
return md5($e); // 对签名字符串进行 MD5 哈希
}
$param = [
"pid"=>$livepid,
"guid"=>$guid,
"appid"=>"ysp_pc",
"rand_str"=>nu(10),
];
$singature=sign($param);
$param["signature"] = $singature;
//print_r($param); 查看请求数组
$bstrURL = "https://player-api.yangshipin.cn/v1/player/auth";//请求网址
$headers = [
"Content-Type: application/x-www-form-urlencoded;charset=UTF-8",
"Referer: https://www.yangshipin.cn/",
"Cookie: guid={$guid}; versionName=99.99.99; versionCode=999999; vplatform=109; platformVersion=Chrome; deviceModel=123; updateProtocol=1; seqId=36;request-id={$request_id}",
"Yspappid: 519748109",
];
$ch = curl_init($bstrURL);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_HTTPHEADER,$headers);
curl_setopt($ch, CURLOPT_POST,1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($param));
$data = curl_exec($ch);
curl_close($ch);
$json_data = json_decode($data);
$token = $json_data->data->token;
//echo $token;
//auth获取结束
//开始获取get_info信息
$params = [
"cnlid" => "{$cnlid}",
"livepid" => "{$livepid}",
"stream" => "2",
"guid" => $guid,
"cKey" => $ckey,
"adjust" => 1,
"sphttps" => "1",
"platform" => "5910204",
"cmd" => "2",
"encryptVer" => "8.1",
"dtype" => "1",
"devid" => "devid",
"otype" => "ojson",
"appVer" => "V1.0.0",
"app_version" => "V1.0.0",
"rand_str" => nu(10),
"channel" => "ysp_tx",
"defn" => "fhd",
];
$sign1 = Kc($params);
$params["signature"] = $sign1;
$bstrURL1 = "https://player-api.yangshipin.cn/v1/player/get_live_info";
$headers1 = [
"Content-Type: application/json;charset=UTF-8",
"Referer: https://www.yangshipin.cn/",
"Cookie: guid={$guid}; versionName=99.99.99; versionCode=999999; vplatform=109; platformVersion=Chrome; deviceModel=123; updateProtocol=1; seqId=36;request-id={$request_id}",
"Yspappid: 519748109",
"yspplayertoken: {$token}",
];
$ch = curl_init($bstrURL1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_HTTPHEADER,$headers1);
curl_setopt($ch, CURLOPT_POST,1);
curl_setopt($ch, CURLOPT_POSTFIELDS,json_encode($params));
$data = curl_exec($ch);
//echo $data;
// 关闭CURL会话
curl_close($ch);
$json = json_decode($data);
$live = $json->data->playurl;
$extended_param = $json->data->extended_param;
$chanllCode = json_decode($json->data->chanll)->code;
$decodeChanll = base64_decode($chanllCode);
// 定义正则表达式来匹配des_key和des_iv的赋值语句
$patternKey = '/var des_key = "(.*?)";/';
$patternIv = '/var des_iv = "(.*?)";/';
// 初始化变量用于存储提取的值
$desKey = "";
$desIv = "";
// 使用正则表达式提取des_key的值
if (preg_match($patternKey, $decodeChanll, $matchesKey)) {
$desKey = $matchesKey;
}
// 使用正则表达式提取des_iv的值
if (preg_match($patternIv, $decodeChanll, $matchesIv)) {
$desIv = $matchesIv;
}
//定义待加密数组
$jsonString = '{"mver":"1","subver":"1.2","host":"www.yangshipin.cn/#/tv/home?pid=","referer":"","canvas":"YSPANGLE(Intel,Intel(R)Iris(R)XeGraphics(0x000046A6)Direct3D11vs_5_0ps_5_0,D3D11)"}';
$data = json_decode($jsonString, true);
function encryptData($data,$desKey,$desIv) {
$plaintext = json_encode($data,JSON_UNESCAPED_SLASHES);
$key = base64_decode($desKey);
$iv = base64_decode($desIv);
$encrypted = openssl_encrypt($plaintext, 'des-ede3-cbc', $key, OPENSSL_RAW_DATA, $iv);
return strtoupper(bin2hex($encrypted));
}
//定义变量保存revoi值
$encryptedHex = encryptData($data,$desKey,$desIv);//revoi值
//header('Location:'. $live."&revoi=".$encryptedHex.$extended_param);
//exit();

$live = $live."&revoi=".$encryptedHex.$extended_param ;

//替换cdn域名,国内服务器可删除此行代码
$live = str_replace("https://outlivecloud-cdn.ysp.cctv.cn", "http://hlslive-tx-cdn.ysp.cctv.cn", $live);


//CCTV6、CETV1、兵团卫视特殊格式处理
$cut = substr($n[$id] , 0 , 8);
if($id == 'cctv6'||$id == 'cetv1'||$id == 'btws') {
$burl = explode("{$n[$id]}_fhd.m3u8",$live);
} else {
//   $burl = explode("{$n[$id]}.m3u8",$live);
   $burl = explode("$cut",$live);
   }

$d = file_get_contents($live);
$str = preg_replace("/(.*?.ts)/", $burl."$1",$d);
header("Content-Type: application/vnd.apple.mpegurl");
header("Content-Disposition: inline; filename=index.m3u8");
echo $str;
?>

waaabc 发表于 2024-5-11 08:19:28

看看好不好用吗

椰壳 发表于 2024-5-12 09:59:35

41楼VIP频道不可看,其它可以

ddong 发表于 2024-5-12 10:08:19

看看不说话

javon 发表于 2024-5-12 10:51:36

tvzbiptv 发表于 2024-5-11 08:10


感谢分享

starworld 发表于 2024-5-12 12:33:47

多谢分享,确实不好用了

starworld 发表于 2024-5-12 12:34:17

积分太低了,没法浏览,555555

hktk7 发表于 2024-5-12 16:50:55

看看瞧瞧,感谢分享
页: 1 2 3 [4] 5 6
查看完整版本: 可用YSP代理源码