|
|
Posted on 10/25/2014 8:37:22 AM
|
|
|

Suddenly found that there is no need for verification codes now, so I wrote an infinite selection, speed
If the IP is hacked, F5 refreshes and starts over QQ registered address http://zc.qq.com/chs/new.html
Select the function select_number can be modified according to your own preferences
To use, open the registration URL, then f12, copy the code to console, i.e. the command window, enter, began to choose
Note: This code will be selected continuously until you are satisfied
- var total = 100; //号码总数1000*3
- var maxwait_ms=60*1000;//最大等待时间60秒
- var select_count_max = 5;//包含select_count_max个0-9即选取
- var select_stop_value = 1;//成功选取select_stop_value个号码就停止
- var selected_count = 0;
- var reselect_count = 1;
-
- console.log('%c注意:本代码会不停地选取,直到满意为止','font-size:40px;color:red;');
-
-
- function str_counof( str,findchar )
- {
- var count = 0;
- var pos = -1;
-
- pos = str.indexOf(findchar,pos);
- while( pos >= 0 )
- {
- count++;
- pos = str.indexOf(findchar,pos+1);
- }
-
- return count;
- }
-
- function select_number( strnumber )
- {
-
- var ok;
-
- do
- {
- ok = true;
- //if(strnumber.length <= 9 )break;//去掉注释,选9位号码
-
- //if(strnumber.indexOf("000")>0)break;
-
- if(strnumber.indexOf("0000")>0)break;
- if(strnumber.indexOf("1111")>0)break;
- if(strnumber.indexOf("2222")>0)break;
- if(strnumber.indexOf("3333")>0)break;
- if(strnumber.indexOf("4444")>0)break;
- if(strnumber.indexOf("5555")>0)break;
- if(strnumber.indexOf("6666")>0)break;
- if(strnumber.indexOf("7777")>0)break;
- if(strnumber.indexOf("8888")>0)break;
- if(strnumber.indexOf("9999")>0)break;
-
- if(strnumber.indexOf("01234")>0)break;
- if(strnumber.indexOf("12345")>0)break;
- if(strnumber.indexOf("23456")>0)break;
- if(strnumber.indexOf("34567")>0)break;
- if(strnumber.indexOf("345678")>0)break;
- if(strnumber.indexOf("456789")>0)break;
- if(strnumber.indexOf("567890")>0)break;
-
- if(str_counof(strnumber,"0")>=select_count_max)break;
- if(str_counof(strnumber,"1")>=select_count_max)break;
- if(str_counof(strnumber,"2")>=select_count_max)break;
- if(str_counof(strnumber,"3")>=select_count_max)break;
- if(str_counof(strnumber,"4")>=select_count_max)break;
- if(str_counof(strnumber,"5")>=select_count_max)break;
- if(str_counof(strnumber,"6")>=select_count_max)break;
- if(str_counof(strnumber,"7")>=select_count_max)break;
- if(str_counof(strnumber,"8")>=select_count_max)break;
- if(str_counof(strnumber,"9")>=select_count_max)break;
-
- ok =false;
-
- }while(0)
-
- return ok;
- }
-
- function start_select()
- {
- var i = 1;
- var _act_lsig = [];
- index.goodNumArr = [];
-
- console.log("正在选择(第"+reselect_count+"次),请等待");
- reselect_count ++;
-
- do {
- (function()
- {
- $.post(index.getNumUrl, index.submitObj, function(a)
- {
- if (a.ec == 0)
- {
- index.submitObj.act_lsig = a.act_lsig;
- _act_lsig.push(a.act_lsig);
- _act_lsig.push(a.act_lsig);
- _act_lsig.push(a.act_lsig);
- $.cookie.set("_act_lsig", a.act_lsig, "zc.qq.com", "/", 0.5 * 1000);
- index.goodNumArr.push(a.new_uin_0);
- index.goodNumArr.push(a.new_uin_1);
- index.goodNumArr.push(a.new_uin_2);
- index.submitObj.safeverifyResult = a.safeverifyResult;
- index.submitObj.elevel = a.safeverifyResult;
- }
-
- });
- i++;
- })();
-
- } while (i <= total);
-
-
- setTimeout(function()
- {
-
- index.goodNumArr.sort();
-
- if (!index.goodNumArr.length)
- {
- console.error('你被黑了IP');
- return;
- }
-
-
- for (num in index.goodNumArr)
- {
-
- if(select_number(index.goodNumArr[num])!=false)
- {
- console.groupCollapsed("%c"+index.goodNumArr[num],"color:red");
- console.log('第' + (parseInt(num) + 1) + '个');
- console.group('如需选择此号码,首先在控制台粘贴下面的代码执行:');
- console.log('$.cookie.set("_act_lsig", "' + _act_lsig[num] + '", "zc.qq.com", "/", 0.5*1000);\nindex.act_lsig = "' + _act_lsig[num] + '"; \nindex.currenNum=' + num + ';');
- console.groupEnd();
- console.group('然后填写页面表格信息后提交即可!只是测试哈!');
- console.groupEnd();
- console.groupEnd();
- selected_count++;
- }
-
- }
-
- if( selected_count >= select_stop_value )
- {
- console.log('精选完成,共选取了号码数量:'+selected_count);
- }else
- {
- console.log('没有选中满意的号码,正在重选' );
-
- start_select()
- }
- }, (total * 500>maxwait_ms)?maxwait_ms:(total * 500));
-
- }
-
- start_select();
Copy code
|
Previous:Tomorrow should be a break, and the school has to do an individual fitness testNext:Free Internet access, free access to CMCC with QQWifi, etc
|