PHP写的 仿iPhone Android iPad说说工具
PHP写的 仿iPhone Android iPad说说工具
复制源码保存为iphone.php 上传空间
注意:保存格式为UTF-8 否者会乱码
然后访问你的域名 [只有管理员有权查看本链接]
测试:http://admin1.akj.cc/iphone.php(因为不是2.0 所以请用OP和手机访问 有时间会改的 或者你自己修改DTD头部文件和标签)
装逼第一利器
<?php
Function Head($Site_Title='仿iPhone说说工具'){
header("Content-type:text/vnd.wap.wml;charset=utf-8");
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n<wml>\n";
echo "<head>\n";
echo "<meta http-equiv=\"cache-control\" content=\"no-cache\"/>\n";
echo "<meta http-equiv=\"cache-control\" content=\"max-age=0\"/>\n";
echo "</head>\n";
echo "<card id=\"main\" title=\"".$Site_Title."\">\n<p>\n";
}
Function Foot(){
echo "\n</p>\n</card>\n</wml>";
}
#Sid提取函数
function qqLogin($qq,$pwd,$logintype){
$cn=curl_init();
curl_setopt($cn,CURLOPT_URL,"http://pt5.3g.qq.com/handleLogin?r=".time());
curl_setopt($cn,CURLOPT_USERAGENT,'TTMobile/09.03.18/symbianOS9.1 Series60/3.0 Nokia6120cAP3.03');
curl_setopt($cn,CURLOPT_POST,1);
curl_setopt($cn,CURLOPT_POSTFIELDS,'qq='.$qq.'&pwd='.$pwd.'&hid_code=3GQQ&toQQchat=true&login_url=http://pt.3g.qq.com/s?aid=nLoginnew&q_from=3GQQ&modifySKey=0&loginType='.$logintype.'&aid=nLoginHandle');
curl_setopt($cn,CURLOPT_RETURNTRANSFER,1);
$content=curl_exec($cn);
curl_close($cn);
Return $content;
}
function qqVerifyLogin($url,$qq,$hexpwd,$sid,$logintype,$verify,$extend,$r_sid,$r,$rip){
$cn=curl_init();
curl_setopt($cn,CURLOPT_URL,$url);
curl_setopt($cn,CURLOPT_USERAGENT,'TTMobile/09.03.18/symbianOS9.1 Series60/3.0 Nokia6120cAP3.03');
curl_setopt($cn,CURLOPT_POST,1);
curl_setopt($cn,CURLOPT_POSTFIELDS,'qq='.$qq.'&u_token=-1&hexpwd='.$hexpwd.'&sid='.$sid.'&hexp=true&auto=0&loginTitle=手机腾讯网&q_from=3GQQ&toQQchat=true&login_url=http://pt.3g.qq.com/s?aid=nLoginnew&imgType=gif&verify='.$verify.'&modifySKey=0&bid_code=qqchatLogin&q_status=10&bid=0&r='.$r.'&loginType='.$logintype.'&extend='.$extend.'&r_sid='.$r_sid.'&rip='.$rip);
curl_setopt($cn,CURLOPT_RETURNTRANSFER,1);
$content=curl_exec($cn);
curl_close($cn);
Return $content;
}
Function getImg($body){
Preg_match('!QQ.*(<img[^>]*验证码[^>]*>)!is',$body,$result);
Return $result[1];
}
Function getValue($body){
$value=explode('马上登录',$body);
$value=explode('返回上一页',$value[1]);
Preg_match_all('!name="(qq|hexpwd|sid|loginType|extend|r_sid|r|rip)".*value="(.*)"!isU',$value[0],$result,PREG_SET_ORDER);
Return $result;
}
function getSid($body){
preg_match('!sid=([^&]+)!i',$body,$sid);
Return $sid[1];
}
Function getUrl($body){
$url=explode('马上登录',$body);
$url=explode('返回上一页',$url[1]);
$url=explode('"',$url[0]);
Return $url[1];
}
function save($qq,$sid,$txt,$ua){
$cn=curl_init();
curl_setopt($cn,CURLOPT_URL,"http://m.z.qq.com/phone2.0/vaction.jsp?sid=".$sid."");
curl_setopt($cn,CURLOPT_USERAGENT,$ua);
curl_setopt($cn,CURLOPT_POST,1);
curl_setopt($cn,CURLOPT_POSTFIELDS,'ac=3&mst=2&buid='.$qq.'&content='.$txt.'&latitude=null&longitude=null&address=null&manorId=null');
curl_setopt($cn,CURLOPT_RETURNTRANSFER,1);
$content=curl_exec($cn);
curl_close($cn);
Return $content;
}
$iphone_ua='Mozilla/5.0 (iPhone; CPU iPhone OS 5_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B176 Safari/7534.48.3';
$android_ua='Mozilla/5.0 (Linux; U; Android 4.0.4; zh-cn; sdk Build/MR1)AppleWebKit/534.31 (KHTML, like Gecko) Mobile Safari/534.30';
$ipad_ua='Mozilla/5.0 (iPad; U; CPU OS 4_1 like Mac OS X; en-us)AppleWebKit/532.9(KHTML, like Gecko) Version/4.0.5 Mobile/8B117 Safari/6531.22.7';
$m=$_GET['m'];
if(!isset($m)) $m=1;
if($m==1){
if($_POST['qq']){
$qq=$_POST['qq'];
$pwd=$_POST['pwd'];
$txt=$_POST['txt'];
$how=$_POST['how'];
if($_GET['q']=='verify'){
$content=qqVerifyLogin($_POST['url'],$qq,$_POST['hexpwd'],$_POST['sid'],1,$_POST['verify'],$_POST['extend'],$_POST['r_sid'],$_POST['r'],$_POST['rip']);
}else{
$content=qqLogin($qq,$pwd,1);
}
if(strpos($content,'验证码')){
$value=getValue($content);
$img=getImg($content);
$F_H=''.$img.'<br/>输入验证码:<br/><input type="text" name="verify"/><br/><anchor><go method="post" accept-charset="utf-8" href="iphone.php?m='.$m.'&q=verify"><postfield name="verify" value="$(verify)" />';
Foreach($value as $i){
$FH=$FH.'<postfield name="'.$i[1].'" value="'.$i[2].'" />';
}
$_url=getUrl($content);
$F_H=$F_H.$FH.'<postfield name="how" value="'.$how.'" /><postfield name="txt" value="'.$txt.'" /><postfield name="url" value="'.$_url.'" /></go>[确定]</anchor><br/>';
}else{
$sid=getSid($content);
if(isset($sid)){
if($how=='iphone'){
$ua=$iphone_ua;
}elseif($how=='android'){
$ua=$android_ua;
}elseif($how=='ipad'){
$ua=$ipad_ua;
}
$save=save($qq,$sid,$txt,$ua);
if(strpos($save,'mguide":"分享生活,留住感动。"')){
$F_H='恭喜,发表成功!<a href="http://ish.z.qq.com/infocenter_v2.jsp?B_UID='.$qq.'&sid='.$sid.'">等不及了,马上去查看>></a><br/>您的SID:'.$sid.'<br/>';
}else{
$F_H='很抱歉,未知错误!<br/>';
}
}else{
$F_H='获取SID出错!<br/>';
}
}
}else{
$F_H='QQ号码:<br/><input type="text" name="qq"/><br/>QQ密码:<a href="iphone.php?m=2">(使用SID模式)</a><br/><input type="text" name="pwd"/><br/>说说内容:<br/><input type="text" name="txt"/><br/>发表方式:<select name="how"><option value="iphone">iPhone</option><option value="android">Android</option><option value="ipad">iPad</option></select><br/><anchor><go method="post" accept-charset="utf-8" href="iphone.php?m='.$m.'"><postfield name="qq" value="$(qq)" /><postfield name="pwd" value="$(pwd)"
/><postfield name="txt" value="$(txt)" /><postfield name="how" value="$(how)" /></go>[发表说说]</anchor><br/>';
}
}else{
if($_POST['qq']){
$qq=$_POST['qq'];
$sid=$_POST['sid'];
$txt=$_POST['txt'];
$how=$_POST['how'];
if($how=='iphone'){
$ua=$iphone_ua;
}elseif($how=='android'){
$ua=$android_ua;
}elseif($how=='ipad'){
$ua=$ipad_ua;
}
$save=save($qq,$sid,$txt,$ua);
if(strpos($save,'mguide":"分享生活,留住感动。"')){
$F_H='恭喜,发表成功!<a href="http://ish.z.qq.com/infocenter_v2.jsp?B_UID='.$qq.'&sid='.$sid.'">等不及了,马上去查看>></a><br/>';
}else{
$F_H='很抱歉,未知错误!<br/>';
}
}else{
$F_H='QQ号码:<br/><input type="text" name="qq"/><br/>SID:<a href="iphone.php">(使用密码模式)</a><br/><input type="text" name="sid"/><br/>说说内容:<br/><input type="text" name="txt"/><br/>发表方式:<select name="how"><option value="iphone">iPhone</option><option value="android">Android</option><option value="ipad">iPad</option></select><br/><anchor><go method="post" accept-charset="utf-8" href="iphone.php?m=2"><postfield name="qq" value="$(qq)" /><postfield name="sid" value="$(sid)"
/><postfield name="txt" value="$(txt)" /><postfield name="how" value="$(how)" /></go>[发表说说]</anchor><br/>';
}
}
Head('iPhone说说模拟工具');
echo $F_H;
echo '<br/>用这个东西发表说说就等于用iPhone发表说说,好友看到你发表的说说的时间后面自动显示通过“iPad/iPhone触屏版”发表。<br/>';
echo '郑重声明:此系统非钓鱼系统,不记录登陆信息,如怀疑盗QQ,请第一次随意输入密码测试发表结果,正确的密码才能发表,而不像钓鱼系统随便输都提示成功!<br/><br/>';
echo 'CopyRight (c) 2012 版权所有 QQ1246011896';
Foot ();
?>
注意:保存格式为UTF-8 否者会乱码
然后访问你的域名 [只有管理员有权查看本链接]
测试:http://admin1.akj.cc/iphone.php(因为不是2.0 所以请用OP和手机访问 有时间会改的 或者你自己修改DTD头部文件和标签)
装逼第一利器
<?php
Function Head($Site_Title='仿iPhone说说工具'){
header("Content-type:text/vnd.wap.wml;charset=utf-8");
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n<wml>\n";
echo "<head>\n";
echo "<meta http-equiv=\"cache-control\" content=\"no-cache\"/>\n";
echo "<meta http-equiv=\"cache-control\" content=\"max-age=0\"/>\n";
echo "</head>\n";
echo "<card id=\"main\" title=\"".$Site_Title."\">\n<p>\n";
}
Function Foot(){
echo "\n</p>\n</card>\n</wml>";
}
#Sid提取函数
function qqLogin($qq,$pwd,$logintype){
$cn=curl_init();
curl_setopt($cn,CURLOPT_URL,"http://pt5.3g.qq.com/handleLogin?r=".time());
curl_setopt($cn,CURLOPT_USERAGENT,'TTMobile/09.03.18/symbianOS9.1 Series60/3.0 Nokia6120cAP3.03');
curl_setopt($cn,CURLOPT_POST,1);
curl_setopt($cn,CURLOPT_POSTFIELDS,'qq='.$qq.'&pwd='.$pwd.'&hid_code=3GQQ&toQQchat=true&login_url=http://pt.3g.qq.com/s?aid=nLoginnew&q_from=3GQQ&modifySKey=0&loginType='.$logintype.'&aid=nLoginHandle');
curl_setopt($cn,CURLOPT_RETURNTRANSFER,1);
$content=curl_exec($cn);
curl_close($cn);
Return $content;
}
function qqVerifyLogin($url,$qq,$hexpwd,$sid,$logintype,$verify,$extend,$r_sid,$r,$rip){
$cn=curl_init();
curl_setopt($cn,CURLOPT_URL,$url);
curl_setopt($cn,CURLOPT_USERAGENT,'TTMobile/09.03.18/symbianOS9.1 Series60/3.0 Nokia6120cAP3.03');
curl_setopt($cn,CURLOPT_POST,1);
curl_setopt($cn,CURLOPT_POSTFIELDS,'qq='.$qq.'&u_token=-1&hexpwd='.$hexpwd.'&sid='.$sid.'&hexp=true&auto=0&loginTitle=手机腾讯网&q_from=3GQQ&toQQchat=true&login_url=http://pt.3g.qq.com/s?aid=nLoginnew&imgType=gif&verify='.$verify.'&modifySKey=0&bid_code=qqchatLogin&q_status=10&bid=0&r='.$r.'&loginType='.$logintype.'&extend='.$extend.'&r_sid='.$r_sid.'&rip='.$rip);
curl_setopt($cn,CURLOPT_RETURNTRANSFER,1);
$content=curl_exec($cn);
curl_close($cn);
Return $content;
}
Function getImg($body){
Preg_match('!QQ.*(<img[^>]*验证码[^>]*>)!is',$body,$result);
Return $result[1];
}
Function getValue($body){
$value=explode('马上登录',$body);
$value=explode('返回上一页',$value[1]);
Preg_match_all('!name="(qq|hexpwd|sid|loginType|extend|r_sid|r|rip)".*value="(.*)"!isU',$value[0],$result,PREG_SET_ORDER);
Return $result;
}
function getSid($body){
preg_match('!sid=([^&]+)!i',$body,$sid);
Return $sid[1];
}
Function getUrl($body){
$url=explode('马上登录',$body);
$url=explode('返回上一页',$url[1]);
$url=explode('"',$url[0]);
Return $url[1];
}
function save($qq,$sid,$txt,$ua){
$cn=curl_init();
curl_setopt($cn,CURLOPT_URL,"http://m.z.qq.com/phone2.0/vaction.jsp?sid=".$sid."");
curl_setopt($cn,CURLOPT_USERAGENT,$ua);
curl_setopt($cn,CURLOPT_POST,1);
curl_setopt($cn,CURLOPT_POSTFIELDS,'ac=3&mst=2&buid='.$qq.'&content='.$txt.'&latitude=null&longitude=null&address=null&manorId=null');
curl_setopt($cn,CURLOPT_RETURNTRANSFER,1);
$content=curl_exec($cn);
curl_close($cn);
Return $content;
}
$iphone_ua='Mozilla/5.0 (iPhone; CPU iPhone OS 5_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B176 Safari/7534.48.3';
$android_ua='Mozilla/5.0 (Linux; U; Android 4.0.4; zh-cn; sdk Build/MR1)AppleWebKit/534.31 (KHTML, like Gecko) Mobile Safari/534.30';
$ipad_ua='Mozilla/5.0 (iPad; U; CPU OS 4_1 like Mac OS X; en-us)AppleWebKit/532.9(KHTML, like Gecko) Version/4.0.5 Mobile/8B117 Safari/6531.22.7';
$m=$_GET['m'];
if(!isset($m)) $m=1;
if($m==1){
if($_POST['qq']){
$qq=$_POST['qq'];
$pwd=$_POST['pwd'];
$txt=$_POST['txt'];
$how=$_POST['how'];
if($_GET['q']=='verify'){
$content=qqVerifyLogin($_POST['url'],$qq,$_POST['hexpwd'],$_POST['sid'],1,$_POST['verify'],$_POST['extend'],$_POST['r_sid'],$_POST['r'],$_POST['rip']);
}else{
$content=qqLogin($qq,$pwd,1);
}
if(strpos($content,'验证码')){
$value=getValue($content);
$img=getImg($content);
$F_H=''.$img.'<br/>输入验证码:<br/><input type="text" name="verify"/><br/><anchor><go method="post" accept-charset="utf-8" href="iphone.php?m='.$m.'&q=verify"><postfield name="verify" value="$(verify)" />';
Foreach($value as $i){
$FH=$FH.'<postfield name="'.$i[1].'" value="'.$i[2].'" />';
}
$_url=getUrl($content);
$F_H=$F_H.$FH.'<postfield name="how" value="'.$how.'" /><postfield name="txt" value="'.$txt.'" /><postfield name="url" value="'.$_url.'" /></go>[确定]</anchor><br/>';
}else{
$sid=getSid($content);
if(isset($sid)){
if($how=='iphone'){
$ua=$iphone_ua;
}elseif($how=='android'){
$ua=$android_ua;
}elseif($how=='ipad'){
$ua=$ipad_ua;
}
$save=save($qq,$sid,$txt,$ua);
if(strpos($save,'mguide":"分享生活,留住感动。"')){
$F_H='恭喜,发表成功!<a href="http://ish.z.qq.com/infocenter_v2.jsp?B_UID='.$qq.'&sid='.$sid.'">等不及了,马上去查看>></a><br/>您的SID:'.$sid.'<br/>';
}else{
$F_H='很抱歉,未知错误!<br/>';
}
}else{
$F_H='获取SID出错!<br/>';
}
}
}else{
$F_H='QQ号码:<br/><input type="text" name="qq"/><br/>QQ密码:<a href="iphone.php?m=2">(使用SID模式)</a><br/><input type="text" name="pwd"/><br/>说说内容:<br/><input type="text" name="txt"/><br/>发表方式:<select name="how"><option value="iphone">iPhone</option><option value="android">Android</option><option value="ipad">iPad</option></select><br/><anchor><go method="post" accept-charset="utf-8" href="iphone.php?m='.$m.'"><postfield name="qq" value="$(qq)" /><postfield name="pwd" value="$(pwd)"
/><postfield name="txt" value="$(txt)" /><postfield name="how" value="$(how)" /></go>[发表说说]</anchor><br/>';
}
}else{
if($_POST['qq']){
$qq=$_POST['qq'];
$sid=$_POST['sid'];
$txt=$_POST['txt'];
$how=$_POST['how'];
if($how=='iphone'){
$ua=$iphone_ua;
}elseif($how=='android'){
$ua=$android_ua;
}elseif($how=='ipad'){
$ua=$ipad_ua;
}
$save=save($qq,$sid,$txt,$ua);
if(strpos($save,'mguide":"分享生活,留住感动。"')){
$F_H='恭喜,发表成功!<a href="http://ish.z.qq.com/infocenter_v2.jsp?B_UID='.$qq.'&sid='.$sid.'">等不及了,马上去查看>></a><br/>';
}else{
$F_H='很抱歉,未知错误!<br/>';
}
}else{
$F_H='QQ号码:<br/><input type="text" name="qq"/><br/>SID:<a href="iphone.php">(使用密码模式)</a><br/><input type="text" name="sid"/><br/>说说内容:<br/><input type="text" name="txt"/><br/>发表方式:<select name="how"><option value="iphone">iPhone</option><option value="android">Android</option><option value="ipad">iPad</option></select><br/><anchor><go method="post" accept-charset="utf-8" href="iphone.php?m=2"><postfield name="qq" value="$(qq)" /><postfield name="sid" value="$(sid)"
/><postfield name="txt" value="$(txt)" /><postfield name="how" value="$(how)" /></go>[发表说说]</anchor><br/>';
}
}
Head('iPhone说说模拟工具');
echo $F_H;
echo '<br/>用这个东西发表说说就等于用iPhone发表说说,好友看到你发表的说说的时间后面自动显示通过“iPad/iPhone触屏版”发表。<br/>';
echo '郑重声明:此系统非钓鱼系统,不记录登陆信息,如怀疑盗QQ,请第一次随意输入密码测试发表结果,正确的密码才能发表,而不像钓鱼系统随便输都提示成功!<br/><br/>';
echo 'CopyRight (c) 2012 版权所有 QQ1246011896';
Foot ();
?>
POLARBEAR- 帖子数 : 117
注册日期 : 12-07-25
您在这个论坛的权限:
您不能在这个论坛回复主题