惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
爱范儿
爱范儿
H
Help Net Security
V
Visual Studio Blog
J
Java Code Geeks
Stack Overflow Blog
Stack Overflow Blog
Microsoft Security Blog
Microsoft Security Blog
Apple Machine Learning Research
Apple Machine Learning Research
MyScale Blog
MyScale Blog
The Cloudflare Blog
Martin Fowler
Martin Fowler
D
Docker
腾讯CDC
F
Fortinet All Blogs
雷峰网
雷峰网
GbyAI
GbyAI
G
Google Developers Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Recent Announcements
Recent Announcements
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Blog — PlanetScale
Blog — PlanetScale
Engineering at Meta
Engineering at Meta
博客园 - 聂微东
博客园 - 叶小钗

Hi, I Am I

[I Am I 年度简报] — 不知终日梦为鱼 初探 ESP32-CAM QQ 聊天记录 MHT 文件转 HTML [I Am I 年度简报] - 草木本无意,荣枯自有时。 Hexo 中实现 Live Photos 支持 写在当下 NKCTF 2024 1z_F0r3ns1c5 Writeup 春秋杯冬季赛 2023 Writeup [I Am I 年度简报] - 2023 某内网渗透内部赛 Writeup 强网拟态 2023 Writeup Github Actions 自动化部署 Hexo 浅析CobaltStrike流量解密 陇剑杯 2023 Writeup CTF线下赛AWDP总结 ISCC 2023 Writeup ISCC 2023 实战题 Writeup CISCN 2023 Writeup 福建闽盾杯网络空间安全大赛 2023 Writeup 天一永安杯宁波市网络安全大赛 2023 Writeup 贵阳大数据及网络安全精英对抗赛 2023 Writeup 红明谷杯 2023 Writeup Confetti 带来有仪式感的鼓励 记一次 JS 逆向密码加密 [I Am I 年度简报] – 2022 PHP 读取 Excel 文件内容并写入数据库 从0开始的 MoeCTF 开发之路 观安杯 2022 Writeup 利用微信服务号实现早安自动化 Cloudflare批量拉黑IP脚本
QQ群免 IDKEY 加群API源码
2020-04-03 · via Hi, I Am I

网上的源码大都失效 经 @Timi.杨 提醒吾爱一位老哥的源码 2018最新根据群号得到idkey以及加群链接 还可以用

所以简单修改了一下改成了API接口

使用示例

返回数据

{
  "code": 200,
  "data": {
    "gid": 679849986,
    "idkey": "a5cef71d9834cdf84e87850ead503d4bf91a7405e6ac6518bcc0e622bfb85669",
    "url": "http://wp.qq.com/wpa/qunwpa?idkey=a5cef71d9834cdf84e87850ead503d4bf91a7405e6ac6518bcc0e622bfb85669"
  }
}

PHP源码

<?php
$qqun = $_GET['qun'];
$type = $_GET['type'];
$t = time() * 1000;
if ($qqun == '') {
    echo "参数不能为空";
}
if ($qqun != null) {
    $url = "http://wp.qq.com/wpa/g_wpa_get?guin=" . $qqun . "&t=" . $t;
    $arr = json_decode($url, true);
    $ResArray = json_decode(file_get_content($url, 'get'), true);
    $uid = $ResArray['result']['data'][0]['guin'];
    $idkey = $ResArray['result']['data'][0]['key'];
    if ($type == 301) {
        $cs = 'http://wp.qq.com/wpa/qunwpa?idkey=' . $idkey . '';
        header("Location:{$cs}");
    }
    $Json = array("code" => 200, "data" => array("uid" => $uid, "idkey" => $idkey, "url" => 'http://wp.qq.com/wpa/qunwpa?idkey=' . $idkey . ''));
    $Json = json_encode($Json, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
    echo stripslashes($Json);
    return $Json;
}