这个是用来获取QQ的sid值,主要是用来在线挂Q,QQ家园啥的,是PHP脚本,所以需要在PHP环境下运行。之前在网上找的软件感觉不靠谱的样子,不太放心,至少这个php脚本自己能看得懂,放心一些。代码不是我写的,忘记是在哪找的了。
由群里的horic增加了QQ号、密码输入框,在此感谢!
演示地址:http://gua.90r.org/sjsid.php
<?php $qqno = ''; //QQ号 $qqpw = ''; //密码 $phpname = 'sid.php'; function qqurl_post($url, $post) { $user_agent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.29 Safari/525.13"; $curl = curl_init($url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_USERAGENT, $user_agent); curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($post)); $result = curl_exec($curl); curl_close($curl); return $result; } if($_POST) { //echo "<script>alert(1)</script>"; if(!empty($_POST['qq'])){ $data = qqurl_post('http://pt.3g.qq.com/handleLogin?sid='.$_POST{'sid'}.'&vdata=',$_POST); preg_match('/infocenter_v2\.jsp\?sid=([\w-]{24})/',$data,$ssidarr);//匹配sid if (!empty($ssidarr[1])) { echo 'sid:'.$ssidarr[1];}else{echo $data;} exit(); } $qqno = $_POST['user']; $qqpw = $_POST['pass']; //echo $qqno.'---'.$qqpw; $post = array( 'qq' => $qqno, 'pwd' => $qqpw, 'bid_code' => '3GQQ', 'toQQchat' => 'true', 'login_url' => 'http://pt.3g.qq.com/s?aid=nLoginnew&q_from=3GQQ', 'q_from' => '3GQQ', 'modifySKey' => '0', 'loginType' => '1', 'aid' => 'nLoginHandle', 'i_p_w' => 'qq|pwd|' ); $data = qqurl_post('http://pt.3g.qq.com/psw3gqqLogin',$post); if ( preg_match('/请输入验证码/', $data) ) { $data=preg_replace('/\/handleLogin\?sid=[\w-]{20,25}\&\;vdata=/','/'.$phpname,$data); } //搜索ssid preg_match('/infocenter_v2\.jsp\?sid=([\w-]{24})/',$data,$ssidarr);//匹配sid if (!empty($ssidarr[1])) { echo 'sid:'.$ssidarr[1]; } else{ echo $data; } } ?> <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <title>QQ Sid查询器 Power By zmrbk.com</title> </head> <body> <form name="form" action="sid.php" method="post"> <input type="text" name="user" placeholder="QQ帐号" /> <input type="password" name="pass" placeholder="QQ密码"/> <input type="submit" value="查询Sid" /> </form> </body> </html>
评论前必须登录!
注册