搜索
查看: 5952|回复: 4

[网络] 多玩YY 注册

  [复制链接]

56

主题

475

帖子

3808

积分

荣誉会员

Rank: 8Rank: 8

积分
3808
发表于 2012-12-6 21:09:42 | 显示全部楼层 |阅读模式
本帖最后由 cbtan 于 2012-12-6 21:15 编辑


多玩YY 注册
经测试有些人无法注册,显示 IP注册过多的情况
我也找不到原因,我电脑调试可以注册。
要是有朋友能找到原因来补充下,那感谢啊!




import
win.ui;
/*DSG{{*/

mainForm = ..win.form( bottom=315;parent=...;right=377;text=
"aardio Form" )
mainForm.add(
button={ bottom=274;right=238;left=130;top=238;z=3;text=
"提交";cls="button"
};
picturebox={ notify=1;right=312;left=40;top=27;z=1;bottom=133;cls=
"picturebox"
};
edit={ bottom=208;text=
"1";left=125;multiline=1;top=167;z=2;right=256;edge=1;cls="edit"
}
)
/*}}*/


io.open()
import inet.whttp
whttp=inet.whttp()

math.randomize()
import
inet.url
var
tab={}
var
tab2={}

var html=whttp.get("https://udb.yy.com/register/core.do"
)
string.save(
"/html.txt"
,html)
for m,m2,m3 in string.gmatch(html,"name\=""(.*?)"".*?value\=""(.*?)"" \/\>"
) {
   
if
(#m>20){
        table.push(tab2,m,m2)
    }
    tab[m]=m2
}

import
web.script
var
vm = web.script( )
var javascript  = string.load("\res\j.js"
)
vm.AddCode(javascript);
//加载脚本
nu=vm.Run("ttt",tab["rcall"])
//获取 POST地址
rcall=inet.url.encode(tab["rcall"])
//加密

//下载验证码
mainForm.picturebox.image=whttp.get("https://udb.duowan.com/verify/register.do"
)

var
name="a"
+string.random(7)
pass=
"a"
+string.random(7)

var str=whttp.get("https://udb.yy.com/ajax.do?action=existUsername&username1="
+name)
if(str!="false"){
// 判断名字是否可用
    //获取推荐您使用以下用户名
    str=whttp.get("https://udb.duowan.com/ajax.do?action=recommend&username="
+name)
    io.print(
"推荐名字"
,str)
   
return
;
}
mainForm.button.oncommand =
function
(id,event){
   
var str=whttp.get("https://udb.duowan.com/ajax.do?action=checkSecurityCode&ajax=true&securityCode1="+mainForm.edit.text+"&time="
)
    io.print(str)
   
if(str="false"){
//验证码错误
        mainForm.picturebox.image=whttp.get("https://udb.duowan.com/verify/register.do"
)
        
return
;
    }
   
var pd="url=&appid="+tab["appid"]+"®Type="+tab["regType"]+"&"+tab2[1]+"="+tab2[2]+"&timer4reg="+tab["timer4reg"]+"&rcall="+rcall+"&username="+name+"&password="+pass+"&securityCode1="
+mainForm.edit.text   

    whttp.post(
"https://udb.duowan.com/registerV2/"+nu,"Content-Type:application/x-www-form-urlencoded"
)
    str=whttp.post(
"https://udb.duowan.com/registerV2/"
+nu,pd)
    str=string.fromto(str)
   
if(string.find(str,"正在登录"
)){
        io.print(
"注册成功"
,name,pass)
        string.save(
"/成功.txt",name+" "+pass+'\r\n',true
)
    }
   
else
{
        io.print(str)
    }
   
}
mainForm.show()
win.loopMessage();





JS 代码  保存到 res目录下为 j.js


var base64Str;
var base64Count;
var END_OF_INPUT = -1;
var base64Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
var reverseBase64Chars = new Array();
for (var i = 0; i < base64Chars.length; i++) {
reverseBase64Chars[base64Chars[ i ]] = i
}



function ttt(rdmCode) {
var deRdmCode = decrypt(rdmCode, "xzkavoiddeszf12d")
var p = computechildpath(deRdmCode);
return p + ".do";
}


function computechildpath(code) {
var base = code.charAt(0).charCodeAt();
var start = base % 30;
var len = start % 8 + 2;
return code.substring(start, start + len)
}


