找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 755|回复: 22

[iptv信源 资源分享或寻求] 1905php是不是失效了啊?

[复制链接]
<?php
///https://www.1905.com/cctv6/live/?index3
error_reporting(0);
header('Content-Type: application/x-javascript; charset=utf-8');
$id = isset($_GET['id'])?$_GET['id']:'cctv6';
$n = [
    'cctv6' => ['LIVEI56PNI726KA7A'],//CCTV6电影频道
    '1905b' => ['LIVE8J4LTCXPI7QJ5'],//1905国外电影
    '1905a' => ['LIVENCOI8M4RGOOJ9'],//1905国内电影
];
    $salt = "733491c04838307328c3ca158213040d06c3924f"; // 盐  
    $url = "https://profile.m1905.com/mvod/liveinfo.php";
    $StreamName = $n[$id][0];
    $sign = $n[$id][1];
    $ts = time();
    $playid = substr($ts,-4).'12312345678';
    $params = [
        'cid'=> 999999,
        'expiretime'=> 2000000600,
        'nonce'=> 2000000000,
        'page'=> 'https://www.1905.com',
        'playerid'=> $playid,
        'streamname'=> $StreamName,
        'uuid'=> 1
    ];
    $sign = sha1(http_build_query($params).'.'.$salt);
    $params['appid'] = 'Lbv73h6w';
    $headers = [
        'Authorization: '.$sign,
        'Content-Type: application/json',
    ];
    $data=curl($url,$params,$headers);
    $json = json_decode($data,true);
                //print_r($data);die;

    $playURL = $json['data']['quality']['hd']['host'].$json['data']['path']['hd']['path'].$json['data']['sign']['hd']['sign'];
    header('location:'.$playURL);
function curl($url,$params,$headers){
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
    curl_setopt($ch, CURLOPT_POST,true);
    curl_setopt($ch, CURLOPT_HTTPHEADER,$headers);
    curl_setopt($ch, CURLOPT_POSTFIELDS,json_encode($params));
    $data = curl_exec($ch);
    curl_close($ch);
        return $data;
  }
function createNewGUID()
    {
        if (function_exists('com_create_guid') === true)
        {
            return trim(com_create_guid(), '{}');
        }
        return sprintf('%04X%04X-%04X-%04X-%04X-%04X%04X%04X', mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(16384, 20479), mt_rand(32768, 49151), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535));
    }
?>

我的恩山、我的无线 The best wifi forum is right here.
 楼主| | 显示全部楼层
哪位大佬能修复下啊

点评

没失效啊,我的Python正常  详情 回复 发表于 2024-4-18 17:56
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

本帖最后由 drow2012 于 2024-4-18 16:38 编辑

1905a和1905b还有效,6公主好像是失效了。
改一下6公主的ID值,复活。
'cctv6' => ['LIVE5SS6R1KKAHZ91'],//CCTV6电影频道

点评

我是全部都播不了  详情 回复 发表于 2024-4-18 16:18
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
drow2012 发表于 2024-4-18 16:14
1905a和1905b还有效,6公主好像是失效了。

我是全部都播不了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

'cctv6' => ['LIVE5SS6R1KKAHZ91'],//CCTV6电影频道
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

只有失效了才把代码放出来,哈哈哈哈

点评

偷撸就行了,放出来只会经常换key  详情 回复 发表于 2024-4-18 17:06
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

doubebly 发表于 2024-4-18 16:39
只有失效了才把代码放出来,哈哈哈哈

偷撸就行了,放出来只会经常换key
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

你这代码哪里拼凑的,又$sign = $n[$id][1];,又$sign = sha1(http_build_query($params).'.'.$salt);,又function createNewGUID,你要用起来也行啊

nonce
expiretime
playerid
uuid
都要通过算法生成
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

声梦传奇 发表于 2024-4-18 16:12
哪位大佬能修复下啊

没失效啊,我的Python正常
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

salt和appid不对导致的,咱也不会弄,还是用guoma的吧,他的可以用

点评

我这个就是他的啊,用不了  详情 回复 发表于 2024-4-18 20:09
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

没有失效                          
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

不是。。。。。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
xiaren2 发表于 2024-4-18 18:21
salt和appid不对导致的,咱也不会弄,还是用guoma的吧,他的可以用

我这个就是他的啊,用不了

点评

不知道你从哪里找的。https://www.right.com.cn/forum/thread-8316017-1-1.html  详情 回复 发表于 2024-4-18 21:43
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

早就失效了!不要折腾了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

没失效啊,还可以用
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

关闭

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

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

GMT+8, 2024-5-1 05:56

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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