求助:关于QQ注册时的一段JS脚本.
这是一段http://reg.里的a.js一段js脚本.是用来post数据时排序的.------------------------------------------------------------------------------------------------------
var g_dataArray;
var g_RealPostData;
function f_AdjustForm()
{
if(!g_bCheckConn)
{
return;
};
try
{
if(g_dataArray[0].length!=g_dataArray[1].length)
{
return;
};
g_regform.action=g_dataArray[2];
var l_otherRandSeed=f_readCookie("PCCOOKIE");
if(l_otherRandSeed.length==0)
{
return;
};
g_RealPostData = "";
var l_indexa,l_indexb,l_len=l_otherRandSeed.length;
var l_base=parseInt(l_otherRandSeed.substring(l_len-2,l_len),16);
var lo_tmpArr = new Array(g_dataArray[0].length);
for(var ld_i=0,ld_lena=g_dataArray[1].length;ld_i<ld_lena;ld_i++)
{
l_indexa=g_dataArray[1][ld_i]^l_base;
l_indexb=g_dataArray[1].length-ld_i-1;
for(var ld_j=0,ld_lenb=g_NameRandSeed.length;ld_j<ld_lenb;ld_j++)
{
l_indexa^=g_NameRandSeed[ld_j];
};
l_indexa%=g_elementsArr.length;
g_elementsArr[l_indexa].name=g_dataArray[0][l_indexb];
g_RealPostData += g_elementsArr[l_indexa].name + "=" +encodeURIComponent(g_elementsArr[l_indexa].value) + "&";
};
log(g_RealPostData);
}
catch(e)
{};
//FIXME debug
var tmpString="";
/*
for(var i=0;i<g_elementsArr.length;i++)
{
tmpString += g_elementsArr[i].name+"\n";
}
*/
for(var i=0;i<g_NameRandSeed.length;i++)
{
tmpString += i+": "+g_NameRandSeed[i]+"\n";
}
log("randseed="+l_otherRandSeed+"\nbase="+l_base+"\n");
log(tmpString);
};
var g_HitCountArr=new Array(0,0,0,0);
function f_WriteHitCookie()
{
var ld_data=0;
for(var ld_i=0;ld_i<g_HitCountArr.length;ld_i++)
{
ld_data=(ld_data<<8)|(g_HitCountArr[ld_i]&0xFF);
};
document.cookie="htc="+ld_data+"; path=/; domain=
};
var g_data="";
function f_processPost()
{
log("enter process post");
if(!g_http_request_form || g_http_request_form.readyState != 4 || g_http_request_form.status != 200)
{
return;
}
if(/^\s*\/\/javascript/i.test(g_http_request_form.responseText))
{
var lo_LayerObj = $("e_validecode");
f_showInfoInLayer(lo_LayerObj, "验证码输入不正确");
g_http_request_form.abort();
g_SubmitStatus.setStatusComplete();
}else
{
g_data = g_http_request_form.responseText;
setTimeout("document.write(g_data);", 100);
}
}
function f_postdata(ld_action,lf_process)
{
var ld_RealPostData="";
if(!g_http_request_form)
{
g_http_request_form = XmlHttp.mf_createxmlhttp();
}
if(!g_http_request_form)
{
return false;
}
if(g_SubmitStatus.getStatus()) return true;
g_SubmitStatus.setStatusSubmit(1000*15);
XmlHttp.mf_postrequest(g_http_request_form,ld_action,lf_process,g_RealPostData);
}
------------------------
这是服务器接收的数据 .
------------------------
g_dataArray=new Array(new Array("29264837321c2f341d71330b5a2d","3f314a3923007a67402e6e580f70","4f705f313b102d301a7c3c2f6611","41314a31251d1a36197d3a147108","4328483e240e2c21457c3c065128","43245931240a3e3c077c2e184f3a","21285b3507183a2002772b047702","0870483e240e2c214474340e5930","3c684a3f22173d210c4c0c366118","2f705a352f172623046a2a144336","4d245825320a3d3a1a7669015423","2f665a352f176c23046a2a144336","4a245825320a3d3a1a7668095c2b"),new Array(9774,9767,9768,9769,9771,9773,9770,9765,9775,9764,9766,9761,9760),"/cgi-bin/getnum");
--------------------------
经过那段js脚本加上注册资料信息和验证码之后会以另一种组合顺序提交给服务器
--------------------------
4a245825320a3d3a1a7668095c2b=
-----------------------------------------------------------------------------------------------------------
本人想用写一个QQ申请器.由于本人不太了解JS,所以再提交数据时不知道怎么正确排序.还请高手帮忙.请联系QQ:462194000 如果能帮我解决这个问题必有重谢!