Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static UdpClient server = new UdpClient();
- private static WebClient client = new WebClient();
- private static string URL = "https://proxyworld.club/apih/";
- private static string username = "";
- private static string email = "";
- private static string auth = "";
- private static string password = "";
- private static string rpassword = "";
- private static string thisguid = HWDI.GetMachineGuid();
- static void Main(string[] args)
- {
- start:
- server.Connect("localhost", 80);
- Console.Write("1. Login\n2. Register\nInput: ");
- var answer = Console.ReadLine();
- if (answer == "1")
- {
- Console.Write("Username: ");
- username = Console.ReadLine();
- Console.Write("Password: ");
- password = Console.ReadLine();
- DoLogin();
- }
- else if (answer == "2")
- {
- Console.Write("Email: ");
- email = Console.ReadLine();
- Console.Write("Username: ");
- username = Console.ReadLine();
- Console.Write("Password: ");
- password = Console.ReadLine();
- Console.Write("Re-enter Password: ");
- rpassword = Console.ReadLine();
- Console.Write("Enter Registration Key: ");
- auth = Console.ReadLine();
- DoRegister();
- goto start;
- }
- else
- {
- Console.WriteLine("Incorrect input!");
- Thread.Sleep(3000);
- Console.Clear();
- goto start;
- }
- }
- private static void DoLogin()
- {
- try
- {
- if (client.DownloadString(URL + "api.php?type=login&username=" + username + "&password=" + password + "&hwid=" + thisguid + "&auth=" + auth).Contains("0x05"))
- {
- Console.Clear();
- Console.WriteLine("Successfully logged in.", "Success!");
- Console.Write("Amount of Emails to Generate: ");
- int amount = Convert.ToInt32(Console.ReadLine());
- Console.Write("Amount of Threads: ");
- int threads = Convert.ToInt32(Console.ReadLine());
- DoCreate(amount, threads);
- }
- else if (client.DownloadString(URL + "api.php?type=login&username=" + username + "&password=" + password + "&hwid=" + thisguid).Contains("0x01"))
- {
- Console.WriteLine("HWID doesn't match.", "ERROR");
- Thread.Sleep(3000);
- Console.Clear();
- }
- else if (client.DownloadString(URL + "api.php?type=login&username=" + username + "&password=" + password + "&hwid=" + thisguid).Contains("0x02"))
- {
- Console.WriteLine("Please fill in all fields.", "ERROR");
- Thread.Sleep(3000);
- Console.Clear();
- }
- else if (client.DownloadString(URL + "api.php?type=login&username=" + username + "&password=" + password + "&hwid=" + thisguid).Contains("0x03"))
- {
- Console.WriteLine("Username or password are invalid.", "ERROR");
- Thread.Sleep(3000);
- Console.Clear();
- }
- else if (client.DownloadString(URL + "api.php?type=login&username=" + username + "&password=" + password + "&hwid=" + thisguid).Contains("0x04"))
- {
- Console.WriteLine("You are banned.", "ERROR");
- Thread.Sleep(3000);
- Console.Clear();
- }
- }
- catch (WebSocketException exc)
- {
- Console.WriteLine("Error: " + exc);
- }
- }
- private static void DoRegister()
- {
- try
- {
- if (client.DownloadString(URL + "api.php?type=register&username=" + username + "&password=" + password + "&rpassword=" + rpassword + "&email=" + email + "&hwid=" + thisguid + "&auth=" + auth).Contains("0x6"))
- {
- Console.WriteLine("User is registered.", "SUCCESS");
- Thread.Sleep(2000);
- Console.Clear();
- }
- else if (client.DownloadString(URL + "api.php?type=register&username=" + username + "&password=" + password + "&rpassword=" + rpassword + "&email=" + email + "&hwid=" + thisguid + "&auth=" + auth).Contains("0x1"))
- {
- Console.WriteLine("Please fill in all fields.", "ERROR");
- Thread.Sleep(3000);
- Console.Clear();
- }
- else if (client.DownloadString(URL + "api.php?type=register&username=" + username + "&password=" + password + "&rpassword=" + rpassword + "&email=" + email + "&hwid=" + thisguid + "&auth=" + auth).Contains("0x2"))
- {
- Console.WriteLine("Username is already in use.", "ERROR");
- Thread.Sleep(3000);
- Console.Clear();
- }
- else if (client.DownloadString(URL + "api.php?type=register&username=" + username + "&password=" + password + "&rpassword=" + rpassword + "&email=" + email + "&hwid=" + thisguid + "&auth=" + auth).Contains("0x3"))
- {
- Console.WriteLine("Username must be alphanumberic and 4-15 characters in length.", "ERROR");
- Thread.Sleep(3000);
- Console.Clear();
- }
- else if (client.DownloadString(URL + "api.php?type=register&username=" + username + "&password=" + password + "&rpassword=" + rpassword + "&email=" + email + "&hwid=" + thisguid + "&auth=" + auth).Contains("0x4"))
- {
- Console.WriteLine("Email is not a valid email address.", "ERROR");
- Thread.Sleep(3000);
- Console.Clear();
- }
- else if (client.DownloadString(URL + "api.php?type=register&username=" + username + "&password=" + password + "&rpassword=" + rpassword + "&email=" + email + "&hwid=" + thisguid + "&auth=" + auth).Contains("0x5"))
- {
- Console.WriteLine("Passwords do not match.", "ERROR");
- Thread.Sleep(3000);
- Console.Clear();
- }
- else if (client.DownloadString(URL + "api.php?type=register&username=" + username + "&password=" + password + "&rpassword=" + rpassword + "&email=" + email + "&hwid=" + thisguid + "&auth=" + auth).Contains("0x7"))
- {
- Console.WriteLine("Invalid registration key.", "ERROR");
- Thread.Sleep(3000);
- Console.Clear();
- }
- }
- catch (WebSocketException exc)
- {
- Console.WriteLine("Error: " + exc);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement