Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.Net;
- using System.Diagnostics;
- using System.IO;
- using System.Threading;
- namespace testttttttt
- {
- class Program
- {
- static public Account c;
- const string _chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
- static private readonly Random _rng = new Random();
- static void Main(string[] args)
- {
- while (true)
- {
- Boolean isPosted = true;
- Console.Title = i + " Account Created";
- Stopwatch sw = new Stopwatch();
- sw.Start();
- new Account();
- Console.WriteLine(c.Name + " " + c.Pass + " " + c.Mail + " " + c.Pseudo + " " + c.Question + " " + c.Answer);
- try
- {
- createAccount();
- }
- catch (Exception e) { isPosted = false; };
- if (isPosted)
- {
- sw.Stop();
- Console.WriteLine("Account Created successfully in : " + (int)sw.Elapsed.TotalMilliseconds + " Milliseconds");
- }
- }
- Console.ReadLine();
- }
- static void createAccount()
- {
- try
- {
- HttpWebRequest Request;
- HttpWebResponse Reponse;
- String Link = "https://tenesiz.eu/register";
- string data = "username=" + c.Name + "+&password=" + c.Pass + "&password_validation=" + c.Pass + "&email=" + c.Mail + "&pseudo=" + c.Pseudo + "&question=" + c.Question + "&response=" + c.Answer;
- String PostData = "submit";
- Request = (HttpWebRequest)(WebRequest.Create(Link));
- Request.ContentType = "application/x-www-form-urlencoded";
- Request.ContentLength = data.Length;
- Request.Method = "POST";
- Request.AllowAutoRedirect = false;
- Request.Timeout = 3000;
- Stream RequestStream = Request.GetRequestStream();
- byte[] postBytes = Encoding.ASCII.GetBytes(data);
- RequestStream.Write(postBytes, 0, postBytes.Length);
- RequestStream.Close();
- Reponse = (HttpWebResponse)(Request.GetResponse());
- }
- catch (Exception e) { throw e; };
- }
- public class Account
- {
- public String Name;
- public String Pass;
- public String Mail;
- public String Pseudo;
- public String Question;
- public String Answer;
- public Account()
- {
- this.Name = getRamdomString(7);
- this.Pass = getRamdomString(8);
- this.Mail = getRamdomString(6)+"@hotmail.com";
- this.Pseudo = getRamdomString(7);
- this.Question = getRamdomString(8);
- this.Answer = getRamdomString(7);
- }
- }
- static public String getRamdomString(int size)
- {
- char[] buffer = new char[size];
- for (int i = 0; i < size; i++)
- {
- buffer[i] = _chars[_rng.Next(_chars.Length)];
- }
- return new string(buffer).ToLower();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement