分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 前端开发

QQ群免IDKEY加群PHP源码

发布时间:2023-09-06 02:15责任编辑:傅花花关键词:PHP

加群链接需要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源码

原文地址:https://www.cnblogs.com/7qin/p/9688798.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved