· 6 years ago · Sep 09, 2019, 03:42 PM
1function setCookie(cname, cvalue, exdays) {
2 var d = new Date();
3 d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
4 var expires = "expires=" + d.toUTCString();
5 document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"
6 }
7var created = 0;
8setInterval(function() {
9var asd = '';
10created = created + 1;
11var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
12for (var i = 0; i < 14; i++) { asd += possible.charAt(Math.floor(Math.random() * possible.length)); }
13setCookie('PHPSESSID', '', -1);
14setCookie('username', '', -1);
15$.post( "/register.php", { 'register-username': asd, 'register-password': asd, 'register-password2': asd, doCreate: '', 'register-email': asd + '@gmail.com' } );
16console.log('Signed up with: ' + asd, created + ' created.');
17}, 100);