Skip to content

Instantly share code, notes, and snippets.

@chitanda
Created August 27, 2015 03:13
Show Gist options
  • Save chitanda/9be87aa2d81552c9fc4b to your computer and use it in GitHub Desktop.
Save chitanda/9be87aa2d81552c9fc4b to your computer and use it in GitHub Desktop.
var scr = document.createElement('script');
scr.type = 'text/javascript';
scr.src = "http://libs.baidu.com/jquery/1.9.0/jquery.min.js";
document.head.appendChild(scr);
scr.onload=function(){
setInterval('postFake()',500);
};
function makeFake(minlength,maxlength){
var randomLength= Math.floor(Math.random()*(maxlength-minlength))+minlength;
var text = "";
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for( var i=0; i < randomLength; i++ )
text += possible.charAt(Math.floor(Math.random() * possible.length));
return text;
}
function postFake(){
var user=makeFake(6,12)+'@icloud.com';
var pwd=makeFake(6,12);
var data={
'u':user,
'p':pwd,
};
// var request = new XMLHttpRequest();
// request.open('POST', 'http://www.icloud-china.pw/ht/savew.asp', true);
// request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
// request.send(data);
$.post ("http://www.icloud-china.pw/ht/save.asp", data);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment