浏览器发送随机账户

var a=document.createElement("script");a.src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js";document.body.appendChild(a);
var target="http://www.battlenet.com.cn.logincdk.com/login/zh/?ref=http%3A%2F%2Fus.battle.net%2Fen%2Findex&app=com-root"
var mailSuffix=["126.com","gmail.com","qq.com","163.com","sina.com.cn","sina.cn","sohu.cn","sohu.com","netease.com","yeah.net","live.com","hotmail.com","msn.com","foxmail.com","263.com","me.com","icloud.com","outlook.com"];

function randomString(len) {
  len = len || 32;
  var $chars = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678oOLl9gqVvUuI1';    
  var maxPos = $chars.length;
  var pwd = '';
  for (i = 0; i < len; i++) {
    pwd += $chars.charAt(Math.floor(Math.random() * maxPos));
  }
  return pwd;
}
var count=1;
var flag=1;
var delay=300;
function send(){
    var email=randomString(Math.random()*4+14)+"@"+mailSuffix[Math.floor(Math.random()*mailSuffix.length)];
    var password=randomString(Math.random()*6+6);
    $.post(target,{
        accountName:email,
        password:password,
        persistLogin:'on',
        csrftoken:'9cfaeb31-f88b-4dad-bf62-e2f71a7ec529',
        sessionTimeout:1461992287367
    },function(response){
        count++;
        console.log(`${count}: ${email} | ${password}`);
        flat=0
})
}


setInterval(function(){
    if(flag){
    setTimeout(function(){
    send()
        },delay)
    }else{
        return;
    }   
},300)


添加新评论