1 Star 0 Fork 1

Hug/WarframeAlertingQqRobot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ask.php 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
Hug 提交于 2018-10-16 00:09 . modify
<?php
require_once 'start.php';
$request = new \lib\Request();
$login_sig = '';
$fileList = scandir(ROOT_PATH . DS . 'cookie');
if(isset($fileList['2'])){
$content = file_get_contents(ROOT_PATH . DS . 'cookie' . DS . $fileList['2']);
if(preg_match('/pt_login_sig\s(\S.*)/', $content, $match)){
$login_sig = $match[1];
$login_sig = preg_replace('/\s/', '', $login_sig);
}
}
$url = 'https://ssl.ptlogin2.qq.com/ptqrlogin?u1=https://web2.qq.com/proxy.html&ptqrtoken='.$_POST['token'].'&ptredirect=0&h=1&t=1&g=1&from_ui=1&ptlang=2052&action=0-1-1539617495419&js_ver=10284&js_type=1&login_sig='.$login_sig.'&pt_uistyle=40&aid=501004106&daid=164&mibao_css=m_webqq&';
$referer = 'https://xui.ptlogin2.qq.com/cgi-bin/xlogin?daid=164&target=self&style=40&pt_disable_pwd=1&mibao_css=m_webqq&appid=501004106&enable_qlogin=0&no_verifyimg=1&s_url=https%3A%2F%2Fweb2.qq.com%2Fproxy.html&f_url=loginerroralert&strong_login=1&login_state=10&t=20131024001';
$response = $request->url($url)->setReferer($referer)->autoCookie()->send();
echo $response;
exit;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/Hugbox/WarframeAlertingQqRobot.git
git@gitee.com:Hugbox/WarframeAlertingQqRobot.git
Hugbox
WarframeAlertingQqRobot
WarframeAlertingQqRobot
master

搜索帮助