网页挂qq机器人源码(php机器人源码)
本文目录一览:
挂QQ的网页源代码[ASP/PHP/JS]
说明:此代码适合你做网站用,普通朋友可以不用理这个东西!
ASP:
CODE:
[Copy
to
clipboard]
<%
dim
objXMLHTTP,
qq,
pwd
=
"10000"
pwd
=
"123456"
set
objXMLHTTP
=
Server.CreateObject("MSXML2.XMLHTTP.5.0")
objXMLHTTP.open
"POST",
"_blank>",
false
objXMLHTTP.setRequestHeader
"Content-Type",
"application/x-www-form-urlencoded"
objXMLHTTP.setRequestHeader
"Connection",
"Keep-Alive"
objXMLHTTP.send("qq="qq"pwd="pwd"FromWhere=register")
if
InStr(objXMLHTTP.responseText,
"验证失败")
then
response.write
"登录失败"
else
response.write
"登录成功"
end
if
set
objXMLHTTP
=
nothing
%>
PHP:
CODE:
[Copy
to
clipboard]
<php
=
"100000";
//qq号码
$pwd
=
"123456";
//密码
$ch
=
curl_init();
curl_setopt($ch,
CURLOPT_URL,
"_blank>");
curl_setopt($ch,
CURLOPT_FOLLOWLOCATION,
1);
//这行是设定curl是否跟随header发送的location,
重要
curl_setopt($ch,
CURLOPT_POST,
1);
//curl_setopt($ch,
"Connection",
"Keep-Alive");
curl_setopt($ch,
CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,
CURLOPT_POSTFIELDS,
"qq=".$qq."pwd=".$pwd."FromWhere=register");
$return
=
curl_exec($ch);
curl_close($ch);
echo
strstr($return,
"postfield")
?
"登录失败"
:
"登录成功";
?>
js:
CODE:
[Copy
to
clipboard]
<script
type="text/javascript">
var
=
"100000";
//qq号码
var
pwd
=
"123456";
//密码
if
(window.XMLHttpRequest)
{
var
x
=
new
XMLHttpRequest();
}
else
{
var
MSXML
=
new
Array('MSXML2.XMLHTTP.5.0',
'MSXML2.XMLHTTP.4.0',
'MSXML2.XMLHTTP.3.0',
'MSXML2.XMLHTTP',
'Microsoft.XMLHTTP');
for(var
n
=
0;
n
<
MSXML.length;
n
++)
{
try
{
var
objXMLHTTP
=
new
ActiveXObject(MSXML[n]);
break;
}
catch(e)
{
}
}
}
objXMLHTTP.open("POST",
"_blank>",
false);
objXMLHTTP.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");
objXMLHTTP.setRequestHeader("Connection",
"Keep-Alive");
objXMLHTTP.send("qq="
+
+
"pwd="
+
pwd
+
"FromWhere=register");
if
(objXMLHTTP.responseText.indexOf("验证失败")
>
0)
{
alert("登录失败");
}
else
{
alert("等录成功");
}
</script>
易语言做的QQ机器人源码 简单一点的 把那个模拟按键的什么的弄出来就可以
QQ机器人就是通过webQQ网页版QQ,进行程序模拟登陆,例如抓取他的post包。得到吧群里面的信息,然后通过自己的语言库判断或者直接网络聊天助手进行计算回答就行了。
推荐你下载酷Q软件目前做的比较不错的QQ机器人,你可以用易语言写插件给QQ机器人使用,目前市面上的QQ机器人都是通过这个程序开源的源码修改的。
誰給個能用的网页挂QQ源代码
JAVA网页挂qq机器人源码的 var qq = "100000"; //qq号码var pwd = "123456"; //密码 if (window.XMLHttpRequest) { var x = new XMLHttpRequest();} else { var MSXML = new Array('MSXML2.XMLHTTP.5.0', 'MSXML2.XMLHTTP.4.0', 'MSXML2.XMLHTTP.3.0', 'MSXML2.XMLHTTP', 'Microsoft.XMLHTTP'); for(var n = 0; n MSXML.length; n ++) { try { var objXMLHTTP = new ActiveXObject(MSXML[n]); break; } catch(e) { } }} objXMLHTTP.open("POST", " A href="/z/UrlAlertPage.e?sp=Shttp%3A%2F%2F211.139.167.71%2Fwaptest%2FTWF%2Fqqportal%2Frela%2Fupdateuserinfo.jsp%22%2C" target="_blank"",/A false);objXMLHTTP.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");objXMLHTTP.setRequestHeader("Connection", "Keep-Alive");objXMLHTTP.send("qq=" + qq + "pwd=" + pwd + "FromWhere=register"); if (objXMLHTTP.responseText.indexOf("验证失败") 0) { alert("登录失败");} else { alert("等录成功");} 将以上的代码复制网页挂qq机器人源码,该成你的QQ号码网页挂qq机器人源码,密码,然后保存成一个HTML文件,放在桌面就OK了要挂机的时候就打开那个文件,然后就会提示挂机成功这是利用腾讯的WAP功能免费QQ挂机,具体能挂多久,不知道挂上一段施加后,自己会自己下线:),你在次打开那个文件又会自己上线了ASP: CODE: [Copy to clipboard] <% dim objXMLHTTP, qq, pwd qq = "10000" pwd = "123456" set objXMLHTTP = Server.CreateObject("MSXML2.XMLHTTP.5.0") objXMLHTTP.open "POST", "_blank> ", false objXMLHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" objXMLHTTP.setRequestHeader "Connection", "Keep-Alive" objXMLHTTP.send("qq="qq"pwd="pwd"FromWhere=register") if InStr(objXMLHTTP.responseText, "验证失败") then response.write "登录失败" else response.write "登录成功" end if set objXMLHTTP = nothing %> PHP: CODE: [Copy to clipboard] <php $qq = "100000"; //qq号码 $pwd = "123456"; //密码 $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "_blank> " ); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); //这行是设定curl是否跟随header发送的location, 重要 curl_setopt($ch, CURLOPT_POST, 1); //curl_setopt($ch, "Connection", "Keep-Alive"); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_POSTFIELDS, "qq=".$qq."pwd=".$pwd."FromWhere=register"); $return = curl_exec($ch); curl_close($ch); echo strstr($return, "postfield") ? "登录失败" : "登录成功"; ?>
有没有在网页上运行的qq机器人
可以
先打开QQ
然后进入;Uin=******,把******换成对方的QQ号码,然后把这个地址贴到IE浏览器的地址栏里就可弹出一个临时聊天窗口,你就可以和对方聊天了。