function decrypt(f, c) {
var b = new Array(2),
a = new Array(4),
e = "",
d;
for (var d = 0; d < 4; d++) {
a[d] = Str4ToLong(c.slice(d * 4, (d + 1) * 4))
}

f = decodeBase64(f);

f = unescCtrlCh(f);

for (d = 0; d < f.length; d += 8) {
b[0] = Str4ToLong(f.slice(d, d + 4));

b[1] = Str4ToLong(f.slice(d + 4, d + 8));
decode(b, a);

e += LongToStr4(b[0]) + LongToStr4(b[1])
}

e = e.replace(/\0+$/, "");

return unescape(e)
}


function LongToStr4(a) {
var b = String.fromCharCode(a & 255, a >> 8 & 255, a >> 16 & 255, a >> 24 & 255);
return b
}

function decode(b, a) {
var f = b[0],
d = b[1];
var e = 2654435769,
c = e * 32;
while (c != 0) {
d -= (f << 4 ^ f >>> 5) + f ^ c + a[c >>> 11 & 3];
c -= e;
f -= (d << 4 ^ d >>> 5) + d ^ c + a[c & 3]
}
b[0] = f;
b[1] = d
}

function unescCtrlCh(a) {
return a.replace(/!\d\d?\d?!/g,
function(b) {
return String.fromCharCode(b.slice(1, -1))
})
}

function setBase64Str(a) {
base64Str = a;
base64Count = 0
}

function decodeBase64(d) {
setBase64Str(d);
var a = "";
var c = new Array(4);
var b = false;
while (!b && (c[0] = readReverseBase64()) != END_OF_INPUT && (c[1] = readReverseBase64()) != END_OF_INPUT) {
c[2] = readReverseBase64();
c[3] = readReverseBase64();
a += ntos((((c[0] << 2) & 255) | c[1] >> 4));
if (c[2] != END_OF_INPUT) {
a += ntos((((c[1] << 4) & 255) | c[2] >> 2));
if (c[3] != END_OF_INPUT) {
a += ntos((((c[2] << 6) & 255) | c[3]))
} else {
b = true
}
} else {
b = true
}
}
return a
};


function ntos(a) {
a = a.toString(16);
if (a.length == 1) {
a = "0" + a
}
a = "%" + a;
return unescape(a)
}

function readReverseBase64() {
if (!base64Str) {
return END_OF_INPUT
}
while (true) {
if (base64Count >= base64Str.length) {
return END_OF_INPUT
}
var a = base64Str.charAt(base64Count);
base64Count++;
if (reverseBase64Chars[a]) {
return reverseBase64Chars[a]
}
if (a == "A") {
return 0
}
}
return END_OF_INPUT
}

function Str4ToLong(c) {
var a = 0;
for (var b = 0; b < 4; b++) {
a |= c.charCodeAt(b) << b * 8
}
return isNaN(a) ? 0 : a
}

回复

使用道具 举报

75

主题

850

帖子

4999

积分

六级会员

The only one

Rank: 9Rank: 9Rank: 9

积分
4999
发表于 2012-12-7 13:00:36 | 显示全部楼层

感谢分享

感谢分享
回复

使用道具 举报

23

主题

411

帖子

2240

积分

五级会员

Rank: 8Rank: 8

积分
2240
发表于 2012-12-7 13:28:56 | 显示全部楼层

调用JS加密的POST好例子。

调用JS加密的POST好例子。
回复

使用道具 举报

4

主题

46

帖子

445

积分

二级会员

Rank: 3Rank: 3

积分
445
发表于 2012-12-8 11:26:08 | 显示全部楼层

要自动注册怎么多YY号有什么用?好像没有什么价值.

要自动注册怎么多YY号有什么用?好像没有什么价值.
回复

使用道具 举报

48

主题

593

帖子

3336

积分

五级会员

Rank: 8Rank: 8

积分
3336
发表于 2013-4-22 11:49:57 | 显示全部楼层

这个经验好好学习下

这个经验好好学习下
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

手机版|未经许可严禁引用或转载本站文章|站长邮箱|aardio.com|aardio官方社区 ( 皖ICP备09012014号 )

GMT+8, 2018-7-19 19:11 , Processed in 0.062500 second(s), 21 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表