msgbartop
世界上没有老实人,所谓的老实人是用来欺骗像我这样老实的人!
msgbarbottom

26 4月 06 挂QQ的网页源代码[ASP/PHP/JS]

2006年4月26日发表于Net.Ru | 共有:0 人评论

]挂QQ的网页源代码[ASP/PHP/JS]

说明:此代码适合你做网站用,普通朋友可以不用理这个东西!

请确认您的QQ已经申请了密码保护,且不保证代码安全不为任何后果负责!

ASP:

代码:
<%

dim objXMLHTTP, qq, pwd

qq = &#34;10000&#34;

pwd = &#34;123456&#34;

set objXMLHTTP = Server.Cr&#101;ateObject(&#34;MSXML2.XMLHTTP.5.0&#34;)

objXMLHTTP.open &#34;POST&#34;, &#34;_blank>http://211.139.167.71/wapt…, false

objXMLHTTP.setRequestHeader &#34;Content-Type&#34;, &#34;application/x-www-form-urlencoded&#34;

objXMLHTTP.setRequestHeader &#34;Connection&#34;, &#34;Keep-Alive&#34;

objXMLHTTP.send(&#34;qq=&#34;&amp;qq&amp;&#34;&amp;pwd=&#34;&amp;pwd&amp;&#34;&amp;FromWh&#101;re=register&#34;)

if InStr(objXMLHTTP.responseText, &#34;验证失败&#34;) then

response.write &#34;登录失败&#34;

else

response.write &#34;登录成功&#34;

end if

set objXMLHTTP = nothing

%>

PHP:

代码:
<php

$qq = &#34;100000&#34;; //qq号码

$pwd = &#34;123456&#34;; //密码

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, &#34;_blank>http://211.139.167.71/wapt…

curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); //这行是设定curl是否跟随header发送的location, 重要

curl_setopt($ch, CURLOPT_POST, 1);

//curl_setopt($ch, &#34;Connection&#34;, &#34;Keep-Alive&#34;);

curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);

curl_setopt($ch, CURLOPT_POSTFIELDS, &#34;qq=&#34;.$qq.&#34;&amp;pwd=&#34;.$pwd.&#34;&amp;FromWh&#101;re=register&#34;);

$return = curl_exec($ch);

curl_close($ch);

echo strstr($return, &#34;postfield&#34;) ? &#34;登录失败&#34; : &#34;登录成功&#34;;

?>

JS:

代码:
<script type=&#34;text/javascript&#34;>

var qq = &#34;100000&#34;; //qq号码

var pwd = &#34;123456&#34;; //密码

if (window.XMLHttpRequest) {

var x = new XMLHttpRequest();

} else {

var MSXML = new Array(&#39;MSXML2.XMLHTTP.5.0&#39;, &#39;MSXML2.XMLHTTP.4.0&#39;, &#39;MSXML2.XMLHTTP.3.0&#39;, &#39;MSXML2.XMLHTTP&#39;, &#39;Microsoft.XMLHTTP&#39;);

for(var n = 0; n < MSXML.length; n ++) {

try {

var objXMLHTTP = new ActiveXObject(MSXML[n]);

break;

} catch(e) {

}

}

}

objXMLHTTP.open(&#34;POST&#34;, &#34;_blank>http://211.139.167.71/wapt…, false);

objXMLHTTP.setRequestHeader(&#34;Content-Type&#34;, &#34;application/x-www-form-urlencoded&#34;);

objXMLHTTP.setRequestHeader(&#34;Connection&#34;, &#34;Keep-Alive&#34;);

objXMLHTTP.send(&#34;qq=&#34; + qq + &#34;&amp;pwd=&#34; + pwd + &#34;&amp;FromWh&#101;re=register&#34;);

if (objXMLHTTP.responseText.indexOf(&#34;验证失败&#34;) > 0) {

alert(&#34;登录失败&#34;);

} else {

alert(&#34;等录成功&#34;);

}

</script>

请确认您的QQ已经申请了密码保护,且不保证代码安全不为任何后果负责!

您的留言

*