1. 程式人生 > >QQ群免IDKEY加群PHP源碼

QQ群免IDKEY加群PHP源碼

ret web use 源碼 hang php源碼 .cn https build

加群鏈接需要idkey的,該源碼自動解析idkey,實現免idkey加群。

該源碼來自彩虹秒贊系統。

例如:api.yum6.cn/qqun.php?qun=463631294

<?php
/*免IDKEY加群
*Author:消失的彩虹海
*/
error_reporting(0);
function get_curl($url, $post=0, $referer=0, $cookie=0, $header=0, $ua=0, $nobaody=0)
{
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt(
$ch, CURLOPT_SSL_VERIFYPEER, false); if ($post) { curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $post); } if ($header) { curl_setopt($ch, CURLOPT_HEADER, true); } if ($cookie) { curl_setopt($ch, CURLOPT_COOKIE, $cookie
); } if ($referer) { curl_setopt($ch, CURLOPT_REFERER, $referer); } if ($ua) { curl_setopt($ch, CURLOPT_USERAGENT, $ua); } else { curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Linux; U; Android 4.0.4; es-mx; HTC_One_X Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0"); }
if ($nobaody) { curl_setopt($ch, CURLOPT_NOBODY, 1); } curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $ret = curl_exec($ch); curl_close($ch); return $ret; } $qun=isset($_GET[‘qun‘])?$_GET[‘qun‘]:‘326026548‘; $data=get_curl(‘http://shang.qq.com/wpa/g_wpa_get?guin=‘.$qun.‘&t=‘.time(),0,‘http://qun.qq.com/join.html‘); $arr=json_decode($data,true); $idkey=$arr[‘result‘][‘data‘][0][‘key‘]; $url=‘http://shang.qq.com/wpa/qunwpa?idkey=‘.$idkey; header("Location:{$url}"); exit; ?>

轉自:https://www.youngxj.cn/544.html

QQ群免IDKEY加群PHP源碼