国军电脑科技博客国军电脑科技博客

淮阳四通镇国军电脑科技,专业监控安装维修,十五年老店
首页 » 资源分享 » 2024年12月最新虎牙代理源码再优化 不断流

2024年12月最新虎牙代理源码再优化 不断流

代码来源论坛的guoma 

2024年12月24日09:45:31测试 正常可用 不断流

<?php

error_reporting(0);

$id = $_GET[‘id’];//房间号(lProfileRoom)

if (empty($_GET[‘id’])) $id =”11342412″;

$c = [‘tx’,’hw’,’hs’,’hy’];

$c_rand  = $c[array_rand($c)];

$n = [0,1,2,3];

$n_rand  = $n[array_rand($n)];

$roomurl = “https://mp.huya.com/cache.php?m=Live&do=profileRoom&roomid=$id”;

$json = json_decode(file_get_contents($roomurl),1);

$data = $json[“data”];

$uid = $data[‘profileInfo’][‘uid’];

$streamname = $data[‘stream’][‘baseSteamInfoList’][0][‘sStreamName’];

$url = $data[‘stream’][‘flv’][‘multiLine’][$n_rand][‘url’];

$burl = explode(‘?’, $url)[0];

$fm = “DWq8BcJ3h6DJt6TY_$0_$1_$2_$3”;

$seqid = strval(intval($uid) + intval(microtime(true) * 1000));

$ctype = ‘tars_wap’;

$t = ‘102’;    

$ss = md5(“{$seqid}|{$ctype}|{$t}”);

$wsTime = dechex(time() + 21600);

$fm = str_replace([“$0”, “$1”, “$2”, “$3”], [$uid, $streamname, $ss, $wsTime], $fm);

$wsSecret = md5($fm);

$s = [];

$s[“wsSecret”] = $wsSecret;

$s[“wsTime”] = $wsTime;

$s[“ctype”] = $ctype;

$s[“seqid”] = $seqid;

$s[“uid”] = $uid;

$s[“fs”] = “bgct”;

$s[“ver”] = “1”;

$s[“t”] = $t;

$p = http_build_query($s);

$playurl = $burl.’?’.$p;

header(“location:”.$playurl);

//print_r($playurl);

?>

文章如无特别注明均为原创! 作者:孔国军, 转载或复制请以 超链接形式 并注明出处 国军电脑科技博客。
原文地址《2024年12月最新虎牙代理源码再优化 不断流》发布于2024-12-24

分享到:

评论 0

发表评论