找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 2957|回复: 8

[iptv信源 资源分享或寻求] 谷豆php代理,是不是得改一下

[复制链接]
发表于 2023-1-14 16:01 | 显示全部楼层 |阅读模式
<?php
error_reporting(0);
header('Content-Type:text/html;charset=UTF-8');
$id=$_GET['id'];

$ip = $_SERVER["REMOTE_ADDR"];
$time=date('Y-m-d H:i:s',time());
$content = "\r\n"."ip:".$ip." time:".$time."---".$id;
//定义文件存放的位置
$compile_dir = "C:/log/gudou.txt";
//下面就是写入的PHP代码了
$file = fopen($compile_dir,"a+");
fwrite($file,$content);
fclose($file);


$user='15314265055';
$ptoken='k/pg5QLOZT3baESG1QbqdQ==';
$pserialnumber='7d97ffeeea2f14d5';
$t=time();
$nonce=rand(100000,999999);
$str='sumasalt-app-portalpVW4U*FlS'.$t.$nonce.$user;
$hmac=substr(sha1($str),0,10);
$onlineip=$_SERVER['REMOTE_ADDR'];
$info='ptype=1&plocation=001&puser='.$user.'&ptoken='.$ptoken.'&pversion=030104&pserverAddress=portal.gcable.cn&pserialNumber='.$pserialnumber.'&pkv=1&ptn=Y29tLnN1bWF2aXNpb24uc2FucGluZy5ndWRvdQ&pappName=GoodTV&DRMtoken='.$ptoken.'&epgID=&authType=0&secondAuthid=&t='.$ptoken.'&pid=&cid=&u='.$user.'&p=8&l=001&d='.$pserialnumber.'&n='.$id.'&v=2&hmac='.$hmac.'&timestamp='.$t.'&nonce='.$nonce;
$url='http://portal.gcable.cn:8080/PortalServer-App/new/aaa_aut_aut002';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);      
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, $info);
curl_setopt($ch, CURLOPT_USERAGENT, "Apache-HttpClient/UNAVAILABLE (java 1.4)");
//curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded', 'Host: portal.gcable.cn:8080', 'Connection: Keep-Alive','Accept-Encoding: gzip','Content-Length: 440')); 页头信息备用
curl_setopt($ch, CURLOPT_HTTPHEADER, array('X-FORWARDED-FOR:'.$onlineip, 'CLIENT-IP:'.$onlineip));
$res = curl_exec($ch);
curl_close($ch);
//preg_match('|aaa?(.*?)&ip|',$res, $tk);
//$live="http://gslb.gcable.cn:8070/live/".$id.".m3u8?".$tk[1];
$uas=parse_url($res);
parse_str($uas["query"]);
$token="?t=".$t."&u=".$u."&p=".$p."&pid=&cid=".$cid."&d=".$d."&sid=".$sid."&r=".$r."&e=".$e."&nc=".$nc."&a=".$a."&v=".$v;
$playurl = "http://gslb.gcable.cn:8070/live/".$id.".m3u8".$token;
//echo $playurl;


if($_GET["playseek"]){//时移,时间参数为年月日时分秒,例子:playseek=20200629193000-20200629204000
        $tms=explode("-",$_GET["playseek"]);//将时间参数的开始和结束分开
        $st=$tms[0];//开始时间
        $et=$tms[1];//结束时间

        $st=strtotime($tms[0]);
        $et=strtotime($tms[1]);

        $wasu=$playurl."&starttime=".$st."&endtime=".$et;
}
else{//直播

        $wasu=$playurl;

}

//header('location:'.urldecode($wasu));
header("location: $wasu");
exit;
?>

发表于 2023-1-14 16:11 | 显示全部楼层
你是嫌这死的不够快嘛,发了一遍又一遍……
前2天才发了1贴,今天又发……

点评

这不是求助吗?没人回答,我抓了值,怎么写上去不能用,是不是少个cid  详情 回复 发表于 2023-1-14 22:55
回复 支持 反对

使用道具 举报

发表于 2023-1-14 16:12 | 显示全部楼层
没事吃饱撑着
回复 支持 反对

使用道具 举报

发表于 2023-1-14 17:03 | 显示全部楼层
不用改,不行换个号
回复 支持 反对

使用道具 举报

发表于 2023-1-14 17:08 | 显示全部楼层
私聊我告诉你
回复 支持 反对

使用道具 举报

 楼主| 发表于 2023-1-14 22:55 | 显示全部楼层
EScZkc_1d8 发表于 2023-1-14 16:11
你是嫌这死的不够快嘛,发了一遍又一遍……
前2天才发了1贴,今天又发……

这不是求助吗?没人回答,我抓了值,怎么写上去不能用,是不是少个cid

点评

估计等你求到了,这个代码也废了  详情 回复 发表于 2023-1-14 23:17
回复 支持 反对

使用道具 举报

发表于 2023-1-14 23:17 | 显示全部楼层
939809104 发表于 2023-1-14 22:55
这不是求助吗?没人回答,我抓了值,怎么写上去不能用,是不是少个cid

估计等你求到了,这个代码也废了
随便找个稳定的源就可以了,不明白为啥天天折腾这个……
回复 支持 反对

使用道具 举报

发表于 2023-1-15 05:27 来自手机 | 显示全部楼层
支持分享精神,思考了
回复 支持 反对

使用道具 举报

发表于 2023-4-18 21:48 | 显示全部楼层
大哥,这个还能用吗?要咋改?
回复 支持 反对

使用道具 举报

发表于 2023-12-15 08:24 | 显示全部楼层
支持发源码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-6-16 07:17

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com

快速回复 返回顶部 返回列表