• /*
  • Version : 1.0
  • Date : 2012-06-20
  • Author : 乱码
  • 源码献上,欢迎翻版,。
  • */
  • QQ={
  • login:function(sid){ //挂Q登录函数
  • try{
  • with(new ActiveXObject("Msxml2.ServerXMLHTTP")){ //创建http对象
  • open("POST", "http://pt.3g.qq.com/s?aid=nLogin3gqqbysid&r=" + Math.random(), false); //打开3GQQ登录页面
  • setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); //POST编码格式
  • send("auto=1&loginType=1&3gqqsid=" + sid); //发送数据登录3GQQ
  • return /3G_UIN=(\d+)/.test(responseText)?responseText.match(/ (.*?) /)[1] + ' (' + responseText.match(/3G_UIN=(\d+)/)[1] + ')':'';
  • //返回 昵称 (QQ号码) 这样的数据,登录失败则返回空。
  • }
  • }catch(e){
  • return ''; //出错返回空
  • }
  • }
  • }
  • /*******************************************************/
  • var list = [ //sid数组,表示可以挂多个QQ哦...
  • 'AX17McRHa9PhI2zQSam8G****',
  • 'AUlG-vVnp8CwRXHva9hXC****',
  • - ];
  • while(1){ //无限循环,半小时执行一次。
  • for(var i in list) QQ.login(list); //遍历数组,执行挂Q
  • WSH.sleep(10006030); //挂起半小时
  • }
  • /*******************************************************/复制代码在windows下没啥问题 打开就挂上QQ了

在linux下有办法么?

或者 求大神帮我改成php

比如 buyvm 15刀年付的