因为最近在玩TT语音嘛,闲的无聊,就搞了个这个,直接上代码咯
演示:https://www.yyhy.me/tt_login.php?username=你的TT账号&password=密码

<?php
/*
 * 模拟登陆TT语音
 */
@header('Content-Type: text/html; charset=UTF-8');
if(!isset($_GET['username'])) exit('用户名参数丢失');
if(!isset($_GET['password'])) exit('密码参数丢失');
$username = $_GET['username'];
$password = md5($_GET['password']);
$url = 'https://node.52tt.com/frontend-nodejs-user-management-system/oauth/login?account='.$username.'&password='.$password.'&token=&refreshToken=&uid=0&app=3&_=1554037161203';
echo httpGet($url);
//发起GET模拟请求
function httpGet($url) {
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_TIMEOUT, 30);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_HTTPHEADER,array('Accept-Encoding: gzip, deflate'));
    curl_setopt($ch, CURLOPT_ENCODING, 'gzip,deflate');
    curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (iPhone; CPU iPhone OS 8_0 like Mac OS X) AppleWebKit/600.1.3 (KHTML, like Gecko) Version/8.0 Mobile/12A4345d Safari/600.1.4");
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 3);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
    $output = curl_exec($ch);
    curl_close($ch);
    return $output;
}