|
|

|
| Check | 逻辑型 | | |
| qq | 文本型 | | | | password | 文本型 | | | | code | 文本型 | | | |
uin = qq Hs.url = “https://ssl.ptlogin2.qq.com/check?pt_tea=2&uin=” + uin + “&appid=” + appid + “&ptlang=2052®master=&pt_uistyle=42&r=” + 时间_取随机时间戳 () + “&pt_jstoken=2997133485”Hs.str = 到文本 (网页_访问_对象 (Hs.url, , , Hs.cookies, a, Hs.head )) 调试输出 (a )arr = 分割文本 (Hs.str, “','”, ) 如果真 (取数组成员数 (arr ) < 5 ) 输出调试文本 (“检测账号是否需要验证码失败”) 返回 (假)code_ = arr [2]code = code_ salt_ = arr [3 ]vsSig = arr [4 ]cap_cd = code_ rand = 文本_取左边 (arr [5 ], “'”)Hs.cookies = 网页_Cookie合并更新 (Hs.cookies, “ptui_loginuin=” + uin )调试输出 (11, rand, cap_cd, vsSig, salt_, code_, arr, Hs.str ) 如果真 (rand = “”) rand = “0” 如果 (取文本长度 (code_ ) ≠ 4 ) vcode = “1” mPswd = password 返回 (真) vcode = “0”  pwd = Enpswd (password, uin, code_ )返回 (假)| 变量名 | 类 型 | 静态 | 数组 | 备 注 | | reg | 正则表达式类 | | | | sta | 整数型 | | |
rnd = 文本_取随机数字 (6 )Hs.url = “https://ssl.captcha.qq.com/cap_union_new_show?aid=” + appid + “&captype=&protocol=https&clientype=1&disturblevel=&apptype=2&noheader=0&uid=” + uin + “&color=&showtype=&fb=1&lang=2052&cap_cd=” + cap_cd + “&rnd=” + rnd Hs.str = 编码_Utf8到Ansi (网页_访问_对象 (Hs.url, , , Hs.cookies, , Hs.head )) reg. 创建 ( #reg, Hs.str )sta = reg. 取匹配数量 () 如果真 (sta = 0 ) 返回 (0 )vsSig = reg.取子匹配文本 (1, 1)sess = reg. 取子匹配文本 (2, 1 )colname = 文本_取出中间文本 (Hs.str, “.ans+” + #引号 + “&”, “=”)websig = 文本_取出中间文本 (Hs.str, “&websig=”, #引号 )调试输出 (22, colname, vsSig, websig )返回 (sta )Hs.url = “https://ssl.captcha.qq.com/cap_union_new_getcapbysig?aid=” + appid + “&captype=&protocol=https&clientype=1&disturblevel=&apptype=2&noheader=0&uid=” + uin + “&color=&showtype=&fb=1&lang=2052&cap_cd=” + cap_cd + “&rnd=” + rnd + “&rand=” + 时间_取随机时间戳 () + “&sess=” + sess + “&vsig=” + vsSig + “&ischartype=1”Hs.bin = 网页_访问_对象 (Hs.url, , , Hs.cookies ) 如果真 (取字节集左边 (Hs.bin, 2 ) = { 137, 80 }) 图片_转换 (Hs.bin, 2, , Hs.bin )返回 (Hs.bin)| 变量名 | 类 型 | 静态 | 数组 | 备 注 | | collect | 文本型 | | | | errorCode | 文本型 | | |
collect = GetCollect ()Hs.data = “aid=” + appid + “&captype=&protocol=https&clientype=1&disturblevel=&apptype=2&noheader=0&uid=” + uin + “&color=&showtype=&fb=1&lang=2052&cap_cd=” + cap_cd + “&rnd=” + rnd + “&rand=” + 时间_取随机时间戳 () + “&sess=” + sess + “&subcapclass=0&vsig=” + vsSig + “&ans=” + code + “&” + colname + “=” + collect + “&websig=” + websig 置剪辑板文本 (Hs.data )Hs.url = “https://ssl.captcha.qq.com/cap_union_new_verify”Hs.str = 编码_Utf8到Ansi (网页_访问_对象 (Hs.url, 1, Hs.data, Hs.cookies, , Hs.head )) errorCode = 文本_取出中间文本 (Hs.str, #引号 + “errorCode” + #引号 + “:” + #引号, #引号 )调试输出 (7170, errorCode, Hs.str, vsSig, colname, collect ) 如果真 (errorCode ≠ “0”) Hs.data = “aid=” + appid + “&captype=&protocol=https&clientype=1&disturblevel=&apptype=2&noheader=0&uid=” + uin + “&color=&showtype=&fb=1&lang=2052&cap_cd=” + cap_cd + “&rnd=” + rnd + “&rand=” + 时间_取随机时间戳 () + “&sess=” + sess  Hs.url = “https://ssl.captcha.qq.com/cap_union_new_getsig” Hs.str = 编码_Utf8到Ansi (网页_访问_对象 (Hs.url, 1, Hs.data, Hs.cookies, , Hs.head ))  vsSig = 文本_取出中间文本 (Hs.str, #引号 + “vsig” + #引号 + “:” + #引号, #引号 ) 调试输出 (7171, vsSig, Hs.str ) 返回 (真)code_ = 文本_取出中间文本 (Hs.str, #引号 + “randstr” + #引号 + “ : ” + #引号, #引号 )vsSig = 文本_取出中间文本 (Hs.str, #引号 + “ticket” + #引号 + “ : ” + #引号, #引号 ) pwd = Enpswd (mPswd, uin, code_ )调试输出 (7172, code_, vsSig, mPswd, salt_, code_, pwd )返回 (假)
|
|