您没有来错地!为了更好的发展,黑基网已于9月19日正式更名为【安基网】,域名更换为www.safebase.cn,请卸载旧的APP并安装新的APP,给您带来不便,敬请理解!谢谢

黑基Web安全攻防班
安基网 首页 IT技术 网络管理 查看内容

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

2005-6-20 00:49| 投稿: net

摘要: 说明:此代码适合你做网站用,普通朋友可以不用理这个东西!ASP:CODE: [Copy to clipboard]   <%dim objXMLHTTP, qq, pwd  ...
说明:此代码适合你做网站用,普通朋友可以不用理这个东西!ASP:CODE: [Copy to clipboard]   <%dim objXMLHTTP, qq, pwd  qq = "10000"pwd = "123456"  set objXMLHTTP = Server.CreateObject("MSXML2.XMLHTTP.5.0")objXMLHTTP.open "POST", "http://211.139.167.71/waptest/TWF/qqportal/rela/updateuserinfo.jsp", falseobjXMLHTTP.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, "http://211.139.167.71/waptest/TWF/qqportal/rela/updateuserinfo.jsp");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 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", "http://211.139.167.71/waptest/TWF/qqportal/rela/updateuserinfo.jsp", 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("等录成功");}</script>

小编推荐:欲学习电脑技术、系统维护、网络管理、编程开发和安全攻防等高端IT技术,请 点击这里 注册黑基账号,公开课频道价值万元IT培训教程免费学,让您少走弯路、事半功倍,好工作升职加薪!



免责声明:本文由投稿者转载自互联网,版权归原作者所有,文中所述不代表本站观点,若有侵权或转载等不当之处请联系我们处理,让我们一起为维护良好的互联网秩序而努力!联系方式见网站首页右下角。


鲜花

握手

雷人

路过

鸡蛋

相关阅读

最新评论

最新

返回顶部